Support Forums

Plugin Help

This is a discussion on Plugin Help within the Technical Support forums, part of the Technical Support Forums category; v4.0.9 Developer I'm new at this. I wanted to try the recently_viewed plugin, so I downloaded and unzipped the file ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-10-2008, 07:05 PM   #1
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default Plugin Help

v4.0.9 Developer

I'm new at this.

I wanted to try the recently_viewed plugin, so I downloaded and unzipped the file and put in includes/classes/smarty/plugins

Then I put {last_viewed number=5 cols=1} in home.tpl just below the Featured Listings div. like this:

(default/home.tpl)

<div id="newlistings">
<h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2>
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}
</div>
<br />
{last_viewed number=5 cols=1}


I refresh my home page and see nothing at all

Any suggestions on what I'm missing?

Thanks!
dollpage is offline  
Old 10-10-2008, 10:11 PM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 49
Maffo is just really nice Maffo is just really nice
Default

You say you see nothing, you mean a blank screen? Or your page as normal but without the plugin?
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 10-10-2008, 11:47 PM   #3
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Sorry... I meant I saw no change at all. The page did load OK.

Actually, that's not quite accurate. I put a <br /> above the {last_viewed number=5 cols=1} and I could tell that there was another line in the page, so the <br /> worked fine. But no othet change was apparent.

I read the readme file which didn't mention that any changes were required to the style sheet or the admin panel or anything else, and it just doesn't feel right. Although I've had some experience with HTML and PHP, I'm just starting with smarty and don't have a grasp on it yet. I have the feeling that I'm missing some step that is just 'assumed'

Thanks!
dollpage is offline  
Old 10-10-2008, 11:56 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,341
Rep Power: 132
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by dollpage
Sorry... I meant I saw no change at all. The page did load OK.

Actually, that's not quite accurate. I put a <br /> above the {last_viewed number=5 cols=1} and I could tell that there was another line in the page, so the <br /> worked fine. But no othet change was apparent.

I read the readme file which didn't mention that any changes were required to the style sheet or the admin panel or anything else, and it just doesn't feel right. Although I've had some experience with HTML and PHP, I'm just starting with smarty and don't have a grasp on it yet. I have the feeling that I'm missing some step that is just 'assumed'

Thanks!
does your site have any ads that have been viewed? Did you clear the contents of /templates_c?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-11-2008, 12:03 AM   #5
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Aha!

Yes, I have several ads that I've viewed several times... but I haven't heard a word about templates_c I've seen the templates_c folder in the directory but haven't looked in there yet. I've also been wondering what they were but haven't had a chance to research them yet. I'll do that now.

So do templates_c have something to do with plugins?

Thanks again!
dollpage is offline  
Old 10-11-2008, 10:38 AM   #6
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,058
Rep Power: 61
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by dollpage
So do templates_c have something to do with plugins?
The templates_c directory doesn't have anything to do with the plugins, but has to do with the Smarty templating system. The directory is basically a cache directory. Once a page has been "rendered" it is saved in this directory. This theoretically makes the site faster to the each page view doesn't have to be rendered dynamically each time.

Try deleting the files within the templates_c directory and then view your page again. Since there won't be a pre-rendered page in the directory the page will be rendered again when you view it.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 10-11-2008, 12:15 PM   #7
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Thanks Mike!

Interesting stuff. I deleted all the files in the templates_c dir but it didn't change my results at all.

I'll figure it out eventually... I just can't help thinking that I'm overlooking something really stupid, because the help on these forums is really great and I haven't seen too many other folks having this problem.

Thanks!
dollpage is offline  
Old 10-11-2008, 12:43 PM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Sorry for jumping in late but you said you are using the last viewed plugin.

I think the code you need is just:
{last_viewed number=5}

Also nothing will show until you actually go to the viewlisting page of a listing. That is where the listing is saved as a cookie or session.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 10-11-2008, 01:02 PM   #9
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Thanks Mike!

I'm still not having any luck, though.

I placed your code {last_viewed number=5} in home.tpl just above the featured listings section:

</table>
<br />
{last_viewed number=5}
<div id="newlistings">
<h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2>
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}


Then cleared templates_c, then clicked on a half dozen or so of my listings, but stilll nothing shows up

TheDollPage.com Show & Sell Site

I also tried it logged in as a user, admin, and as guest, and in IE6 and FireFox.

Are you sure that I don't need to add some css or create a table for it, put it in a div, or something like that?

Thanks!
dollpage is offline  
Old 10-12-2008, 06:55 AM   #10
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,073
Rep Power: 32
bowers01 is on a distinguished road
Default

Hi,
Did you actually upload the files you unzipped? it happened a few times heer were users didnt actually upload the files.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin - Category Tag Cloud Eric Barnes Modules / Plugins / Modifications 12 05-11-2010 01:49 PM
Plugin - Recently Viewed Eric Barnes Modules / Plugins / Modifications 21 02-22-2010 01:49 PM


All times are GMT -4. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0