|
|
#1 |
|
Junior Member
Join Date: Mar 2006
Posts: 8
Rep Power: 0 ![]() |
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?
|
|
|
|
|
|
#2 |
|
Coder
Join Date: Mar 2006
Posts: 4,635
Rep Power: 112 ![]() ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2006
Posts: 8
Rep Power: 0 ![]() |
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?
|
|
|
|
|
|
#4 |
|
Coder
Join Date: Mar 2006
Posts: 4,635
Rep Power: 112 ![]() ![]() ![]() |
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. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2006
Posts: 8
Rep Power: 0 ![]() |
Thanks Hotch - now that's more my speed! I appreciate the help.
Steve |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|