This is a discussion on Total hits counter within the v4 Modules / Modifications forums, part of the Help & Support category; As I wanted to offer my customers a message on the home page like This website offers {total_ads} that have ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
As I wanted to offer my customers a message on the home page like
This website offers {total_ads} that have been viewed {total_hits} times ... I had to create a new Smarty Plugin to make the {total_hits} variable available (the {total_ads} is natively offered in 68C). This function is the sum of the number of visualisation of each ad (hitcount in database). Basically this new function is a hack of the function.total_ads.php that allready exists in /includes/classes/smarty/plugin The new function is named function.total_hits.php and also placed in /includes/classes/smarty/plugin here is the code of function.total_hits.php you must create : PHP Code:
Enjoy the new {total_hits} variable in your templates
__________________
v4.08 Developer |
|
#2
|
||||
|
||||
|
Hi,
{total_ads} does not work. It is actually {total_listings} Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#3
|
|||
|
|||
|
Thanks for sharing it with us!
|
![]() |
| Bookmarks |
| Tags |
| forever philoo, thank you philoo |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Total ads counter | philoo | v4 Questions & Support | 6 | 09-17-2008 06:06 PM |
| category total on left menu | centinel3 | v4 Modules / Modifications | 7 | 08-26-2008 11:26 AM |
| How to display category total listings? | dankellaway | v3.1 Questions & Support | 2 | 03-13-2007 02:25 PM |
| Display Total Number of Users | Eric Barnes | v3.0 Questions & Support | 5 | 05-10-2006 12:22 PM |
| Display Total Number of Listings | Eric Barnes | v3.0 Questions & Support | 2 | 03-30-2006 03:29 PM |