vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=59916)

Xenon 02-15-2005 05:54 PM

please take a look in the manual or do a search, everything is described very well on the board :)

utw-Mephisto 02-18-2005 04:00 AM

I searched now a while, but I could not find the answer to
Quote:

why do i have to put it in debug mode?
Or am i just a bit blind :( ?

utw-Mephisto 02-18-2005 04:02 AM

:laugh: Doublepost test

edit
:lick: :smoke:

MAK-upl 02-18-2005 02:44 PM

clicks install

MP3 02-20-2005 04:31 AM

Thanks alot :)

SuperGLS 02-20-2005 08:44 PM

I earlier updated to vB 3.0.7 and just tried to redo this hack, now I'm getting any error.

Anyone else?

"Parse error: parse error, unexpected $ in /includes/functions_newpost.php on line 1327"

utw-Mephisto 02-20-2005 08:48 PM

I am using the hack also now on my patched board. I just patched with misc.php ..

If you ever installed hacks on your board, ALWAYS test it first on a testboard and never on a life one ...

utw-Mephisto 02-20-2005 08:49 PM

I know, it does not really help you here

SuperGLS 02-20-2005 09:09 PM

Works now, I just messed up the coding.

Imperial Fritz 02-21-2005 05:57 PM

Could anybody explain how to install it on a 3.0.7?

utw-Mephisto 02-21-2005 06:30 PM

Sounds naiv, but did you try it like on 3.0.6 ?

Imperial Fritz 02-21-2005 07:33 PM

Apologies for stupidity, I had the older version :)

Yet it doesn't work for me, the code is there but no matter what posts aren't merged.

Curzon564 02-22-2005 10:25 PM

I found this hack and installed it immediately. It's great, finally no more users posting doubleposts/tripleposts or even more in a row.

Yet I'm having a little(?) problem.
If the post is made by the post reply button everything works fine but if post is made by quick reply (Standard Editor) page is loading endless and the "new post" doesn't appear.

Could this perhaps be because of vB 3.0.7?
As far as I remember there were some small changes in functions_newpost.php

Xenon 02-23-2005 03:16 PM

hmm, i have not looked at vb3.0.7 as for time reasons, but that would be wierd, as there shouldn't be a difference between QR posts and normal reply posts, both are calling build_new_post and thats where the changes are done.

When i have more time i'll look at it, but if you have further infos please tell me :)

Oblivion Knight 02-23-2005 04:13 PM

Working fine for me on 3.0.7.. ;)

Curzon564 02-23-2005 08:58 PM

Ok, tested today a little bit and found the problem

It's Opera (7.54 & JRE 1.5). IE and Firefox are working fine.
Only Opera doesn't load the new page if poste is made by quick reply.

Xenon 02-24-2005 05:11 PM

very wierd...

Mark.B 02-24-2005 05:35 PM

I am going to be controvesial. This hack is great IF you have a pre-existing problem with people spamming their post counts up or bumping threads all the time.

If you DON'T have such a problem then don't install it unless/until you do.

Quite a few people get quite annoyed if they have a legitimate reason for posting two seperate posts and many find it frustrating.

Xenon 02-25-2005 04:21 PM

well, that's the thing with every hack, just install it if you need it.

so why posting anything which should be wellknown to every admin? :)

Blootix 02-26-2005 07:22 AM

I don't even think Quick Reply button works in Opera (Unless you've REQUIRED the user to click the Quick Reply button)... I'd stick with Firefox. But yes, it is true that it doesn't work. Most people don't use Opera anyway... so I wouldn't worry about it.

Curzon564 02-26-2005 05:18 PM

Quick Reply without the hack works fine in Opera, posting this post also with Quick Reply.

I'm preferring Opera (don't like IE & FF very much), but you're right. Most users don't use Opera so this bug (most likely an Opera bug) perhaps won't ever be detected by any user.

The hack really rocks so far. It prevented already a dozen Doubleposts.

The Keeper 03-08-2005 09:37 AM

I've installed it on 3.0.7 and I seem to be getting the strangest of errors whereby posts are randomly changing. That is, person A makes a post, then a post from Person B in another thread replaces the text only of that post. Might be an unrelated fudge by MySQL but just thought I'd post in case.

Xenon 03-08-2005 04:09 PM

sounds really wierd.

kcadd 03-12-2005 10:13 AM

/me installs this hack

thanks xenon!

bold 03-15-2005 07:30 AM

thanks

The Keeper 03-16-2005 01:29 PM

Yeah it's still happening. Is anyone else getting this? 3.0.7 and so far this is the only hack installed. Is it possible that the hack is making amendments to the post table that aren't supported in 3.0.7?

Imperial Fritz 03-19-2005 01:14 AM

I'd like to ask how could this be enabled for everybody, but disabled for just a few people who actually have a reason to post separate posts?

EDIT: ok I read a bit and did it myself

Brandon Sheley 03-29-2005 09:18 AM

very nice hack, i've seen it at sites and was looking for it,, Thank you
-LM

CrazyLady 04-02-2005 03:38 PM

1) is this hack Version 3.0.7 friendly?
2) if in the second post, the member exceeds images allowed, what happens? (answer found)
3) are admins and mods excluded from this?

Xenon 04-03-2005 03:27 PM

1) yes, as you can see on vb.org ;)
2) ;)
3) nope, but in this thread you can find the instructions to exclude them :)

CrazyLady 04-03-2005 03:45 PM

Quote:

Originally Posted by Xenon
3) nope, but in this thread you can find the instructions to exclude them :)

I read the entire thread... those instructions were for an earlier version I believe.. I can't find the code to replace?

JohnBee 04-14-2005 11:05 AM

I saw a similar hack on another forum software and when the user would add
additional text to a post...

JohnBee 04-14-2005 11:06 AM

*user posted 2 minutes later

It would put something like that between them.
Is it possible to do that with this hack also?

Xenon 04-14-2005 07:16 PM

post seperator can be whatever you want it to be, that's why i added that one into the option array :)

JohnBee 04-14-2005 09:19 PM

Yes I saw that, but im stuck on the time display thingy :P

I'm not much of a code so I guess I'm asking what code I would stick
there to produce that :)

If you could tell me that I would be one happy camper :D
I just read that getting the times in there would require much modification
I have a phpbb hack that does this and there code is HUGE in comparisson
and many table queries where logs /records are created, obviously to
manage or calculate times bewteen merges.

anyways, if someone could show me how to get the users name
into the line I would be happy.

ex: *JohnBee has added shortly after...

Marco van Herwaarden 04-15-2005 05:49 AM

In your includes/functions_newpost.php, find the following:

PHP Code:

            // we are here, so we may have a doublepost -> do more exact checkings
            
$doublepost $DB_site->query_first("
                SELECT postid, pagetext, post.title, post.userid, post.attach 

and replace by:
PHP Code:

            // we are here, so we may have a doublepost -> do more exact checkings
            
$doublepost $DB_site->query_first("
                SELECT postid, pagetext, post.title, post.userid, post.attach, post.dateline AS dateline 

Then find:
PHP Code:

                $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . $post['message']; 

and replace by:
PHP Code:

                $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " . ((TIMENOW $doublepost[dateline]) / 60) . " minutes later:\n" $post['message']; 

I don't have this hack installed and i didn't test the above example. So test this first on a testboard.

JohnBee 04-15-2005 11:03 AM

WOW!

Dude it works!:thumbsup:
I needs a little formating but WOW! this is exactly like the phpBB hack except its
1000 lines shorter LMAO!

One thing that I noticed is it posts a highly accurate time stamp :)
like *User posted 1.222343424 mins later.

it doesnt do it all the time but quite often.

WHat kind of text formating can I apply to this, I didn't t see any html in the
newpost.php anywheres so im assuming it uses something else, I noticed the
/n is a cr equivalent or something, so I will research it, I want to make it
smaller and dark blue...

once again thank you for your great support everyone ;)

Marco van Herwaarden 04-15-2005 11:27 AM

Change:
PHP Code:

((TIMENOW $doublepost[dateline]) / 60

To:
PHP Code:

intval((TIMENOW $doublepost[dateline]) / 60


JohnBee 04-15-2005 12:00 PM

Thank you MarcoH64

The fixed the .2122223332 problem, it seems of of round it off to the minute.
is there a way to round it off to the min.second ?

ex: *User has posted 1 minutes 42 seconds later

or *User has posted 1.23 minutes later

either or would work nicely :)

Marco van Herwaarden 04-15-2005 12:39 PM

Ok, change that line to:
PHP Code:

$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] has posted " intval((TIMENOW $doublepost[dateline]) / 60) . " minutes " intval((TIMENOW $doublepost[dateline]) % 60). " seconds later:\n" $post['message']; 

Or:
PHP Code:

$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " round(((TIMENOW $doublepost[dateline]) / 60), 2) . " minutes later:\n" $post['message']; 



All times are GMT. The time now is 01:37 PM.

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.01434 seconds
  • Memory Usage 1,831KB
  • 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
  • (8)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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