forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: billionaire_babe07 on August 26, 2004, 09:20:13 pm

Title: Linking in category descriptions
Post by: billionaire_babe07 on August 26, 2004, 09:20:13 pm
I've read your FAQ and know how to add a link (Link (http://www.site.com)) but I wanted to know if there was a way to make it so the link opens in the same window, instead of opening in a new window? If there is, please help!

Thank you in advance,
Billionaire_babe07
Title: Re: Linking in category descriptions
Post by: Joachim Müller on August 26, 2004, 10:02:36 pm
edit include/functions.inc.php, find
Code: [Select]
_blankand replace with
Code: [Select]
_top(3 times).

GauGau
Title: Re: Linking in category descriptions
Post by: apassio on September 08, 2004, 06:48:11 pm
What is the impact of this change? Does it concern the url link in the category description or any other url link as well? I tried to do what you said (could only find 1 occurence of _blank), but it did not work, when I click on a url link set up in an album properties, it opens the url in a separate new window

Thanks
Title: Re: Linking in category descriptions
Post by: kegobeer on September 08, 2004, 06:51:01 pm
If you only found one, then you may not have 1.3.x.  There are indeed three occurrences of _blank, two in function make_clickable($text) and one in function bb_decode($text).
Title: Re: Linking in category descriptions
Post by: apassio on September 10, 2004, 11:46:50 am
Ok, you're right I found the 3 instances. Before I go ahead and make the changes proposed above, can you please confirm that they will only affect the urls put in the album properties and nothing else?
Thanks
apassio
Title: Re: Linking in category descriptions
Post by: Nibbler on September 10, 2004, 12:56:56 pm
They will affect any url you write as http://yoursite.com and are made clickable plus any urls you form using bbcode.