Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Album Description Link to be opened in a new window. Possible ?  (Read 3428 times)

0 Members and 1 Guest are viewing this topic.

cpguser1

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Hello,

Thanks for this wonderful script.

This is in reference to following modification made in this thread

http://forum.coppermine-gallery.net/index.php/topic,66679.msg331510.html#msg331510

I have applied this and it is working nicely. Only problem is when I click the link in the album description, it gets opened in the same window. I want it to open in a new window. Will it be possible ?

Thanks & Regards,
cpguser1

P.S. : If I may dare to ask that I also want Google Adsense Code Right Below this description, can someone help me in this request also ? Sorry for asking personalised deserts after a free meal.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album Description Link to be opened in a new window. Possible ?
« Reply #1 on: July 01, 2011, 04:20:28 pm »

Probably the easiest solution would be to change
Code: [Select]
$curr_alb_desc = preg_replace("/\[url=(.*)]/Uis", "<a href='$1'>", $curr_alb_desc);to
Code: [Select]
$curr_alb_desc = preg_replace("/\[url=(.*)]/Uis", "<a href='$1' target='_blank'>", $curr_alb_desc);
Logged

cpguser1

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Album Description Link to be opened in a new window. Possible ?
« Reply #2 on: July 01, 2011, 06:16:42 pm »

Probably the easiest solution would be to change
Code: [Select]
$curr_alb_desc = preg_replace("/\[url=(.*)]/Uis", "<a href='$1'>", $curr_alb_desc);to
Code: [Select]
$curr_alb_desc = preg_replace("/\[url=(.*)]/Uis", "<a href='$1' target='_blank'>", $curr_alb_desc);

Yes, Even I tried this. But I wrongly added one more " in that. Thanks a lot for your help. :)
Logged

cpguser1

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Album Description Link to be opened in a new window. Possible ?
« Reply #3 on: July 01, 2011, 06:17:23 pm »

What about my desert ?  ;D
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album Description Link to be opened in a new window. Possible ?
« Reply #4 on: July 13, 2011, 05:14:44 pm »

10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question.


Additionally:
3. Search the board
The search facility on the forums is probably your best friend when having a problem, there is a good chance that someone else has had the problem you are having and that a solution has been posted before, so to try and get an answer straight away use this tool. If at first you don't seem to find what you are looking for try again with different words.

I suggest to search the themes board, as we already answered the question how to add content below the image a lot of times. The best and easiest option would be to add your code to the $template_display_media block in your theme.php file.
Logged

cpguser1

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Album Description Link to be opened in a new window. Possible ?
« Reply #5 on: July 26, 2011, 02:23:35 pm »

Yes. I am sorry. I found that out from the documentation. :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.