Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

detailed url with Thumb_Images_GD ?

Quote Reply
detailed url with Thumb_Images_GD ?
Hi Andy,
do you see a way, to include a link to the detailpage of an thumbnail image from Thumb_Images_GD in this code???
Using <%detailed_url%> does not work!

Code:
<%Plugins::ULTRAGlobals::Random_Links(2,'676')%>
<%if Random_Loop.length%>
<%loop Random_Loop%>
<small><a href="<%detailed_url%>"><%Title%></a><br />
<a href="http://www.gpaed.de/Bilder/Kunstwerke/index.html"><img src="<%Plugins::Thumb_Images_GD::ThumbURL($ID,'Bilder')%>" border="0"></a><br /><br /></small>
<%endloop%>
<%endif%>

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] detailed url with Thumb_Images_GD ? In reply to
Should be simple. In ULTRAGlobals.pm, find the "sub Random_Links" bit, and change the while () loop to:

Code:
while (my $hash = $sth->fetchrow_hashref) {
$hash->{detailed_url} = $CFG->{build_detail_url} . "/" . $DB->table('Links')->detailed_url( $hash->{ID} );
push @output, $hash;
}

Should then give you the detailed_url tag.

BTW, what does this have to do with Thumb_Images_GD? Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] detailed url with Thumb_Images_GD ? In reply to
Hi Andy,
<%detailed_url%> is working fine know with random links in the ultra globals.

Quote:
BTW, what does this have to do with Thumb_Images_GD?
Im using random links combined with thumbnails from Thumb_Images_GD in my rightsidebar.
Some of these thumbnails have detailed pages, and now I can link to them :-)

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] detailed url with Thumb_Images_GD ? In reply to
Ok then - try a global then:

get_the_detailed_url
Code:
sub {
return $CFG->{build_detail_url} . "/" . $DB->table('Links')->detailed_url( $_[0] );
}

Call with:

Code:
<%get_the_detailed_url($ID)%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Feb 20, 2010, 5:57 AM
Quote Reply
Re: [Andy] detailed url with Thumb_Images_GD ? In reply to
Hm, the first solution is working fine. Is there a reason to prefer this second solution?

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] detailed url with Thumb_Images_GD ? In reply to
I thought you said the first solution didn't work for what you needed? Crazy

The 2nd one was just a backup - as that will make a detailed page from simply passing in a link ID ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!