|
|
|
#1
|
||||
|
||||
|
v4 Plugin - Recently Viewed
The recently viewed plugin will allow you to display a table with the listings a user has recently viewed. Requirements Minimum version 4.0.0 Instructions Save the code below as function.last_viewed.php and place it in the includes/classes/smarty/plugins/ folder. After you have saved the file you can use this code in the template file: Code:
{last_viewed number=5 cols=1}
Parameters Below is a list of parameters you can use when calling this plugin. number(integer) The max number of listings you want displayed.cols(integer) This is the number of columns you want to display before a new row is started.table_attr(string) Any table attributes you would like. For example: table_attr='width="100%"'.tr_attr(string) Any tr attributes you would like. show_price(string) Y or N.trailpad(string) A value to pad the trailing cells on last row with (if any) The default is a space or hdir(string) The direction of each row to be rendered. possible values: left (left-to-right), right (right-to-left) the default is rightvdir(string) The direction of each column to be rendered. possible values: down (top-to-bottom), up (bottom-to-top) default is down.Code Download
__________________
Eric Barnes 68 Classifieds Developer Customer Area | Issue Tracker | Knowledge Base | User Manuals Last edited by suzkaw : 02-22-2008 at 04:01 PM. |
|
#2
|
||||
|
||||
|
Thanks Eric.
__________________
v4.rc9 Developer MKClassifieds.co.uk "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
#3
|
||||
|
||||
|
In order to make this as easy and "Idiot" free, I have created a folder with a readme and the compiled code into the correct file name to enable easier use of this module.
I hope that this is alright with suzkaw, if not I'm sure he'll remove this post. Cheers, -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org Your portal to life in Indiana County PA I can what I can and I can't what I can't. I am not a 68C employee, just a user and try to help out |
|
#4
|
||||
|
||||
|
Thanks Mike! I added your zip file to the first post just in case someone misses it.
__________________
Eric Barnes 68 Classifieds Developer Customer Area | Issue Tracker | Knowledge Base | User Manuals |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| subcategories viewed on index.php | newone | v3.1 Questions & Support | 2 | 06-14-2007 11:18 AM |
| Main Category Font Viewed in IE & FireFox | Scooter | v3.1 Questions & Support | 1 | 09-22-2006 10:58 AM |
| Removing the field that shows the number of times an advert has been viewed | sporthorsebreeder | v3.1 Questions & Support | 2 | 09-18-2006 08:07 PM |