add old templates, fix documentation

This commit is contained in:
Daniel Seifert 2011-10-20 11:05:35 +00:00
parent b39bbbc01f
commit 56590c6232
17 changed files with 363 additions and 184 deletions

10
.gitattributes vendored
View File

@ -1,10 +1,16 @@
* text=auto !eol
changed_full/XE420-XE448/out/basic/tpl/_left.tpl -text
changed_full/XE420-XE448/out/basic/tpl/inc/d3usersonline.tpl -text
changed_full/XE450/out/azure/tpl/inc/d3usersonline.tpl -text
changed_full/XE450/out/azure/tpl/layout/sidebar.tpl -text
changed_full/XE450/out/basic/tpl/_left.tpl -text
changed_full/XE450/out/basic/tpl/inc/d3usersonline.tpl -text
changed_full/XE451-XE453/out/azure/tpl/inc/d3usersonline.tpl -text
changed_full/XE451-XE453/out/azure/tpl/layout/sidebar.tpl -text
changed_full/XE451-XE453/out/basic/tpl/_left.tpl -text
changed_full/XE451-XE453/out/basic/tpl/inc/d3usersonline.tpl -text
copy_this/core/d3usersonline.php -text
copy_this/modules/d3usersonline/views/d3_oxcmp_utils_usersonline.php -text
setup+doku/readme_de.txt -text
setup+doku/readme_en.txt -text
setup+doku/Installation.pdf -text
setup+doku/install.sql -text
source/UsersOnline-Installation.docx -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
setup+doku/update.txt

View File

@ -0,0 +1,79 @@
[{if $oView->showSearch() }]
<strong class="h2 search">[{ oxmultilang ident="INC_LEFTITEM_PRODUCTSEARCH" }]</strong>
<form action="[{ $oViewConf->getSelfActionLink() }]" method="get" name="search" class="search" id="f.search">
<p>
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="cl" value="search">
<input type="text" name="searchparam" value="[{$searchparamforhtml}]" size="21" id="f.search.param" class="txt">
[{if $oView->getSearchCatTree() }]
<select id="test_searchCategorySelect" class="search_input" name="searchcnid" [{if $oViewConf->isAutoSearchOnCat() }]onchange="oxid.search('f.search','f.search.param');"[{/if}]>
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLCATEGORIES" }] </option>
[{include file="inc/category_options.tpl" tree=$oView->getSearchCatTree() sSpacer=""}]
</select>
[{/if}]
[{if $oView->getVendorlist() }]
<select id="test_searchVendorSelect" class="search_input" name="searchvendor">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLDISTRIBUTORS" }] </option>
[{foreach from=$oView->getVendorlist() item=oVendorlistentry}]
<option value="[{$oVendorlistentry->oxvendor__oxid->value}]"[{if $searchvendor == $oVendorlistentry->oxvendor__oxid->value}] selected[{/if}]>[{ $oVendorlistentry->oxvendor__oxtitle->value }][{ if $oVendorlistentry->getNrOfArticles() > 0 }] ([{$oVendorlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
[{if $oView->getManufacturerlist() }]
<select id="test_searchManufacturerSelect" class="search_input" name="searchmanufacturer">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLMANUFACTURERS" }] </option>
[{foreach from=$oView->getManufacturerlist() item=oManufacturerlistentry}]
<option value="[{$oManufacturerlistentry->oxmanufacturers__oxid->value}]"[{if $searchmanufacturer == $oManufacturerlistentry->oxmanufacturers__oxid->value}] selected[{/if}]>[{ $oManufacturerlistentry->oxmanufacturers__oxtitle->value }][{ if $oManufacturerlistentry->getNrOfArticles() > 0 }] ([{$oManufacturerlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
<span class="btn"><input id="test_searchGo" type="submit" class="btn" value="GO!"></span>
</p>
</form>
[{/if}]
[{if $oxcmp_categories }]
[{if $oView->showTopCatNavigation()}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() class="tree"}]
[{else}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() class="tree"}]
[{/if}]
[{/if}]
[{if $oView->loadVendorTree() && $oView->getVendorlist()}]
[{include file="inc/vendor_tree.tpl" tree=$oView->getVendorlist() class="tree"}]
[{/if}]
[{if $oView->loadManufacturerTree() && $oView->getManufacturerlist()}]
[{include file="inc/manufacturer_tree.tpl" tree=$oView->getManufacturerlist() class="tree"}]
[{/if}]
[{*** D3 Modul "UsersOnline" START ***}]
[{include file="inc/d3usersonline.tpl"}]
[{*** D3 Modul "UsersOnline" END ***}]
[{if $oView->showLeftBasket()}]
[{oxid_include_dynamic file="dyn/mini_basket.tpl" type="basket" testid="LeftBasket"}]
[{/if}]
[{include file="inc/infobox.tpl"}]
[{if $oxcmp_news && count($oxcmp_news) > 0}]
[{include file="inc/cmp_news.tpl"}]
[{/if}]
<strong class="h2" id="test_LeftSidePartnersHeader">[{ oxmultilang ident="INC_LEFTITEM_PARTNERANDSEAL" }]</strong>
<div class="partners">
<div class="logo">
[{include file="inc/trustedshops_item.tpl"}]
</div>
<div class="logo">
<a href="http://www.zend.com" id="link.zendSite"><img src="[{$oViewConf->getImageUrl()}]zend_logo.gif" alt=""></a>
[{oxscript add="oxid.blank('link.zendSite');"}]
</div>
</div>

View File

@ -0,0 +1,8 @@
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
<strong class="h2" id="test_LeftSideInfoHeader">Online</strong>
[{strip}]
<div class="partners" style="padding-left: 10px;">
[{$usersonline }] User(s)
</div>
[{/strip}]
[{/if}]

View File

@ -0,0 +1,8 @@
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
<div class="box">
<h3>Online</h3>
<div class="content">
[{$usersonline }] User(s)
</div>
</div>
[{/if}]

View File

@ -0,0 +1,70 @@
[{if $oView->isDemoShop()}]
[{ include file="widget/sidebar/adminbanner.tpl" }]
[{/if}]
[{if $oxcmp_categories }]
[{capture append="oxidBlock_sidebar" }]
[{include file="widget/sidebar/categoriestree.tpl" categories=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() deepLevel=0}]
[{/capture}]
[{/if}]
[{*** D3 Modul "UsersOnline" START ***}]
[{include file="inc/d3usersonline.tpl"}]
[{*** D3 Modul "UsersOnline" END ***}]
[{if $oView->getClassName() eq "start" && $oView->getTop5ArticleList()}]
[{capture append="oxidBlock_sidebar" }]
[{include file="widget/product/boxproducts.tpl" _boxId="topBox" _oBoxProducts=$oView->getTop5ArticleList() _sHeaderIdent="BOX_TOPOFTHESHOP_HEADER"}]
[{/capture}]
[{/if}]
[{if $oViewConf->getShowListmania() }]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/sidebar/recommendation.tpl"}]
[{/capture}]
[{/if}]
[{if $oView->getClassName() ne "details" && $oView->getClassName() ne "tags"}]
[{if $oView->getTagCloudManager() }]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/sidebar/tags.tpl" oTagsManager=$oView->getTagCloudManager()}]
[{/capture}]
[{/if}]
[{/if}]
[{if $oxcmp_news|count }]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/sidebar/news.tpl" oNews=$oxcmp_news}]
[{/capture}]
[{/if}]
[{if $oView->isActive('FbFacepile') && $oView->isConnectedWithFb()}]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/facebook/facepile.tpl"}]
[{/capture}]
[{/if}]
[{if $oView->getClassName() eq "start"}]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/sidebar/partners.tpl" }]
[{/capture}]
[{/if}]
[{if $oView->getClassName() eq "start"}]
[{if $oViewConf->showTs("WIDGET")}]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/trustedshops/ratings.tpl" }]
[{/capture}]
[{/if}]
[{/if}]
[{if $oView->getClassName() eq "start"}]
[{capture append="oxidBlock_sidebar"}]
[{include file="widget/shoplupe/ratings.tpl" }]
[{/capture}]
[{/if}]
[{foreach from=$oxidBlock_sidebar item="_block"}]
[{$_block}]
[{/foreach}]

View File

@ -0,0 +1,79 @@
[{if $oView->showSearch() }]
<strong class="h2 search">[{ oxmultilang ident="INC_LEFTITEM_PRODUCTSEARCH" }]</strong>
<form action="[{ $oViewConf->getSelfActionLink() }]" method="get" name="search" class="search" id="f.search">
<p>
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="cl" value="search">
<input type="text" name="searchparam" value="[{$oView->getSearchParamForHtml()}]" size="21" id="f.search.param" class="txt">
[{if $oView->getSearchCatTree() }]
<select id="test_searchCategorySelect" class="search_input" name="searchcnid" [{if $oViewConf->isAutoSearchOnCat() }]onchange="oxid.search('f.search','f.search.param');"[{/if}]>
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLCATEGORIES" }] </option>
[{include file="inc/category_options.tpl" tree=$oView->getSearchCatTree() sSpacer=""}]
</select>
[{/if}]
[{if $oView->getVendorlist() }]
<select id="test_searchVendorSelect" class="search_input" name="searchvendor">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLDISTRIBUTORS" }] </option>
[{foreach from=$oView->getVendorlist() item=oVendorlistentry}]
<option value="[{$oVendorlistentry->oxvendor__oxid->value}]"[{if $oView->getSearchVendor() == $oVendorlistentry->oxvendor__oxid->value}] selected[{/if}]>[{ $oVendorlistentry->oxvendor__oxtitle->value }][{ if $oVendorlistentry->getNrOfArticles() > 0 }] ([{$oVendorlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
[{if $oView->getManufacturerlist() }]
<select id="test_searchManufacturerSelect" class="search_input" name="searchmanufacturer">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLMANUFACTURERS" }] </option>
[{foreach from=$oView->getManufacturerlist() item=oManufacturerlistentry}]
<option value="[{$oManufacturerlistentry->oxmanufacturers__oxid->value}]"[{if $oView->getSearchManufacturer() == $oManufacturerlistentry->oxmanufacturers__oxid->value}] selected[{/if}]>[{ $oManufacturerlistentry->oxmanufacturers__oxtitle->value }][{ if $oManufacturerlistentry->getNrOfArticles() > 0 }] ([{$oManufacturerlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
<span class="btn"><input id="test_searchGo" type="submit" class="btn" value="GO!"></span>
</p>
</form>
[{/if}]
[{if $oxcmp_categories }]
[{if $oView->showTopCatNavigation()}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() class="tree"}]
[{else}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() class="tree"}]
[{/if}]
[{/if}]
[{if $oView->loadVendorTree() && $oView->getVendorlist()}]
[{include file="inc/vendor_tree.tpl" tree=$oView->getVendorlist() class="tree"}]
[{/if}]
[{if $oView->loadManufacturerTree() && $oView->getManufacturerlist()}]
[{include file="inc/manufacturer_tree.tpl" tree=$oView->getManufacturerlist() class="tree"}]
[{/if}]
[{*** D3 Modul "UsersOnline" START ***}]
[{include file="inc/d3usersonline.tpl"}]
[{*** D3 Modul "UsersOnline" END ***}]
[{if $oView->showLeftBasket()}]
[{oxid_include_dynamic file="dyn/mini_basket.tpl" type="basket" testid="LeftBasket"}]
[{/if}]
[{include file="inc/infobox.tpl"}]
[{if $oxcmp_news && count($oxcmp_news) > 0}]
[{include file="inc/cmp_news.tpl"}]
[{/if}]
<strong class="h2" id="test_LeftSidePartnersHeader">[{ oxmultilang ident="INC_LEFTITEM_PARTNERANDSEAL" }]</strong>
<div class="partners">
<div class="logo">
[{include file="inc/trustedshops_item.tpl"}]
</div>
<div class="logo">
<a href="http://www.zend.com" id="link.zendSite"><img src="[{$oViewConf->getImageUrl()}]zend_logo.gif" alt=""></a>
[{oxscript add="oxid.blank('link.zendSite');"}]
</div>
</div>

View File

@ -0,0 +1,8 @@
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
<strong class="h2" id="test_LeftSideInfoHeader">Online</strong>
[{strip}]
<div class="partners" style="padding-left: 10px;">
[{$usersonline }] User(s)
</div>
[{/strip}]
[{/if}]

View File

@ -1,6 +1,8 @@
<div class="box">
<h3>Online</h3>
<div class="content">
[{$usersonline }] User(s)
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
<div class="box">
<h3>Online</h3>
<div class="content">
[{$usersonline }] User(s)
</div>
</div>
</div>
[{/if}]

View File

@ -16,9 +16,7 @@
[{/block}]
[{*** D3 Modul "UsersOnline" START ***}]
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
[{include file="inc/d3usersonline.tpl"}]
[{/if}]
[{include file="inc/d3usersonline.tpl"}]
[{*** D3 Modul "UsersOnline" END ***}]
[{block name="sidebar_trustedshopsratings"}]

View File

@ -1,81 +1,79 @@
[{if $oView->showSearch() }]
<strong class="h2 search">[{ oxmultilang ident="INC_LEFTITEM_PRODUCTSEARCH" }]</strong>
<form action="[{ $oViewConf->getSelfActionLink() }]" method="get" name="search" class="search" id="f.search">
<p>
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="cl" value="search">
<input type="text" name="searchparam" value="[{$oView->getSearchParamForHtml()}]" size="21" id="f.search.param" class="txt">
[{if $oView->getSearchCatTree() }]
<select id="test_searchCategorySelect" class="search_input" name="searchcnid" [{if $oViewConf->isAutoSearchOnCat() }]onchange="oxid.search('f.search','f.search.param');"[{/if}]>
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLCATEGORIES" }] </option>
[{include file="inc/category_options.tpl" tree=$oView->getSearchCatTree() sSpacer=""}]
</select>
[{/if}]
[{if $oView->getVendorlist() }]
<select id="test_searchVendorSelect" class="search_input" name="searchvendor">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLDISTRIBUTORS" }] </option>
[{foreach from=$oView->getVendorlist() item=oVendorlistentry}]
<option value="[{$oVendorlistentry->oxvendor__oxid->value}]"[{if $oView->getSearchVendor() == $oVendorlistentry->oxvendor__oxid->value}] selected[{/if}]>[{ $oVendorlistentry->oxvendor__oxtitle->value }][{ if $oVendorlistentry->getNrOfArticles() > 0 }] ([{$oVendorlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
[{if $oView->getManufacturerlist() }]
<select id="test_searchManufacturerSelect" class="search_input" name="searchmanufacturer">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLMANUFACTURERS" }] </option>
[{foreach from=$oView->getManufacturerlist() item=oManufacturerlistentry}]
<option value="[{$oManufacturerlistentry->oxmanufacturers__oxid->value}]"[{if $oView->getSearchManufacturer() == $oManufacturerlistentry->oxmanufacturers__oxid->value}] selected[{/if}]>[{ $oManufacturerlistentry->oxmanufacturers__oxtitle->value }][{ if $oManufacturerlistentry->getNrOfArticles() > 0 }] ([{$oManufacturerlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
<span class="btn"><input id="test_searchGo" type="submit" class="btn" value="GO!"></span>
</p>
</form>
[{/if}]
[{if $oxcmp_categories }]
[{if $oView->showTopCatNavigation()}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() class="tree"}]
[{else}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() class="tree"}]
[{/if}]
[{/if}]
[{if $oView->loadVendorTree() && $oView->getVendorlist()}]
[{include file="inc/vendor_tree.tpl" tree=$oView->getVendorlist() class="tree"}]
[{/if}]
[{if $oView->loadManufacturerTree() && $oView->getManufacturerlist()}]
[{include file="inc/manufacturer_tree.tpl" tree=$oView->getManufacturerlist() class="tree"}]
[{/if}]
[{*** D3 Modul "UsersOnline" START ***}]
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
[{include file="inc/d3usersonline.tpl"}]
[{/if}]
[{*** D3 Modul "UsersOnline" END ***}]
[{if $oView->showLeftBasket()}]
[{oxid_include_dynamic file="dyn/mini_basket.tpl" type="basket" testid="LeftBasket"}]
[{/if}]
[{include file="inc/infobox.tpl"}]
[{if $oxcmp_news && count($oxcmp_news) > 0}]
[{include file="inc/cmp_news.tpl"}]
[{/if}]
<strong class="h2" id="test_LeftSidePartnersHeader">[{ oxmultilang ident="INC_LEFTITEM_PARTNERANDSEAL" }]</strong>
<div class="partners">
<div class="logo">
[{include file="inc/trustedshops_item.tpl"}]
</div>
<div class="logo">
<a href="http://www.zend.com" id="link.zendSite"><img src="[{$oViewConf->getImageUrl()}]zend_logo.gif" alt=""></a>
[{oxscript add="oxid.blank('link.zendSite');"}]
</div>
</div>
[{if $oView->showSearch() }]
<strong class="h2 search">[{ oxmultilang ident="INC_LEFTITEM_PRODUCTSEARCH" }]</strong>
<form action="[{ $oViewConf->getSelfActionLink() }]" method="get" name="search" class="search" id="f.search">
<p>
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="cl" value="search">
<input type="text" name="searchparam" value="[{$oView->getSearchParamForHtml()}]" size="21" id="f.search.param" class="txt">
[{if $oView->getSearchCatTree() }]
<select id="test_searchCategorySelect" class="search_input" name="searchcnid" [{if $oViewConf->isAutoSearchOnCat() }]onchange="oxid.search('f.search','f.search.param');"[{/if}]>
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLCATEGORIES" }] </option>
[{include file="inc/category_options.tpl" tree=$oView->getSearchCatTree() sSpacer=""}]
</select>
[{/if}]
[{if $oView->getVendorlist() }]
<select id="test_searchVendorSelect" class="search_input" name="searchvendor">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLDISTRIBUTORS" }] </option>
[{foreach from=$oView->getVendorlist() item=oVendorlistentry}]
<option value="[{$oVendorlistentry->oxvendor__oxid->value}]"[{if $oView->getSearchVendor() == $oVendorlistentry->oxvendor__oxid->value}] selected[{/if}]>[{ $oVendorlistentry->oxvendor__oxtitle->value }][{ if $oVendorlistentry->getNrOfArticles() > 0 }] ([{$oVendorlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
[{if $oView->getManufacturerlist() }]
<select id="test_searchManufacturerSelect" class="search_input" name="searchmanufacturer">
<option value=""> [{ oxmultilang ident="INC_SEARCHLEFTITEM_ALLMANUFACTURERS" }] </option>
[{foreach from=$oView->getManufacturerlist() item=oManufacturerlistentry}]
<option value="[{$oManufacturerlistentry->oxmanufacturers__oxid->value}]"[{if $oView->getSearchManufacturer() == $oManufacturerlistentry->oxmanufacturers__oxid->value}] selected[{/if}]>[{ $oManufacturerlistentry->oxmanufacturers__oxtitle->value }][{ if $oManufacturerlistentry->getNrOfArticles() > 0 }] ([{$oManufacturerlistentry->getNrOfArticles()}])[{/if}]</option>
[{/foreach}]
</select>
[{/if}]
<span class="btn"><input id="test_searchGo" type="submit" class="btn" value="GO!"></span>
</p>
</form>
[{/if}]
[{if $oxcmp_categories }]
[{if $oView->showTopCatNavigation()}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() class="tree"}]
[{else}]
[{include file="inc/category_tree.tpl" tree=$oxcmp_categories act=$oxcmp_categories->getClickCat() class="tree"}]
[{/if}]
[{/if}]
[{if $oView->loadVendorTree() && $oView->getVendorlist()}]
[{include file="inc/vendor_tree.tpl" tree=$oView->getVendorlist() class="tree"}]
[{/if}]
[{if $oView->loadManufacturerTree() && $oView->getManufacturerlist()}]
[{include file="inc/manufacturer_tree.tpl" tree=$oView->getManufacturerlist() class="tree"}]
[{/if}]
[{*** D3 Modul "UsersOnline" START ***}]
[{include file="inc/d3usersonline.tpl"}]
[{*** D3 Modul "UsersOnline" END ***}]
[{if $oView->showLeftBasket()}]
[{oxid_include_dynamic file="dyn/mini_basket.tpl" type="basket" testid="LeftBasket"}]
[{/if}]
[{include file="inc/infobox.tpl"}]
[{if $oxcmp_news && count($oxcmp_news) > 0}]
[{include file="inc/cmp_news.tpl"}]
[{/if}]
<strong class="h2" id="test_LeftSidePartnersHeader">[{ oxmultilang ident="INC_LEFTITEM_PARTNERANDSEAL" }]</strong>
<div class="partners">
<div class="logo">
[{include file="inc/trustedshops_item.tpl"}]
</div>
<div class="logo">
<a href="http://www.zend.com" id="link.zendSite"><img src="[{$oViewConf->getImageUrl()}]zend_logo.gif" alt=""></a>
[{oxscript add="oxid.blank('link.zendSite');"}]
</div>
</div>

View File

@ -1,6 +1,8 @@
<strong class="h2" id="test_LeftSideInfoHeader">Online</strong>
[{strip}]
<div class="partners" style="padding-left: 10px;">
[{$usersonline }] User(s)
</div>
[{/strip}]
[{if $oxcmp_user && $oxcmp_user->oxuser__oxrights->value == 'malladmin'}]
<strong class="h2" id="test_LeftSideInfoHeader">Online</strong>
[{strip}]
<div class="partners" style="padding-left: 10px;">
[{$usersonline }] User(s)
</div>
[{/strip}]
[{/if}]

BIN
setup+doku/Installation.pdf Normal file

Binary file not shown.

7
setup+doku/install.sql Normal file
View File

@ -0,0 +1,7 @@
CREATE TABLE d3usersonline (
`id` int(11) NOT NULL auto_increment,
`visitor` varchar(100) default NULL,
`timevisit` int(11) NOT NULL default '0',
`oxclass` varchar(32) collate latin1_general_ci NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;

View File

@ -1,45 +0,0 @@
Authors: Aggrosoft it intelligence, D3 Data Development
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-----------------------------------------------------------------------
Installation:
Kopieren Sie die Inhalte des "copy_this"-Ordner in Ihr Shop-Verzeichnis,
Führen Sie folgendes Script in Ihrer Datenbank aus:
CREATE TABLE d3usersonline (
`id` int(11) NOT NULL auto_increment,
`visitor` varchar(100) default NULL,
`timevisit` int(11) NOT NULL default '0',
`oxclass` varchar(32) collate latin1_general_ci NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
Fügen Sie nun das Modul zu Ihrem Shop hinzu:
oxcmp_utils => d3usersonline/views/d3_oxcmp_utils_usersonline
Sie können den counter nun in eines Ihrer Templates einbauen (evtl. _left.tpl)
Hierfür benötigen Sie lediglich folgende Zeile:
[{include file="inc/d3ce_usersonline.tpl"}]
HINWEIS:
Da nach deutschem Recht nicht einfach irgendwelche IP's in der DB abgespeichert werden
dürfen und Sie auch sicherlich kein Interesse an den IP's haben wird aus der User IP
ein Hash errechnet und dieser zum Vergleich herangezogen und gespeichert.

View File

@ -1,42 +0,0 @@
Authors: Aggrosoft it intelligence, D3 Data Development
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-----------------------------------------------------------------------
Installation:
Copy the contents in the "copy_this"-folder into your oxid folder.
Execute the following SQL Script in your oxid database (tools menu in admin backend):
CREATE TABLE d3ce_online_users (
id int(11) NOT NULL auto_increment,
visitor varchar(100) default NULL,
timevisit int(11) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
Add the Module to your Oxid Modules in the admin backend:
oxcmp_utils => d3ce_usersonline/views/d3ce_oxcmp_utils_usersonline
Now you can include the counter anywhere in your templates (e.g. _left.tpl)
You just need the following line:
[{include file="inc/d3ce_usersonline.tpl"}]
LEGAL NOTICE:
The users ip is never saved in your database, the ip will be hashed before it is stored.

Binary file not shown.