Previous Thread
Next Thread
Print Thread
Hop To
#179965 03/04/2007 7:20 AM
Joined: Feb 2007
Posts: 210
Likes: 2
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 210
Likes: 2
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: 210
Likes: 2
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 210
Likes: 2
Thanks, works great now.


-Tim
Joined: Jun 2006
Posts: 16,536
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,536
Likes: 150
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
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: 210
Likes: 2
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 210
Likes: 2
Yup, and it was broken. But now, no more using "back" just to get to the forums!!


-Tim
Joined: Jun 2006
Posts: 16,536
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,536
Likes: 150
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
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
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
7 members (toner, SD, Michael_E6D9, Bill_Owens, BellaOnline, 2 invisible), 374 guests, and 89 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)