Previous Thread
Next Thread
Print Thread
Hop To
#179965 03/04/2007 7:20 AM
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Ok, I know how the target="_blank" works but what I need is some idea on how to get it work with this code.

Code
<a href="{$url_path}/showphoto.php?photo={$pid}">$mthumb</a>

If I do this

Code
<a href="{$url_path}/showphoto.php?photo={$pid} TARGET="_blank"">$mthumb</a>

then it cuts the html off at the first closing quote and I get this for a link

Code
 http://my.domain.com/photopost/showphoto.php?photo=290 TARGET= 


So, is there anyway to do this and have the script open the photo in a new window instead of it loading over the forums?


-Tim
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
" in wrong place. ( see red " below )

Quote
<a href="{$url_path}/showphoto.php?photo={$pid} TARGET="_blank"">$mthumb</a>

Quote
<a href="{$url_path}/showphoto.php?photo={$pid}" TARGET="_blank">$mthumb</a>

Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Thanks, works great now.


-Tim
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It's amazing how placing a " in the wrong place can completely break things huh wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Yup, and it was broken. But now, no more using "back" just to get to the forums!!


-Tim
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The back button is evil; that is all :x


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
4 members (Outdoorking, Ruben, Nightcrawler, 1 invisible), 866 guests, and 254 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)