forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: cpguser1 on July 01, 2011, 03:42:04 pm

Title: Album Description Link to be opened in a new window. Possible ?
Post by: cpguser1 on July 01, 2011, 03:42:04 pm
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.
Title: Re: Album Description Link to be opened in a new window. Possible ?
Post by: Αndré 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);
Title: Re: Album Description Link to be opened in a new window. Possible ?
Post by: cpguser1 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. :)
Title: Re: Album Description Link to be opened in a new window. Possible ?
Post by: cpguser1 on July 01, 2011, 06:17:23 pm
What about my desert ?  ;D
Title: Re: Album Description Link to be opened in a new window. Possible ?
Post by: Αndré 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 (http://forum.coppermine-gallery.net/index.php?action=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.
Title: Re: Album Description Link to be opened in a new window. Possible ?
Post by: cpguser1 on July 26, 2011, 02:23:35 pm
Yes. I am sorry. I found that out from the documentation. :)