Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Others Links by Link Owner

Quote Reply
Others Links by Link Owner
Is this possible..

On the detailed page for Link1 ..I would like to have small Menu Like "Other Links by <%Title%>"

<%if Link2%>
<%Title_Link2%>
<%endif%>

<%if Link3%>
<%Title_Link3%>
<%endif%>

<%if Link4%>
<%Title_Link4%>
<%endif%>

Thanks for the help.

Vishal Thakkar

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Others Links by Link Owner In reply to
Pretty simple.

Try something like;

Code:
sub {

my $User= shift;

my $table = $DB->table('Links');
my $sth = $table->select( { LinkOwner => $User } );

my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('link', $hit);
}

$back ? return $back : return "None";

}

Call it with <%global_name($LinkOwner)%>

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: Aug 5, 2003, 2:33 AM
Quote Reply
Re: [Andy] Others Links by Link Owner In reply to
WoW.. man you are fast.. thanks for the super quick reply....

So below global will show other listings with the link test as the Title of the listing, right?

Thanks.

Vishal Thakkar

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Others Links by Link Owner In reply to
>>>WoW.. man you are fast.. thanks for the super quick reply.... <<<

LOL

>>>So below global will show other listings with the link test as the Title of the listing, right?
<<<

Hopefully Smile

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!