Need code for opening in new window

Started by Jump1979man, April 21, 2006, 01:20:53 AM

Previous topic - Next topic

Jump1979man

I am wondering what needs to be added to the coding in the index.template to make the buttons when clicked open in a new browser window?

It apparently doesnt work like html coding of ---- target="_blank"-----

Can anyone help me with this?  Should be pretty simple.  Thanks.

jerm

it is that.. can you give an example of the code you want to modify?

JayBachatero

The target should work without a problem.  How are you adding the target?  Can you post an example?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Jump1979man

Here is the code I tried using....


echo '         
               <a href="http://www.mwmotorcycles.com/gallery2'; target="_blank"">', ($settings['use_image_buttons'] ? '<img src="http://www.mwmotorcycles.com/smf/themes/default/images/english/gallery.gif" alt="Midwest Motorcycles Forum Gallery" style="margin: 2px 0;" border="0" />' : 'HOME'), '</a>', $context['menu_separator'];

vbgamer45

You have a little error
Try this
echo '         
               <a href="http://www.mwmotorcycles.com/gallery2" target="_blank">', ($settings['use_image_buttons'] ? '<img src="http://www.mwmotorcycles.com/smf/themes/default/images/english/gallery.gif" alt="Midwest Motorcycles Forum Gallery" style="margin: 2px 0;" border="0" />' : 'HOME'), '</a>', $context['menu_separator'];
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Jump1979man

Quote from: vbgamer45 on April 21, 2006, 10:48:36 AM
You have a little error
Try this
echo '        
               <a href="http://www.mwmotorcycles.com/gallery2" target="_blank">', ($settings['use_image_buttons'] ? '<img src="http://www.mwmotorcycles.com/smf/themes/default/images/english/gallery.gif" alt="Midwest Motorcycles Forum Gallery" style="margin: 2px 0;" border="0" />' : 'HOME'), '</a>', $context['menu_separator'];



Thanks it works!!!

Advertisement: