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: hyperlink in album description  (Read 3408 times)

0 Members and 1 Guest are viewing this topic.

rodan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
hyperlink in album description
« on: March 01, 2004, 01:58:32 pm »

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



Code: [Select]
<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
Logged

Nibbler

  • Guest
hyperlink in album description
« Reply #1 on: March 01, 2004, 02:56:15 pm »

Use BBCode in the album description

Download zip
Logged

rodan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
:)
« Reply #2 on: March 01, 2004, 03:22:44 pm »

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
Logged

rodan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
hyperlink in album description
« Reply #3 on: March 01, 2004, 03:33:20 pm »

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
Logged

Nibbler

  • Guest
hyperlink in album description
« Reply #4 on: March 01, 2004, 03:47:12 pm »

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.

Code: [Select]

// [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
Logged

Nibbler

  • Guest
hyperlink in album description
« Reply #5 on: March 01, 2004, 04:00:50 pm »

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:

Code: [Select]

$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.
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
hyperlink in album description
« Reply #6 on: March 01, 2004, 04:07:23 pm »

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!
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

rodan

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
hyperlink in album description
« Reply #7 on: March 01, 2004, 05:18:32 pm »

danke vielmals & merci beaucoup ... thanks !
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.