Displaying url in pic description Displaying url in pic description
 

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

Displaying url in pic description

Started by balkanboy, December 19, 2005, 01:11:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

balkanboy

I have used format for url like this: [url=http://yoursite.com/]Url Text[/url] for links in description, but links are not clickable. What should I change?

artistsinhawaii

Did you enable bb How do I enable bb_decode?   Look at the FAQ document and go to the "How do I enable clickable links in custom user fields?" section

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Nibbler

Please post the exact code you are using to make the link.

balkanboy

This is code: Created by [url=http://www.mouserunner.com/MRDS_Cell.thml]MRDS[/url]
It's clickable on file info page but I want it to be clickable on album list like on http://www.firefoxwallpapers.com/thumbnails.php?album=10

artistsinhawaii

Created by MRDS                <--is that really what you have?  if so, ".thml"  is not a clickable web file type.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

balkanboy

Ok never mind, I will leave it work this way.

artistsinhawaii

balkanboy,

I meant. Your extension was ".thml" it should be ".html" .

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Nibbler

Looks like someone decided to disable that feature. Edit include/functions.inc.php


        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".strip_tags(bb_decode($row['caption']))."</span>" : '';
        }


and remove the strip_tags


        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".bb_decode($row['caption'])."</span>" : '';
        }

balkanboy


Joachim Müller

@devs: should be re-added to the devel code imo.

Tranz

How about the smilies? The following will turn emoticons to smilies (or however it's supposed to be described):

        if ($CONFIG['views_in_thumbview'] || in_array('hits',$must_have)) {
            $caption .= '<span class="thumb_title">' . sprintf($lang_get_pic_data['n_views'], $row['hits']).'</span>';
        }        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".bb_decode(process_smilies($row['caption']))."</span>" : '';
        }


The thing is if smilies are disabled in Config, there will be a function not found error due to this check:
    if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");


heb.xi.1

Nibbler's post above worked for me, to a point - in that my links are now clickable as I wanted on the thumbnails page.  However now all of my lines are double spaced, but only on the thumbnail view.  On the normal single item view they displays correctly.  Is there another way to tweak this so that the lines are spaced as they should AND the links are clickable?

Coppermine Link:  http://www.regapgreyhounds.org/cpg
w/wrapper: http://www.regapgreyhounds.org/index.php?page=test