![]() |
|
|||||||
| Register | Projects | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult. |
|
|
Thread Tools | Display Modes |
|
#11
|
||||
|
||||
|
I don't think this is possible as it loops through one field at a time. You could print out the zip in one url and the address in another, but then you won't have a good link.
Are you just trying to make it show for certian categories? Or are you trying to allow them to use a different address? It might be easier to just call these from viewlisting and pass them on to the template manually. Then just hide these particular fields from being displayed in the loop. What version are you using? 3.1.4 Developer??
__________________
Regards, John mods.auscity.com �By perseverance, study, and eternal desire, any man can become great.� George S. Patton |
|
#12
|
|||
|
|||
|
I'm using the designer version. Not sure that your suggestion makes sense to me.
One thing that I could do is to make the extra address field the clickable field, but I'd still need to access the zip field for the map to get the correct location. (vs. having a 3rd "map" field access the other 2 extra fields). |
|
#13
|
|||
|
|||
|
Just thought I'd let you know of another way of integrating the Yahoo! Map It Feature. Follow the step-by-step instructions given so wonderfully by Suzkaw on getting your Yahoo API ID, create your map.php file, however, you DON'T have to create an extra field - skip this step. Instead, go straight to the viewlistings.tpl.php file, and insert your link just above the "{* Extra Fields *}" as I have below:
<a href="javascript:void(0);" onclick="MM_openBrWindow('http://www.yourwebsitehere.com/directory/map.php?location={$owneraddress} {$ownercity} {$ownerstate} {$ownerzip}','contact','width=600,height=600')"><s trong> MAP COMPANY LOCATION</strong></a> NOTE: Leave a space between the variables {$owneraddress} SPACE {$ownercity} SPACE etc etc... You can do this on the memberlisting (member.tpl.php) page too - just remove the "owner" prefix (ie: {$address} ) |
|
#14
|
|||
|
|||
|
This may sound very stupid, but how do you create an extra field and add it to the array $extras?
|
|
#15
|
|||
|
|||
|
What would I need to do to insert the zoom tool?
__________________
V3.1.7 Developer |
|
#16
|
|||
|
|||
|
Nevermind I worked it out. I just added:
Code:
navWidget = new NavigatorWidget(); map.addWidget(navWidget);
__________________
V3.1.7 Developer |
|
#17
|
||||
|
||||
|
This mod works pretty well if the people put the address in the correct format. (address, city, state or zip). I have only had 1 user so far get it correct. I even put the example inside the extra txt field and they just simply leave my example in the box and type away. Any suggestion for checking if they have the correct address format or a javascript where when they select that box it removes my example? The other thing with me typing an example in the box then it adds that map url to every ad which is less than desirable.
Paul |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yahoo Maps - I can not get it to display link | redmtnex | v3.1 Modifications | 15 | 01-24-2007 12:09 AM |
| Yahoo index and Site Explorer | SkGold | Site Marketing | 32 | 11-17-2006 02:23 AM |
| Changing Yahoo Maps layout | GSP | v3.1 Modifications | 1 | 10-01-2006 09:57 AM |
| Making Yahoo map appear where photo would be | GSP | v3.1 Modifications | 0 | 09-26-2006 04:58 PM |
| Some Emails have never worked! | garysr | v3.1 Questions & Support | 9 | 06-15-2006 11:08 AM |