Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Linking in category descriptions  (Read 3894 times)

0 Members and 1 Guest are viewing this topic.

billionaire_babe07

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Linking in category descriptions
« on: August 26, 2004, 09:20:13 pm »

I've read your FAQ and know how to add a link (Link) 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Linking in category descriptions
« Reply #1 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
Logged

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
Re: Linking in category descriptions
« Reply #2 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Linking in category descriptions
« Reply #3 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).
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

apassio

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
    • Christine & Son's website
Re: Linking in category descriptions
« Reply #4 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
Logged

Nibbler

  • Guest
Re: Linking in category descriptions
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.