Support Forums

New Listings in index page

This is a discussion on New Listings in index page within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I'm trying to call this function from home.tpl Code: {function.new_listings.php number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'} ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 09-02-2008, 05:14 PM   #1
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default New Listings in index page

Hi,

I'm trying to call this function from home.tpl

Code:
{function.new_listings.php  number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
[/quote]

and I receive this error

Quote:
Fatal error: Smarty error: [in home.tpl line 41]: syntax error: unrecognized tag: function.new_listings.php number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"' (Smarty_Compiler.class.php, line 446) in C:\wamp\www\hobbyclassified\includes\classes\smart y\Smarty.class.php on line 1095
Do you have any advice?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-02-2008, 05:20 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,315
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

It looks like you are calling it wrong.

It should be:
{new_listings number=8 etc....}

When calling smarty plugins you just use the portion of the name between function. and .php
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-02-2008, 06:15 PM   #3
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

Thank you Eric now it's work better but I'm trying to display the new listing exactly like the feature_listings_horizontal module.

Do you know how?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-02-2008, 06:20 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default

I do something very similar on my home page. If you would like the code for the horizontal featured and new listings using this CSS layout then you can find it here http://www.68classifieds.com/forums/...s-styling.html
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores

Last edited by seymourjames; 09-03-2008 at 08:04 AM. Reason: put the functions up for everyone
seymourjames is offline   Reply With Quote
Old 09-02-2008, 06:38 PM   #5
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

David,

I sent you a PM for the code.

Thanks!
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-03-2008, 07:16 AM   #6
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

anybody know how to display newlistings or toplistings in layout.tpl like feature_listings_horizontal module?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-03-2008, 09:06 AM   #7
Coder
 
Join Date: Mar 2006
Posts: 4,978
Rep Power: 121
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 hel68c
anybody know how to display newlistings or toplistings in layout.tpl like feature_listings_horizontal module?
You drop the plugin code line in layout.tpl just like you would any other template.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-03-2008, 09:41 AM   #8
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

Thanks Larry.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-03-2008, 10:21 AM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,233
Rep Power: 53
seymourjames has a spectacular aura about
Default

Follow the instructions on the page given in the modules forum. You just place this your home.tpl file (this will be on your index page) or any other page you wish. Putting it in your layout.tpl file will mean it will appear on every page and that may not be what you want.

{css_latest_listings_horizontal number=6}

This will create your 6 newest listings. I presume that is what you mean. Do not forget to add the css code I give to your css/style.css file in your template direcorty.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 09-03-2008, 12:46 PM   #10
Senior Member
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 284
Rep Power: 15
hel68c is just really nice hel68c is just really nice
Default

Thank you for your module it work great.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add newlisting on index page baukiki v3.1 Modules & Modifications 4 08-28-2008 09:32 AM
Sitemap Module - Index Page Not Included bowers01 Technical Support 0 08-11-2008 07:03 AM
Listings detail page fendter Technical Support 1 07-22-2008 08:41 PM
Listings Page Help...... primepuppy v3.1 Questions & Support 2 09-04-2006 04:16 PM
Newest Listings On Home Page zman78 v3.1 Modules & Modifications 24 05-26-2006 09:23 AM


All times are GMT -4. The time now is 05:03 AM.


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