vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=40145)

Opie 05-01-2003 02:51 AM

Thanks a lot, it worked.

Xenon 05-01-2003 09:20 AM

Quote:

Today at 05:45 DigitalDesktops said this in Post #160
use this code instead, it seems VB took out in_array :p lol:

can you proove that?
in_array is clearly visible in my post where the code is.

Boofo 05-01-2003 11:02 AM

It's there if you quote it but I don't see it in post 146 itself. Am I missing it, too? ;)

Xenon 05-01-2003 03:32 PM

it's also clearly visible in post 146!

Boofo 05-01-2003 03:39 PM

This is really weird then because this is what I see in Post # 146

PHP Code:

if($threadinfo['forumid'], array(x,y,z)) or $lastpost['userid'] != $bbuserinfo['userid'] OR (time() - $lastpost['dateline']) > 3600 OR ($attachmentid and !$foruminfo['moderateattach'])) { 


Xenon 05-01-2003 03:41 PM

hmm, i think i know what's the problem..

the highlight function names seems to work incorrectly here..

you should disable that option in your usercp.

i'll look into the code, but i don't find anything right now...

Boofo 05-01-2003 03:48 PM

I've noticed that happening in a few other places here lately. Just thought I would let you know in case it comes up again. ;)

Xenon 05-01-2003 03:55 PM

hmm wierd...

it should work now but i don't have changed something as far as i know???
i just moved the code from bbcodeparse2 into a own function and it showed up. *gg*

Boofo 05-01-2003 04:07 PM

Well, it seems to work now. That will fix a few things here as far as code goes. ;)

Maybe that's why the DISABLE tag hasn't been working very well? ;)

Xenon 05-01-2003 04:11 PM

hmm, the disable tag is parsed on another part....

hmm, no idea, at least it worx now ;)

btw. you haven't clicked on install yet :p

Boofo 05-01-2003 04:19 PM

I don't have this hack installed on 2.2.9 right now. I un-installed it when I couldn't get the time and date to show for the double post and haven't re-installed it yet. I clicked the install button just now, anyway, though. ;)

I know we went through this when I had 2.2.5 up and running, but I don't remember how we did it. I want to add an option in the Admin CP to turn it off if I need to do some testing on the site and be able to turn it back on again. maybe even have it be able to be disabled for Admins. Any ideas? ;)

Xenon 05-01-2003 04:49 PM

hmm, if we already worked it out, maybe you can find it again in the thread ;)

Boofo 05-01-2003 04:51 PM

Any way to get the date (if different from the original date) and time of each double post?

Xenon 05-01-2003 04:56 PM

not without changing the table structure...

Merlin3649 05-13-2003 04:04 AM

everything seems to be working without a hitch, just wanted to pitch in my 2 cents worth of affirmation :P

Merlin3649 05-13-2003 04:33 AM

oh, just for everyone's edification, if you run into a 1064 mysql error number after doing the hack, make sure you didn't remove the line

$postid=$DB_site->insert_id();

that's at the very end of the text you're told to replace in the .txt file. I did that by accident and it caused errors until I realized my mistake. The line in question is directly one line after the end of the php-to-be-replaced, so just don't highlight too far :P

Hobbes 06-22-2003 01:54 AM

Ok....

I'm not sure where to post this....buuutt...I have a dilemma!

Alright, I've installed this hack double post prevention and the remove redirects hack...

but here's my problem!!

Let's say I post on page 3....once I submit, I am redirected back to page 1....

If I go back to page 3 (after posting) and double post, I am redirected back to page 3.

this has become quite a nuisance....having to go back...

so i'm wondering...is this the remove redirects

or

the double post prevention thats causin this ackward weird silly thing

!!!????

Anyhelp would be greatly appreciated :)

Xenon 06-22-2003 10:15 AM

neither nor...

it's the normal procedure to be redirected to the posted post.
if it's not like that on your board, you've hacked it, and have to apply the same hack to the prevent doublepost hack :)

Kriek 07-05-2003 09:35 PM

Decided to alter 3600 to 86400 * 30 ;)

24 hours x 60 minutes per hour x 60 seconds per minute yield 86,400 seconds in a day.

86,400 seconds in a day x 30 yield 30-day timeout.

Naturally you could write 2592000 as well.

[high]* Kriek spanks install[/high]

Xenon 07-06-2003 05:36 PM

not bad, doubleposting timeout for 30 days ^^

Sam FT 07-06-2003 05:47 PM

Hmmm may have to try this one out.

tmapm 07-22-2003 05:25 PM

I have [AddOn] Useful Additions For Quickreply (and normal reply page) -- https://vborg.vbsupport.ru/showthrea...checkbox+reply installed. My problem is when the double posting is prevented and merges the posts, it doesn't allow for the additions (except sticky) included in the Useful Additions For Quickreply to update. I was wondering if someone could take a look at the Useful Addition for Quickreply hack and help me out by rewriting / adding some queries in the Double Posting Hack. I've looked through the files and I haven't been able to figure it out. Any help is appreciated.

RandyP3 11-15-2003 01:50 AM

Hmm, this doesn't work on 2.3.3... I can't find the code needed to be replaced ;) Maybe you could work something out?

Rampag33 11-15-2003 02:26 AM

Great Hacc
Most likely my absolute favorite.

Xenon 11-16-2003 04:24 PM

@tsboard: sorry, i don't have any vb2 boards anymore, so i cannot update my hacks.

normally the changes between these version are just marginal, so, i'm sure, you could find the line slightly changed in 233 as well :)

VirtualHogwarts 11-29-2003 04:28 PM

/me click's install!

Wish it had Edit: then message but hey it's ok (IF SOEONE KNOWS HOW TO DO THIS PLEASE PM ME!)

- VH

btw this works fine on vB 2.3.3 the stuff is there just as he had it in the install file maybe u edited it urself sorry.

Xenon 11-29-2003 10:24 PM

VH, if you read the thread completly i'm sure you'll find the answer about Edit:, i'm quite sure i've posted something like that already :)

if not, just add something to the \n\n string :)

DuffMan 12-13-2003 10:19 PM

Great hack, I've been looking for something like this for ages! Incredibly simple to install and works flawlessly.

Silverstangs 12-20-2003 07:24 PM

Nice very nice, worked perfectly well on vb2.3.3 fully tested out and no issues.

Scott
Clicks install!

Bambi 04-11-2004 12:13 AM

We have the hack in the original post installed on our board (version 2.2.9). Anybody know what's going to happen with it when we upgrade to vb gold? Will it still be in place? Should it be removed before we upgrade? I didn't install it, the person who did is awol, and I really don't know much about php or hacks.

Xenon 04-11-2004 02:55 PM

when you upgrade to vb3 gold every vb2 hack will be useless and won't work anymore.

this special hack has been released by me for vb3 as well :)

Bambi 04-11-2004 03:38 PM

Thanks for the info! :)

bozzy 04-13-2004 10:35 PM

This hack does not work for vb3.0.0 yet. When will it be upgraded? Can somebody post an attachment of the corrected hack?

Thanks

Xenon 04-14-2004 07:53 PM

you may better install the vb3 version which is released since a long time now, instead of lookin into the supportthread of vb2's version ;)

bozzy 04-14-2004 09:12 PM

I couldn't find the thread for 3.0 version, this is the only one that came up in the search.

Xenon 04-14-2004 09:30 PM

just look into my profile, it's there :)


All times are GMT. The time now is 05:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01521 seconds
  • Memory Usage 1,783KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete