This is a discussion on Plugin - Recently Viewed within the v4 Modules / Modifications forums, part of the Help & Support category; v4 Plugin - Recently Viewed The recently viewed plugin will allow you to display a table with the listings a ...
|
|||||||
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
#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 Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter Last edited by Eric Barnes; 02-22-2008 at 04:01 PM. |
|
#2
|
||||
|
||||
|
Thanks Eric.
__________________
v4.09 Developer MKClassifieds "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 - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3 Templates for sale | 68 Classifieds Customizations | My blog on 68 Web Hosting | Web Design & Development 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 Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#5
|
||||
|
||||
|
Hi,
I have working fine. But on some of my listings the titles are long. It then looks like this http://everythingsfree.org/image//im...ntlyviewed.jpg and as you can see stretches the table making it look very bad. Is there a way to make it only use the first say 10 digits then just put ... at the end? Cheers |
|
#6
|
||||
|
||||
|
How hard would this be to convert into showing other items from this seller?
Any ideas or anyone interested in coding it? Cheers |
|
#7
|
|||
|
|||
|
How do I add a header such as "Recently Viewed" to top of this module?
__________________
Running v4.0.8 Dev with the default template. |
|
#8
|
||||
|
||||
|
Code:
<tr> <th colspan="4"><strong>Featured</strong></th> </tr> Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#9
|
|||
|
|||
|
Its not working for me and I feel like an idiot for asking dumb questions but in which files do I insert this code into? Is it in the file "function.last_viewed.php" or above the code "{last_viewed number=5 cols=1}"?
__________________
Running v4.0.8 Dev with the default template. |
|
#10
|
||||
|
||||
|
Hi,
I only just seen the message sorry for the delay. Add it above {last_viewed number=5 cols=1} Nick
__________________
Nick Bowers 68c v4.09 Developer |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.68classifieds.com/forums/v4-modules-modifications/3528-plugin-recently-viewed.html
|
||||
| Posted By | For | Type | Date | |
| 68 Mods Recently Viewed | This thread | Refback | 09-03-2008 07:49 PM | |
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 |