forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: balkanboy on December 19, 2005, 01:11:30 am

Title: Displaying url in pic description
Post by: balkanboy on December 19, 2005, 01:11:30 am
I have used format for url like this:
Code: [Select]
[url=http://yoursite.com/]Url Text[/url] for links in description, but links are not clickable. What should I change?
Title: Re: Displaying url in pic description
Post by: artistsinhawaii on December 19, 2005, 01:52:08 am
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
Title: Re: Displaying url in pic description
Post by: Nibbler on December 19, 2005, 02:06:29 am
Please post the exact code you are using to make the link.
Title: Re: Displaying url in pic description
Post by: balkanboy on December 19, 2005, 02:25:39 am
This is code:
Code: [Select]
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 (http://www.firefoxwallpapers.com/thumbnails.php?album=10)
Title: Re: Displaying url in pic description
Post by: artistsinhawaii on December 19, 2005, 03:05:29 am
Created by MRDS (http://www.mouserunner.com/MRDS_Cell.thml)                <--is that really what you have?  if so, ".thml"  is not a clickable web file type.

Dennis
Title: Re: Displaying url in pic description
Post by: balkanboy on December 19, 2005, 04:29:36 am
Ok never mind, I will leave it work this way.
Title: Re: Displaying url in pic description
Post by: artistsinhawaii on December 19, 2005, 06:32:09 am
balkanboy,

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

Dennis
Title: Re: Displaying url in pic description
Post by: Nibbler on December 19, 2005, 02:06:43 pm
Looks like someone decided to disable that feature. Edit include/functions.inc.php

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

and remove the strip_tags

Code: [Select]
        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".bb_decode($row['caption'])."</span>" : '';
        }
Title: Re: Displaying url in pic description
Post by: balkanboy on December 19, 2005, 11:56:22 pm
Thanks for help guys!
Title: Re: Displaying url in pic description
Post by: Joachim Müller on January 28, 2006, 06:25:52 pm
@devs: should be re-added to the devel code imo.
Title: Re: Displaying url in pic description
Post by: Tranz on January 31, 2006, 09:48:30 am
How about the smilies? The following will turn emoticons to smilies (or however it's supposed to be described):

Code: [Select]
        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:
Code: [Select]
    if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");
Title: Re: Displaying url in pic description
Post by: heb.xi.1 on February 08, 2009, 09:03:40 pm
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