coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Halfhidden on March 02, 2008, 10:41:12 PM

Title: [Solved]: BBcodes
Post by: Halfhidden 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.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fpicturepenzance.co.uk%2Fimages%2Fbutton1.jpg&hash=aec934757e03298845bc3b75727f6ce6d4e7f11f) (http://www.picturepenzance.co.uk/my%20forum/index.php)

Regards,
Steff
PS I've used the my forum url as an example only
Title: Re: BBcodes
Post by: Halfhidden 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.

[url=http://picturepenzance.co.uk/myforum/index.php] [img]http://picturepenzance.co.uk/images/button1.jpg[/img][/url]
Title: Re: BBcodes
Post by: Nibbler 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.
Title: Re: BBcodes
Post by: Halfhidden 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
Title: Re: BBcodes
Post by: Nibbler on March 02, 2008, 11:13:01 PM
Yes, you have a space in your URL.
Title: Re: BBcodes
Post by: Halfhidden 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. (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.picturepenzance.co.uk%2Fimages%2Fexample.jpg&hash=b3774a91fa08f1cc622deb6ef4e51978714572f9)
Any ideas?

Regards,
Steff
Title: Re: BBcodes
Post by: Halfhidden on March 02, 2008, 11:26:35 PM
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.picturepenzance.co.uk%2Fimages%2Fexample.jpg&hash=b3774a91fa08f1cc622deb6ef4e51978714572f9)

Lets face it ... I'm having a bad night.... and I'm all fingers and thumbs
Title: Re: BBcodes
Post by: Nibbler on March 02, 2008, 11:29:21 PM
The screenshot shows you trying to use [link], this is not supported.
Title: Re: BBcodes
Post by: Halfhidden 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