Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How do I prevent duplicate submits?

Quote Reply
How do I prevent duplicate submits?
I'm still setting the script up and couldn't find any thing on this.

How can I prevent duplicate URLs from being submitted?

Also is that a way to prevent fields from being left blank on the submit form?
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] How do I prevent duplicate submits? In reply to
Give this a go (free);

http://www.ultranerds.com/cgi-bin/details/28.html

Basically, it just checks to see if the domain exists in the DB already; and if it does, then show the user an error message.

Hope that helps.

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] How do I prevent duplicate submits? In reply to
Looks like I will be owing your some money by the time I get this up and working. :)

I'm getting an Internal Server error instead of an error page when a duplicate submission is made.

Also I installed Change Case and get this error. I have debug turned on so maybe this will help with the other problem as well. If I turn off the plugins then everything work.

Danger Will Roberson. There is a problem, danger, danger! GT::Plugins (15889): Error running plugin PRE hook: Plugins::Edit_Case::add_link. Reason: Plugins::Edit_Case::add_link does not exist in Plugins/Edit_Case at /home/cleo/web/cgi-bin/links/cgi/admin/Links/Table/Links.pm line 88.
Stack Trace
======================================
Links (15889): Links::environment called at /home/cleo/web/cgi-bin/links/cgi/admin/Links.pm line 518 with no arguments.
Links (15889): Links::fatal called at GT::Base::error line 381 with arguments
    (GT::Plugins (15889): Error running plugin PRE hook: Plugins::Edit_Case::add_link. Reason: Plugins::Edit_Case::add_link does not exist in Plugins/Edit_Case at /home/cleo/web/cgi-bin/links/cgi/admin/Links/Table/Links.pm line 88.
        ).
Links (15889): GT::Base::error called at GT::Plugins::_load_hook line 277 with arguments
    (GT::Plugins=HASH(0x8303fc8), PLUGINERR, FATAL, PRE, Plugins::Edit_Case::add_link, Plugins::Edit_Case::add_link does not exist in Plugins/Edit_Case).
Links (15889): GT::Plugins::_load_hook called at /home/cleo/web/cgi-bin/links/cgi/admin/GT/Plugins.pm line 98 with arguments
    (GT::Plugins=HASH(0x8303fc8), Plugins::Edit_Case::add_link, PRE).
Links (15889): GT::Plugins::dispatch called at /home/cleo/web/cgi-bin/links/cgi/admin/Links/Table/Links.pm line 88 with arguments
    (GT::Plugins, /home/cleo/web/cgi-bin/links/cgi/admin/Plugins, add_link, CODE(0x84d15ec), HASH(0x84f53c8)).
Links (15889): Links::Table::Links::add called at /home/cleo/web/cgi-bin/links/cgi/admin/Links/User/Add.pm line 244 with arguments
    (Links::Table::Links=HASH(0x84f544c), HASH(0x84f53c8)).
Links (15889): Links::User::Add::add_link called at /home/cleo/web/cgi-bin/links/cgi/admin/GT/Plugins.pm line 112 with arguments
    (HASH(0x84d1448)).
Links (15889): GT::Plugins::dispatch called at /home/cleo/web/cgi-bin/links/cgi/admin/Links/User/Add.pm line 42 with arguments
    (GT::Plugins, /home/cleo/web/cgi-bin/links/cgi/admin/Plugins, user_add_link, CODE(0x82f1508), HASH(0x84d1448)).
Links (15889): Links::User::Add::handle called at /home/cleo/web/cgi-bin/links/cgi/admin/GT/Plugins.pm line 112 with no arguments.
Links (15889): GT::Plugins::dispatch called at /home/cleo/web/cgi-bin/links/cgi/add.cgi line 25 with arguments
    (GT::Plugins, /home/cleo/web/cgi-bin/links/cgi/admin/Plugins, handle_add, CODE(0x82d0c54)).


System Information
======================================
Perl Version: 5.008003
Links SQL Version: 2.2.0
DBI.pm Version: 1.40
Running under mod_perl: No
Running under SpeedyCGI: No
@INC =
/home/cleo/web/cgi-bin/links/cgi/admin
/usr/lib/perl5/5.8.3/i686-linux
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i686-linux
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl
.

CGI INPUT
======================================
CatLinks.CategoryID => 9
Contact_Email => cleo@cleos-porn-links.com
Contact_Name => Cleo
Description => hsthdh jgj
Title => dgshfvdrtVVVVV
Type => Free
URL => http://cleos-porn-links.com/fffffffhgg
add => I've read Cleo's Golden Rules, Click Here For Review


CGI Cookies
======================================
editor_cols => 80
editor_rows => 50
ept_cookie => %F9%0E%1E%96%8B%9A%DD%1A%23%19D%13%06OV%F9.R%29PJ
s => 6c4dfa04c70b1b64047d3c3574a9f932
ttt_cookie => 1096051875|1


ENVIRONMENT
======================================
CONTENT_LENGTH => 249
CONTENT_TYPE => application/x-www-form-urlencoded
DOCUMENT_ROOT => /home/cleo/web
GATEWAY_INTERFACE => CGI/1.1
GT_TMPDIR => /home/cleo/web/cgi-bin/links/cgi/admin/tmp
HTTP_ACCEPT => */*
HTTP_ACCEPT_ENCODING => gzip, deflate;q=1.0, identity;q=0.5, *;q=0
HTTP_ACCEPT_LANGUAGE => en, ja;q=0.50
HTTP_CONNECTION => close
HTTP_COOKIE => editor_cols=80; editor_rows=50; ept_cookie=%25F9%250E%251E%2596%258B%259A%25DD%251A%2523%2519D%2513%2506OV%25F9.R%2529PJ; s=6c4dfa04c70b1b64047d3c3574a9f932; ttt_cookie=1096051875%7C1
HTTP_HOST => www.cleos-porn-links.com
HTTP_REFERER => http://www.cleos-porn-links.com/cgi-bin/links/cgi/add.cgi
HTTP_USER_AGENT => Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5 (KHTML, like Gecko) Safari/125.9
PATH => /bin:/usr/bin:/usr/local/bin:/sci/bin:/sbin:/usr/sbin:/usr/local/sbin:/sci/sbin
QUERY_STRING =>
REMOTE_ADDR => 66.176.192.233
REMOTE_HOST => c-66-176-192-233.se.client2.attbi.com
REMOTE_PORT => 4416
REQUEST_METHOD => POST
REQUEST_URI => /cgi-bin/links/cgi/add.cgi
SCRIPT_FILENAME => /home/cleo/web/cgi-bin/links/cgi/add.cgi
SCRIPT_NAME => /cgi-bin/links/cgi/add.cgi
SERVER_ADDR => 209.215.97.231
SERVER_ADMIN => support@simplecom.net
SERVER_NAME => cleos-porn-links.com
SERVER_PORT => 80
SERVER_PROTOCOL => HTTP/1.1
SERVER_SIGNATURE => Apache/1.3.31 Server at cleos-porn-links.com Port 80

SERVER_SOFTWARE => Apache/1.3.31 (Unix) PHP/4.3.8
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] How do I prevent duplicate submits? In reply to
Mmm ... if you could PM/email over your LinksSQL login details (to admin.cgi), I'll take a look for you. Probably something simple :)

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: [Cleo_] How do I prevent duplicate submits? In reply to
Quote:
Error running plugin PRE hook: Plugins::Edit_Case::add_link. Reason: Plugins::Edit_Case::add_link
Which version of Edit_Case plugin do you have installed?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How do I prevent duplicate submits? In reply to
Running version 2.2.0 of Links SQL

These are the plugins that I have installed so far.
Build_Random 1
Data_Import 1.4
Duplicate_Check 1
Edit_Case 1.2
Error_Jump 1
Filter_Words 1
QuickValidate 1.1

I'm actually getting errors with a few of them. Not sure if I have something setup wrong or if it is something else.
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] How do I prevent duplicate submits? In reply to
Quote:
Edit_Case v1.2
That's the problem.

Edit_Case v1.2 had several bugs. With permission of Andy, I fixed it, and improved the plugin features.
Since Edit_Case v1.2, I released Edit_Case v1.5 and Edit_Case v1.8. Latest one is 1.8 beta4.
Download it from Admin/Plugins/Plugin Download.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] How do I prevent duplicate submits? In reply to
In Reply To:
Quote:
Error running plugin PRE hook: Plugins::Edit_Case::add_link. Reason: Plugins::Edit_Case::add_link
Which version of Edit_Case plugin do you have installed?

Its all fixed now :)

Just updated Edit_Case to 1.8beta (you're version) ... as it was only running on 1.2 (which had a bug in 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!