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: [Solved]: BBcodes  (Read 3119 times)

0 Members and 1 Guest are viewing this topic.

Halfhidden

  • Guest
[Solved]: BBcodes
« on: March 02, 2008, 10:41:12 pm »

Hi Everyone. and thanks for Coppermine and the wonderful support you guys give.
I've been trying to add a button to the description of a picture in the gallery. The idea is that the user can click the button to learn more about the picture. The button would be hyper linked to a php page that contains the header and footer of Coppermine but and html content (minus the headers). I have already designed the php page and it integrates well with the gallery but the button has got me. I tried bbcode but without any success. The code displayed the jpg but not hyperlinked. I've pasted  the link below..... can anyone guide me on this please.
(http://picturepenzance.co.uk/images/button1.jpg)

Regards,
Steff
PS I've used the my forum url as an example only
« Last Edit: March 02, 2008, 11:44:08 pm by Nibbler »
Logged

Halfhidden

  • Guest
Re: BBcodes
« Reply #1 on: March 02, 2008, 10:44:29 pm »

Damb it it works on this forum... sorry I'll post the bbcode below without the http or www for you so's that you can see what I've typed.

Code: [Select]
[url=http://picturepenzance.co.uk/myforum/index.php] [img]http://picturepenzance.co.uk/images/button1.jpg[/img][/url]
« Last Edit: March 02, 2008, 11:02:40 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: BBcodes
« Reply #2 on: March 02, 2008, 11:06:02 pm »

Your code got mangled, but the above works for me.

Oh, don't put a space in your URL.
Logged

Halfhidden

  • Guest
Re: BBcodes
« Reply #3 on: March 02, 2008, 11:10:40 pm »

Hi Nibbler,
Yes it did rather didn't it. I have entered the correct bbcode in the gallery description and expected the button to work as it has in this forum (above) do you know if there is any reason why when I use the same code in Coppermine I get the url part of the bbcode printed to screen and the jpg is called. Basically you can see the bbcode calling the url.

Regards,
Steff
Logged

Nibbler

  • Guest
Re: BBcodes
« Reply #4 on: March 02, 2008, 11:13:01 pm »

Yes, you have a space in your URL.
Logged

Halfhidden

  • Guest
Re: BBcodes
« Reply #5 on: March 02, 2008, 11:24:08 pm »

Sorry I should have said. I only have a space in the above example. here is a screen shot of what I get in the gallery. (http://www.picturepenzance.co.uk/images/example.jpg)
Any ideas?

Regards,
Steff
Logged

Halfhidden

  • Guest
Re: BBcodes
« Reply #6 on: March 02, 2008, 11:26:35 pm »

(http://www.picturepenzance.co.uk/images/example.jpg)

Lets face it ... I'm having a bad night.... and I'm all fingers and thumbs
Logged

Nibbler

  • Guest
Re: BBcodes
« Reply #7 on: March 02, 2008, 11:29:21 pm »

The screenshot shows you trying to use [link], this is not supported.
Logged

Halfhidden

  • Guest
Re: BBcodes
« Reply #8 on: March 02, 2008, 11:39:37 pm »

Ok... I'm the dumb one here. I can see now what you tried to tell me but I didn't listen. Your were right I had a space between [/img][/link] on the original link and therefore the url was printed. I then panicked and tried the link command and you rightfully said that this isn't supported. You'll be glad to hear that I have taken your advise, removed the space and the images is successfully hyper linked and working like a charm.
Thanks Nibbler.... I'll try my best to listen next time.
Regards,
Steff
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 17 queries.