Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [sangiro] isLinkOwner not parsing

Quote Reply
Re: [sangiro] isLinkOwner not parsing In reply to
One thing you might want to check is that the Username (for your user record) is the same case as as LinkOwner for the Link. If you look in admin/Links/SiteHTML.pm, you'll see on around line 52 something like this:
Code:
(defined $Links::USER->{Username} and ($rec->{'LinkOwner'} eq $Links::USER->{Username})) ?
($rec->{'isLinkOwner'} = 1) : ($rec->{'isLinkOwner'} = 0);
And the same thing for detailed pages on line 85.

What that does is checks to see if you're logged in (and therefore $Links::USER will be your user record). Then it checks to see if the LinkOwner is the same as your username. It might be possible that the username was added with a different case (ie. lowercase) than what youre Username is set to. If that's the case you might want to consider changing those lines of code to:
Code:
(defined $Links::USER->{Username} and (lc($rec->{'LinkOwner'}) eq lc($Links::USER->{Username}))) ?
($rec->{'isLinkOwner'} = 1) : ($rec->{'isLinkOwner'} = 0);

This could be one reason why it's not recognizing you as the person who created the link. If I made this post a little too technical, tell me, and I'll try simplify the approach on checking to see if this is the case.



Adrian
Subject Author Views Date
Thread isLinkOwner not parsing sangiro 2945 Jul 4, 2001, 7:38 PM
Thread Re: isLinkOwner not parsing
account deleted 2896 Jul 5, 2001, 2:22 AM
Post Re: isLinkOwner not parsing
sangiro 2868 Jul 6, 2001, 12:32 PM
Thread Re: isLinkOwner not parsing
sangiro 2854 Jul 7, 2001, 2:57 PM
Thread Re: isLinkOwner not parsing
pugdog 2846 Jul 31, 2001, 3:18 PM
Thread Re: [pugdog] isLinkOwner not parsing
sangiro 2796 Oct 30, 2001, 5:46 PM
Post Re: [sangiro] isLinkOwner not parsing
brewt 2810 Oct 30, 2001, 8:11 PM
Post Re: isLinkOwner not parsing
sangiro 2843 Jul 31, 2001, 2:56 PM
Thread Re: [sangiro] isLinkOwner not parsing
katabd 2784 Jul 13, 2003, 5:46 PM
Post Re: [katabd] isLinkOwner not parsing
afinlr 2749 Jul 14, 2003, 5:58 AM