|
Joined: Nov 2000
Posts: 37
Member
|
Member
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  ################ # 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 
|
|
|
|
Joined: Aug 2000
Posts: 594
Member
|
Member
Joined: Aug 2000
Posts: 594 |
Hey Magnum, thanks for updating this  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
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
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!
|
|
|
|
Joined: Aug 2000
Posts: 594
Member
|
Member
Joined: Aug 2000
Posts: 594 |
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
|
|
|
|
Joined: Nov 2000
Posts: 37
Member
|
Member
Joined: Nov 2000
Posts: 37 |
Thanks for that freakscene, must be the holiday period, I totally forgot the common file  Magnum 
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
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! 
I'm am the EVER POWERFUL GOHAN!
|
|
|
|
Joined: Aug 2000
Posts: 594
Member
|
Member
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.  It was meant to be helpful, not an insult.
jeremiah
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
Joined: Jan 2001
Posts: 57 |
Ok...I'm sorry too...  I do need to catch up on my hacking terms! 
I'm am the EVER POWERFUL GOHAN!
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
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?  EDIT: Whoops...forgot the most important thing of all! GREAT HACK! 
I'm am the EVER POWERFUL GOHAN!
|
|
|
|
Joined: Nov 2000
Posts: 37
Member
|
Member
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  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  Magnum 
|
|
|
|
Joined: Mar 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 24 |
|
|
|
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
Joined: Jan 2001
Posts: 57 |
..As they say...for a simple hack..use simple terms... 
I'm am the EVER POWERFUL GOHAN!
|
|
|
|
Joined: Jan 2001
Posts: 57
Member
|
Member
Joined: Jan 2001
Posts: 57 |
 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!
|
|
|
|
Joined: Nov 2000
Posts: 166
Member
|
Member
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. 
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|