Album Description Link to be opened in a new window. Possible ? Album Description Link to be opened in a new window. Possible ?
 

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

Main Menu

Album Description Link to be opened in a new window. Possible ?

Started by cpguser1, July 01, 2011, 03:42:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cpguser1

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.

Αndré

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

cpguser1

Quote from: Αndré on July 01, 2011, 04:20:28 PM
Probably the easiest solution would be to change
$curr_alb_desc = preg_replace("/\[url=(.*)]/Uis", "<a href='$1'>", $curr_alb_desc);
to
$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. :)


Αndré

Quote from: Joachim Müller on September 28, 2008, 10:28:42 AM
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:
Quote from: Joachim Müller on September 28, 2008, 10:22:18 AM
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.

cpguser1

Yes. I am sorry. I found that out from the documentation. :)