Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: Adding a Resource

Quote Reply
Re: Adding a Resource In reply to
I understand. The graphic/logo mod I made allows a user to edit _all_ their attachments, whether verified or not.

I've made a pseudo hack that allows users to see all their links, pending or not, so that if they want to edit an unverified link, they can.

In general, (I think I posted this before) you just need to change in modify.cgi:

Code:
sub _list_owned_links {
# --------------------------------------------------------
# Display a list of links the user owns.
#
my $link_db = $DB->table('Links');
my $mh = $IN->param('mh') || 25;
my $nh = $IN->param('nh') || 1;
$link_db->select_options ("LIMIT " . (($nh-1)*$mh) . ",$mh");
my $sth = $link_db->select ( { LinkOwner => $USER->{Username}, isValidated => 'Yes' });
change isValidated => 'Yes', to 'No'.

That should work.

Users can then select links that are both pending, and validated.

I also edited the modify_link.html to dosplay a flag:

<%if isValidated eq 'No'%>
<FONT COLOR=RED>Not Validated!</FONT>
<%endif%>

I _think_ that is all I did!

I'll know for sure when the next version of links comes out, and I try to port all my mods and sites. At that point hopefully I'll make the fixes, and be able to release updated, and double checked, code for "generic" installs.

My problem now is my code is so "hacked" I don't know what is release code and what is my mods at this point. The only way I know is when a new release comes out :)

With the "plug-in" system now under my belt, hopefully this will be the last release I get into this problem, since I've more or less figured out how to do most changes via plug-ins, and not hack the code (except one tiny thing, which I think Alex may have updated in the release code.... ).

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Subject Author Views Date
Thread Adding a Resource OnlineMlm 5027 Dec 9, 2000, 11:01 AM
Thread Re: Adding a Resource
Stealth 4880 Dec 9, 2000, 11:38 AM
Thread Re: Adding a Resource
pugdog 4865 Dec 9, 2000, 2:12 PM
Thread Re: Adding a Resource
pugdog 4839 Dec 11, 2000, 1:38 PM
Post Re: Adding a Resource
OnlineMlm 4765 Apr 2, 2001, 10:38 PM
Post Re: Adding a Resource
Alex 4859 Dec 11, 2000, 12:53 PM
Thread Re: Adding a Resource
OnlineMlm 4822 Mar 7, 2001, 7:49 PM
Post Re: Adding a Resource
OnlineMlm 4798 Mar 10, 2001, 6:07 AM
Thread Re: Adding a Resource
OnlineMlm 4749 Apr 7, 2001, 7:24 AM
Post Re: Adding a Resource
Stealth 4714 Apr 7, 2001, 10:43 AM
Post Re: Adding a Resource
pugdog 4720 Apr 7, 2001, 12:44 PM
Thread Re: Adding a Resource
OnlineMlm 4693 May 13, 2001, 8:59 AM
Post Re: Adding a Resource
pugdog 4657 May 13, 2001, 1:44 PM