Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Auto Submit Links

Quote Reply
Auto Submit Links
Greetings!

I've had some inquiries from some Submission Services who would like the ability to auto-submit a large number of links to my database.

Does anyone have any ideas what would be the best method to achieve this? Someone did suggest Submit Wolf - but I don't know whether that can be used with sites that require prior registration/login.

Thanks,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Auto Submit Links In reply to
Hi,

I'm a little confused as to what you are trying to do - are you looking at making it possible for an external "link submission" script to add links to your directory, or a way to submit lots of links to other engines?

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!
Quote Reply
Re: [Andy] Auto Submit Links In reply to
Hi Andy:

An external script/program to be able to add links to my directory. In particular, some submission sites have asked for this.

Thanks,

Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
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!
Quote Reply
Re: [Andy] Auto Submit Links In reply to
Thanks Andy,

I imagine I could then either send them a 'form' that they could use to complete - with fields etc OR they could perhaps modify submitWolf or similar software.

All the best,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Auto Submit Links In reply to
Hi,

Yeah, they could either complete the form via a browser, or submit it via software.

A couple of thing's I forgot to mention.

1) In Add2.pm, you need to search and replace;

Code:
Links::SiteHTML::display('add'

...and then replace with:

Code:
Links::SiteHTML::display('add2'

(should be 2 instances).

2) Then, in add.html - change the <form ..> action from:

Code:
method="<%config.db_cgi_url%>/add.cgi"

..to:

Code:
method="<%config.db_cgi_url%>/add2.cgi"

That should do it =)

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!