Gossamer Forum
Home : Products : Gossamer Links : Discussions :

All titles owned by a link owner?

Quote Reply
All titles owned by a link owner?
Hi,

I saw this post. Anybody using this global or any idea how to list out all the link names (just Titles of the links) in emails that are sent to link owners?

http://gossamer-threads.com/...%20by%20user;#236805

thanks.
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
OK. Can i use this in emails that are sent to link owners? (just a list of 'Titles' of all his links)

http://www.gossamer-threads.com/...s/Detailed/1978.html

thanks.
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
You need to be able to pass in the Username for each email, and you'll need to modify the global to do it. You should be able to, I just don't have time now to make the change. Gotta run.

I vaguely remember this being done before, awhile back, though. It might still be listed in the forum.

Your calling tag would be something like <%display_links Username%>

And the global needs to assign "Username" to the LinkOwner field in the search.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
Not quite sure whether this is the same thing but here's an old global:

http://www.gossamer-threads.com/...i?post=218695#218695

Edit: Sorry not paying enough attention - this is for a list of categories that a link is in not a list of links. At least it might give you a clue where to start.

Edit2: Actually a simple edit I think

sub {
my ($rec) = @_;
my $name = $rec->{Username};
my $db = $DB->table ('Links');
my $sth = $db->select ( { 'LinkOwner' => $name }, ['Title'] );
my $output;
while (my $link = $sth->fetchrow_array){
$output.= qq~<li>$link~;
}
return $output;
}

Last edited by:

afinlr: Jul 1, 2003, 2:50 PM
Quote Reply
Re: [afinlr] All titles owned by a link owner? In reply to
Hi afinlr,

I created your global as 'display_links_username'

and i put this tag in emails:

<%display_links_username%>

Not working. Where to change?

thanks.
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
Anybody please????
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
Well I just tried it and it works for me.

I'm not sure what to suggest.
Quote Reply
Re: [hegu] All titles owned by a link owner? In reply to
Start by explaining what's not working.
Quote Reply
Re: [Paul] All titles owned by a link owner? In reply to
Hi,

When i put the tag <%display_links_username%> in the test email sent to myself, it didn't display 14 link titles that are owned by me.

I clicking on 'Selected Users' link under 'Email' and selected my username and try to send the email with the above tag. i am getting an empty email. no errors or no unknown tags.

thanks.

Last edited by:

hegu: Jul 4, 2003, 7:12 AM