Go Back   68 Classifieds Forums > v4 Help & Support > v4 Modules / Modifications > Free Modules

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2007, 12:59 PM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 2,669
suzkaw has a spectacular aura about
Default Plugin - Recently Viewed

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 right

vdir(string)
The direction of each column to be rendered. possible values: down (top-to-bottom), up (bottom-to-top) default is down.
Code Download
Attached Files
File Type: zip recently_viewed.zip (4.2 KB, 0 views)
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Knowledge Base | User Manuals

Last edited by suzkaw : 02-22-2008 at 04:01 PM.
Reply With Quote
  #2  
Old 08-27-2007, 06:08 PM
michael's Avatar
michael michael is offline
Senior Member
 
Join Date: Jan 2007
Posts: 182
michael is on a distinguished road
Default

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)
Reply With Quote
  #3  
Old 02-22-2008, 03:58 PM
Mike-N-Tosh's Avatar
Mike-N-Tosh Mike-N-Tosh is offline
Moderator
 
Join Date: Jan 2007
Posts: 303
Mike-N-Tosh will become famous soon enough
Default

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
Attached Files
File Type: zip recently_viewed.zip (4.2 KB, 2 views)
__________________
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
Reply With Quote
  #4  
Old 02-22-2008, 04:02 PM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 2,669
suzkaw has a spectacular aura about
Default

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Design by HTWoRKS