Previous Thread
Next Thread
Print Thread
Rate Thread
#133501 04/13/2001 8:49 AM
Joined: Nov 2000
Posts: 37
M
Magnum Offline OP
Member
OP Offline
Member
M
Joined: Nov 2000
Posts: 37
Here is a quick method of stopping those double posts, that always seem to happen.

Tested on v6.01 to v6.04
edited to use public_common.pl, thanks to freakscene for reminding me smile

################
# In public_common.pl
#
# find:

return null;
}

//-->


#####
# and add immediately below:




########################
# in
# public_edit_post.pl
# public_new_topic_form.pl
# public_new_reply_form.pl
#
# find:

METHOD="POST" ACTION="$vars_config{CGIURL}/ultimatebb.cgi"

#####
# add this into that section

onSubmit="submitonce(this)"

#####
# so it looks like this

METHOD="POST" onSubmit="submitonce(this)" ACTION="$vars_config{CGIURL}/ultimatebb.cgi"

#######################################

save and upload, flush the cache and no more double posts, replies & edits

Magnum wink

Sponsored Links
#133502 04/13/2001 9:01 AM
Joined: Aug 2000
Posts: 594
F
Member
Offline
Member
F
Joined: Aug 2000
Posts: 594
Quote
quote:
Hey Magnum, thanks for updating this smile

You can put this javascript in the header section of public_common.pl and you will not have to touch the styles which could be a problem if you were to forget to add that when creating a new style.

Nice job


jeremiah
#133503 04/13/2001 9:29 AM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
Sweet,I will check this out right away... but what do u mean by Flush the Cache?...sorry I'm a newbie...


I'm am the EVER POWERFUL GOHAN!
#133504 04/13/2001 10:39 AM
Joined: Aug 2000
Posts: 594
F
Member
Offline
Member
F
Joined: Aug 2000
Posts: 594
Quote
quote:
In your control panel, there is an option under Maintenance to Clear Cache. This is what he means. You may want to get a little more familure with the ubb before you begin hacking it, at least the basic functionality. It will save you headaches down the road...


jeremiah
#133505 04/13/2001 10:53 AM
Joined: Nov 2000
Posts: 37
M
Magnum Offline OP
Member
OP Offline
Member
M
Joined: Nov 2000
Posts: 37
Thanks for that freakscene, must be the holiday period, I totally forgot the common file smile

Magnum wink

Sponsored Links
#133506 04/13/2001 12:33 PM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
well if he said Clear Cache I would understand it!(I'm not a complete Newbie) I CAN FIGURE out how to add a simple hack! mad


I'm am the EVER POWERFUL GOHAN!
#133507 04/13/2001 12:38 PM
Joined: Aug 2000
Posts: 594
F
Member
Offline
Member
F
Joined: Aug 2000
Posts: 594
Hey, don't get upset. I did not mean that in a bad way, just covering all bases (you would be suprised).

If you took it the wrong way I apoligize. wink It was meant to be helpful, not an insult.


jeremiah
#133508 04/13/2001 12:49 PM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
Ok...I'm sorry too... smile I do need to catch up on my hacking terms! laugh


I'm am the EVER POWERFUL GOHAN!
#133509 04/13/2001 1:26 PM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
oh yeah one more thing...I dun know if you can add this but....listen...

So when a person clicks submit or whatever it gets like greyed out so they can not click again to double post...BUT...if they click BACK on their browser and click it again.. it will still double post...

Is there any way to fix that? confused

EDIT: Whoops...forgot the most important thing of all! GREAT HACK!
smile smile


I'm am the EVER POWERFUL GOHAN!
#133510 04/13/2001 1:43 PM
Joined: Nov 2000
Posts: 37
M
Magnum Offline OP
Member
OP Offline
Member
M
Joined: Nov 2000
Posts: 37
Hi & thanks,
I don't think there is a way to cure bloody mindedness of ppl - if there is a way to cock it up they will find it LOL smile
but it would be extremely difficult to stop that, as using back - returns you to the initial state before clicking, unless you disable the back button first.

I'll remember to use clear cache next time as well smile smile

Magnum wink

Sponsored Links
#133511 04/13/2001 2:04 PM
Joined: Mar 2001
Posts: 24
B
Junior Member
Offline
Junior Member
B
Joined: Mar 2001
Posts: 24
Demo?

#133512 04/14/2001 3:10 AM
Joined: Dec 2000
Posts: 595
C
Member
Offline
Member
C
Joined: Dec 2000
Posts: 595
thanks

#133513 04/14/2001 10:40 PM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
..As they say...for a simple hack..use simple terms... wink


I'm am the EVER POWERFUL GOHAN!
#133514 04/18/2001 4:36 PM
Joined: Jan 2001
Posts: 57
T
Member
Offline
Member
T
Joined: Jan 2001
Posts: 57
wink Hey this hack doesn't work with the Preview Post hack..

can you please make this hack work with it?

You just have to definge "prev"

I would myself.. I just don't know how!


I'm am the EVER POWERFUL GOHAN!
#133515 10/31/2001 10:43 PM
Joined: Nov 2000
Posts: 166
D
Member
Offline
Member
D
Joined: Nov 2000
Posts: 166
can somebody update this for 6.1?

i just tryed installing it like it was & it worked, BUT if you have "Preview Post" installed, then everytime you press preview, it WONT preview, it just posts it.

Ima try to figure out why, but im not very good at things like this. frown


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,569
Posts293,914
Members13,847
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,829
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20220917)