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:
# --------------------------------------------------------
# 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
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' });
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