hyperlink in album description hyperlink in album description
 

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]

Main Menu

hyperlink in album description

Started by rodan, March 01, 2004, 01:58:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rodan

In case I didn´t find anything about this on this board by searching I would like to ask if there is a possibilty to use HTML or BBcode in the album description because I would like to set a hyperlink there to a Zip file on another webspace which contains all the pictures of the album.

I know there are Zip File MODS but in this case the file should be on another webspace ... like this



<a href="http://www.123.com/test.zip"><img src="download.gif" heigth=10 width=10></a>

Can anyone help me. BBcode would also solve the problem !!?

thanks

/rodan

Nibbler


rodan

Thanks it works...

Is it also possible to show a picture instead of the text link ?
I tried several bbcodes for IMG ( I´m not yet really into bbcode - so i don´t know the right one ) but none did function.

If no - no problem ...
otherwise ;) THANKS

rodan

hmmmm i read this board FAQ but the bbcode for image there and the exact example did not work...

so I´ll use the text link then ... thx

Nibbler

If you add the img tag processing into functions.php you can use the img tags in your descriptions also.

Search for the function "function bb_decode($text)"

and add the following block above the codes for bold, underline,and italics.


// [img] and [/img] for images
$text = str_replace("[img]", '<img src="', $text);
$text = str_replace("[/img]", '">', $text);


You can add any new BBCode tags you like in this way

Nibbler

To do exactly what you want, you could create a new tag like this:

into functions.inc.php in the same place a above, add:


$text = str_replace("[zip]", '<a href="http://www.123.com/', $text);
$text = str_replace("[/zip]", '.zip"><img src="download.gif" height=10 width=10></a>', $text);


Then into album descriptions you can use

Quote[zip]test[/zip]

To add your image with link to zip file you specify within the tags.

Bruz

I think I will use your solution too Nibbler - because there seems to be no way to get the "download an album as .zip"-feature running.

Thx for your advice!
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

rodan

danke vielmals & merci beaucoup ... thanks !