Support Forums

Old 04-04-2006, 09:28 AM   #1
Junior Member
 
Join Date: Mar 2006
Posts: 8
Rep Power: 0
Member88 is on a distinguished road
Default Customizing new and featured listings

I know back in the old forums somebody posted instructions what files to change and how to change them to make New Listings appear underneath the navigational menu on the left. Unfortunately, they're gone now that I'm ready to use them. Any help?
Member88 is offline   Reply With Quote
Old 04-04-2006, 11:45 AM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,635
Rep Power: 112
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

There is a smarty plugin called new_listings which is used just like the featured_listings_horizontal.

If you want it to appear under the nav menu you would insert that function into the layout.tpl.php file.
Lhotch is offline   Reply With Quote
Old 04-04-2006, 12:22 PM   #3
Junior Member
 
Join Date: Mar 2006
Posts: 8
Rep Power: 0
Member88 is on a distinguished road
Default

Thanks Hotch but I need way more specific instructions than that as I'm totally new to this. Like where do I find the plugin? ( Googled "smarty php plugins for 68 classifieds", clicked on the link and of course that page is now gone.) And where exactly would I insert that plugin into the layout.tpl.php file?
Member88 is offline   Reply With Quote
Old 04-04-2006, 12:35 PM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,635
Rep Power: 112
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

The plugin is already installed in includes/template/plugins directory and it is called function..new_listings.php.

If you open up your template file home.tpl.php at the bottom you will see the smarty function that displays featured listings, it looks like this.

{feature_listings_horizontal number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}

the 1st part "feature_listings_horizontal" is the name of the smarty function and the items after it are the various parameters that can be passed to the function.

number= is how many ads to display
cols= how many columns to display
table_attr= these are attributes that define how the table is displayed
td_attr= these are attributes that display how the cells in the table are displayed.

The new listing function doesnt have colums as a parameter just number of ads to display. To get a fee for how it looks perhaps start by placing the function just below featured ads in the home.tpl.php template, something like this...

{new_listings number=8 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}

then once you get a better feel for it you can play with some of the table attributes etc and place it in your layout.tpl.php template and try to get it to fit in the width allotted by the nav table.
Lhotch is offline   Reply With Quote
Old 04-05-2006, 08:11 PM   #5
Junior Member
 
Join Date: Mar 2006
Posts: 8
Rep Power: 0
Member88 is on a distinguished road
Default

Thanks Hotch - now that's more my speed! I appreciate the help.

Steve
Member88 is offline   Reply With Quote

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



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


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