Make BBCode urls open in new window

JohnnyC

Joined: 2006-08-22
Posts: 22
Posted: Tue, 2006-08-22 03:04

If I put a url into the summary field for an image, if the user clicks on it, they will navigate away from my site. I would prefer that the link open in a new window.

 
xJediXx

Joined: 2007-02-01
Posts: 53
Posted: Wed, 2007-10-17 19:08

Hey Johhny C,

Were you ever able to get your BBCode url's to open in a new window? If so, could you share your solution?

Thank You
Presa Canario

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-10-21 08:51

i suggest you start with the "geturls" (formatted urls) module. it lists some bbcode / html urls.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
xJediXx

Joined: 2007-02-01
Posts: 53
Posted: Fri, 2007-11-02 23:27

I really want to use Gallery 2 for my website, but I don't want people to leave gallery altogether when clicking on a Link thumbnail. See - http://pets4you.com/photogallery/v/Cats/

I need these to open in a new window. I would like to have one of my employees take a look at the code for achieving this - what file should he start with?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-03 06:23

http://gallery.menalto.com/node/37003#comment-252338

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
xJediXx

Joined: 2007-02-01
Posts: 53
Posted: Tue, 2007-11-06 16:28

Thanks for that Dave, it worked well for the Text Links. What file can be edited to change the thumbnail link to open in a new window?

http://www.pets4you.com/photogallery/v/Cats/

As you can see from my example, only the text link part opens in new window, but thumbnails open in same window. Thanks for help and any suggestions.

 
xJediXx

Joined: 2007-02-01
Posts: 53
Posted: Tue, 2007-11-06 23:32

Just FYI, I do realize there has been quite a bit of frustration regarding this issue and its apparent as I sift through the various past posts. I am just looking for a simple "open in New Window" solution. No Popups, No click image to close, No predefined window dimensions. I have tried RAW HTML & BBCODE options in General Tab, no luck. Also tried Link To Plugin/module - no luck there either. I am aware I will probably have to edit php code and thats fine. Thanks for any help.

http://www.pets4you.com/photogallery/v/Cats/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2007-11-07 01:19

@ open in new window. Sorry. I don't answer those questions. There is a bunch of ways and EVERYBODY wants a different way.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
xJediXx

Joined: 2007-02-01
Posts: 53
Posted: Wed, 2007-11-07 20:53

I agree everybody wants it a different way and it's frustrating to me that they all seem to have found their method. If there is, in fact, a bunch of ways, it should not be difficult in pointing out the standard way of doing this. Again I only want it to open in a new window. I don't want it the other 98 ways you have discussed. If you try my example link, you will see my goals are simple and clear. Nothing too tricky, you would think, in just adding a TARGET="_blank" to the code as I did with the text link. I just don't know what file to edit for thumbnails. Thanks again to all that provide good thoughtful answers.

http://www.pets4you.com/photogallery/v/Cats/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-11-08 02:31
Quote:
I just don't know what file to edit for thumbnails.

album.tpl of the theme you are using

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team