68 Classifieds Forums

Add newlisting on index page

This is a discussion on Add newlisting on index page within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Hi, may I know how to add the Latest 10 listing to my index page ? just below the featured ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-27-2008, 01:28 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Rep Power: 0
baukiki is on a distinguished road
Default Add newlisting on index page

Hi, may I know how to add the Latest 10 listing to my index page ? just below the featured listing?
Reply With Quote
  #2  
Old 08-27-2008, 06:57 AM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 2
Fatih67 is on a distinguished road
Send a message via MSN to Fatih67
Default

Quote:
Originally Posted by baukiki View Post
Hi, may I know how to add the Latest 10 listing to my index page ? just below the featured listing?
Nice idea
__________________
© 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Reply With Quote
  #3  
Old 08-27-2008, 09:31 AM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,387
Rep Power: 83
Lhotch is just really niceLhotch is just really nice
Default

use the smarty plugin function.new_listings.php. Its just like the plugin on your home template that displays featured listings but it displays new listings.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #4  
Old 08-28-2008, 01:44 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Rep Power: 0
baukiki is on a distinguished road
Default

How do I add this plug in ? Do I paste the code in the layout.tpl file?

sorry im not so familiar with PHP
Reply With Quote
  #5  
Old 08-28-2008, 09:32 AM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,387
Rep Power: 83
Lhotch is just really niceLhotch is just really nice
Default

No, the layout.tpl.php file is the sites header, nav an footer. If you want it to appear on just the home page you would add it to just that template that makes up the body ie home.tpl.php.

look at your home.tpl.php file and at the bottom you will see this....

Code:
{* Featured Listings *}
<br />
{feature_listings_horizontal number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
in curly brackets you can see the feature_listings_horizontal smarty plugin is being called. You would add the smarty plugin function.new_listings.php to display new listings just like above.

Code:
{function.new_listings.php  number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sitemap Module - Index Page Not Included bowers01 v4 Questions & Support 0 08-11-2008 07:03 AM
Change Template on Index page for users Soleiltan v4 Questions & Support 10 03-15-2008 09:01 PM
index page Jessej v3.0 Questions & Support 1 01-22-2008 09:40 AM
can I run scripts in an content page? dawyatt v3.1 Questions & Support 11 06-22-2007 03:50 PM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 02:15 PM


All times are GMT -4. The time now is 03:13 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22