Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Clint] Auto Submit Links

Quote Reply
Re: [Clint] Auto Submit Links In reply to
Hi,

Ok, well the simplest way would be to make a copy of /admin/Links/User/Add.pm, and call it Add2.pm. Then, find this bit of code:

Code:
if ($CFG->{user_required} and !$USER) {
print $IN->redirect(Links::redirect_login_url('add'));
return;
}

..and comment it out, like so:

Code:
# if ($CFG->{user_required} and !$USER) {
# print $IN->redirect(Links::redirect_login_url('add'));
# return;
# }

Then, copy /cgi-bin/add.cgi to add_hidden.cgi, and change:

Code:
if ($PLG->dispatch('check_request', \&Links::check_request)) {
$PLG->dispatch('handle_add', \&Links::User::Add::handle);
}


..to:

Code:
if ($PLG->dispatch('check_request', \&Links::check_request)) {
$PLG->dispatch('handle_add', \&Links::User::Add2::handle);
}

(then CHMOD the new .cgi script to 755 Smile)

That should then let someone add a link without actually being logged in / signed up.

Hope that helps Angelic

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!
Subject Author Views Date
Thread Auto Submit Links Clint 3738 Apr 21, 2007, 12:23 AM
Thread Re: [Clint] Auto Submit Links
Andy 3599 Apr 21, 2007, 6:59 AM
Thread Re: [Andy] Auto Submit Links
Clint 3617 Apr 21, 2007, 7:42 AM
Thread Re: [Clint] Auto Submit Links
Andy 3599 Apr 23, 2007, 1:40 AM
Thread Re: [Andy] Auto Submit Links
Clint 3579 Apr 27, 2007, 12:16 AM
Post Re: [Clint] Auto Submit Links
Andy 3549 Apr 27, 2007, 1:13 AM