68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
  #1  
Old 10-24-2007, 11:04 AM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default Moving Feature box to the top

Im using the Developer Version and 68gren template, where can i go in and make it so that in the indes, the feature box is listed on top (over the catagories box) and how can i give the feature box a name for example the categories have "Browse Categories" How can i give the featue box a name with that line accross?
Thank You
Reply With Quote
  #2  
Old 10-24-2007, 11:18 AM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,750
Default

Check out some of the stickies in the template forums. It really helps to have an understanding of how the different templates interlock and work together to build a complete page.

Having said that, the body for the main page is home.tpl.php and the featured listings are created by the smarty function feature_listings_horizontal. This is called at the bottom of the home.tpl.php file with the following line.

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

You can move that to the top of the file to display it before the categories.

To add a header to it you will need to modify the function itself and that is

/includes/classes/smarty/plugins/function.feature_listings_horizontal.php
__________________
Larry.
Reply With Quote
  #3  
Old 10-24-2007, 11:23 AM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default

so in order to move it to the top, i should valign="top"
Reply With Quote
  #4  
Old 10-24-2007, 11:32 AM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default

nvm, ignore the last comment i wasnt thinking straight, but what code or what should i add to that page in order to get a header in that features box
Reply With Quote
  #5  
Old 10-24-2007, 01:25 PM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default

Any idea on how to insert that header into the feature box?
Reply With Quote
  #6  
Old 10-24-2007, 01:47 PM
HotAir HotAir is offline
Member
 
Join Date: Jan 2007
Posts: 53
Default

Here you go...
Quote:
Originally Posted by Lhotch View Post
To add a header to it you will need to modify the function itself and that is

/includes/classes/smarty/plugins/function.feature_listings_horizontal.php
Regards
__________________
V3.1.10 Developer
Reply With Quote
  #7  
Old 10-24-2007, 02:15 PM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default

i got that par, but how do you modify it?
Reply With Quote
  #8  
Old 10-24-2007, 02:30 PM
HotAir HotAir is offline
Member
 
Join Date: Jan 2007
Posts: 53
Default

Hi comcoach,

It's a combination of php, smarty and html -- If the contents of that function file don't make sense perhaps you know someone who can help.

The lines that begin with '$output =' build the table. I suggest keeping a clean unaltered copy of the file so you can revert to it if it gets too messed up (I speak from experience!!)

Regards,
Jim
__________________
V3.1.10 Developer
Reply With Quote
  #9  
Old 10-24-2007, 03:17 PM
comcoach comcoach is offline
Member
 
Join Date: Oct 2007
Posts: 42
Default

any suggestions on where i should start? do i also have create that code in language/english file?
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Bold feature to TOP of the list luisram v3.1 Modifications 5 04-13-2007 12:20 AM
Bold listing feature? Mike-N-Tosh v3.1 Questions & Support 11 03-20-2007 09:36 AM
Upload File Feature does not work sporthorsebreeder v3.1 Questions & Support 10 08-16-2006 10:39 AM
File Upload Feature Problem sporthorsebreeder v3.1 Questions & Support 9 07-27-2006 09:34 AM


All times are GMT -4. The time now is 02:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.