Embedding HTML code into the Description field of a picture. Embedding HTML code into the Description field of a picture.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Embedding HTML code into the Description field of a picture.

Started by racingworld08, September 27, 2008, 01:14:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

racingworld08

Hi

I have created an album which has several pictures. For each picture, I am inputting text in the description text field describing the picture. I have a situation where I need some of the text in this description field to be a html link to another site. Is this possible?? I tried putting some html code in the description text box but it didnt work.

I would appreciate any assistance in how I can go about doing this if at all possible.

thanks

JohnM-UK

#1
You can use BB Code. Example:

http://www.oneuk.f2s.com/photos/displayimage.php?pos=-216 [Edit GauGau] Removed hotlinked image (http://www.oneuk.f2s.com/photos/albums/2007/thumb_C_IMG_1879.jpg), as it serves no particular purpose in your posting. In the future, if you must post reference to an image, don't hotlink it, but attach it [/Edit]

Link I used there:
[url=http://maps.google.co.uk/?ie=UTF8&ll=52.328196,1.683719&spn=0.002419,0.004989&t=k&z=18&om=1]Map[/url]
Which gives:
Map

So..
[url=http://www.yoursite.com/whateverfolder/page.php]Text to link[/url]

racingworld08

thanks for that JohnM.. It worked.  However, I want the link to open up a new window as I dont want users to leave my site. Any assistance on that would be greatful.

thomasFRU

#3
change line 594 in function.inc.php to
                $bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" target="external">{DESCRIPTION}</a></span>';