Support Forums

Old 05-04-2009, 06:34 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 702
Rep Power: 18
bowers01 is on a distinguished road
Default Where does {$extra_listing_fields} come from?

Hi,
I have a huge amount of extra fields, and when posting it can be confusing because they are so close together.
I want to use this
Code:
onMouseOver="this.bgColor = '#C0C0C0'"
    onMouseOut ="this.bgColor = '#FFFFFF'"
but in step3.tpl just has {$extra_listing_fields}, where does this come from? how do i edit it?
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer
bowers01 is online now   Reply With Quote
Old 05-04-2009, 08:24 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,137
Rep Power: 101
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by bowers01 View Post
Hi,
I have a huge amount of extra fields, and when posting it can be confusing because they are so close together.
I want to use this
Code:
onMouseOver="this.bgColor = '#C0C0C0'"
    onMouseOut ="this.bgColor = '#FFFFFF'"
but in step3.tpl just has {$extra_listing_fields}, where does this come from? how do i edit it?
Cheers,
Nick
If you follow your own advice.....

add {$city} to viewlisting.tpl title tag

you will see the script where checkout originates and if you take a second to look at that file it will show you the exact path to each of the checkout files. As luck would have it they have similar names to the steps in checkout...ie step3.php.


Look in step3.php and you see the extra fields being returned from a function in the Lisings file....

$class_tpl->assign('extra_listing_fields', $Listings->extra_listing_fields($category));

Look in Listings.php for the function name extra_listing_fields and you will have the function that collects the extra field data from the database and builds the html to display it.
__________________
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 | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old Today, 07:17 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 702
Rep Power: 18
bowers01 is on a distinguished road
Default

Hi,
Thanks for the reply.
If i search in listings.php i can find function extra_listing_fields($section) is this where you are talkign about? if so there are different sections where it makes a table.

1.
Code:
if($row['fType']=="P")
2.
Code:
if($row['fType']=="D" && $row['fRange']=="N")
3.
Code:
elseif($row['fType']=="D" && $row['fRange']=="Y")
4.
Code:
elseif($row['fType']=="C")
5 and the rest
Code:
elseif($row['fType']=="B")
elseif($row['fType']=="S")
elseif($row['fType']=="M")
elseif($row['fType']=="F")
Which one should i be changing?
Thanks for the help,
Nick
__________________
Nick Bowers
68c v4.09 Developer
bowers01 is online now   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


Similar Threads
Thread Thread Starter Forum Replies Last Post
extra_listing_fields in usermodifylisting.tpl - help darek v4 Questions & Support 5 09-16-2008 05:40 PM


All times are GMT -4. The time now is 08:04 AM.


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