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)

chrisvonc 06-23-2004 01:33 PM

If I understand you right, post 24 (https://vborg.vbsupport.ru/showpost....5&postcount=24) has a tip that lets you define a comment for double posts. Also note the correction in post #25 as well. :)

Andreas 07-15-2004 09:16 PM

@Xenon
It seems like this hack does provide some kind of "backdoor": It allows the user to add more images to his post then he would normally be allowed to have.

Furthermore, it seems like this adds a query whenever a new reply is posted.
What about adding $threadinfo['lastposter'] == $bbuserinfo['username'] to the condition before $doublepost = ...?

As this evaluates to false if there is no double post (and thus the whole term will be false) it's not necessary to continue evaluating the query, or am I wrong?

Xenon 07-15-2004 11:17 PM

@Kirby: hmm, right, the backdoor is possible, will have to take a look at it...

As for the second part. yes, you can avoid the query in the if clause, by that, but you will still need the query when you update the post later (because of deleting the postindex, updating the pagetext...

Also as we have had some problems sometimes, when the lastposter cache isn't correctly or something like, then the string compare would resolve incorrectly.

I think it doesn't matter that much, but i'll consider it when i have the time to look through all of my hacks soon :)

Xenon 07-20-2004 04:34 PM

Hmm, i was just thinking: Sometimes, when users make doublepost it is, because they just can post a special ammount of images per post.

So, the question is, should i really fix that 'backdoor'?

Oblivion Knight 07-20-2004 05:18 PM

Quote:

Originally Posted by Xenon
Hmm, i was just thinking: Sometimes, when users make doublepost it is, because they just can post a special ammount of images per post.

So, the question is, should i really fix that 'backdoor'?

You raise a valid point, and in my opinion it shouldn't be fixed (or if it is, make it some kind of option if possible).

Boofo 07-20-2004 06:25 PM

Quote:

Originally Posted by Xenon
Hmm, i was just thinking: Sometimes, when users make doublepost it is, because they just can post a special ammount of images per post.

So, the question is, should i really fix that 'backdoor'?

Of course you should fix it. What is the sense of having an image limit if they can get around it like that? ;)

Xenon 07-20-2004 06:34 PM

nice to get two totally different answers ^^

well, i'll think about it ^^

Andreas 07-20-2004 07:28 PM

Well, actually I got a couple of users who explicitly use this got get more images into their posts :(

Xenon 07-20-2004 08:28 PM

Ok, i have uploaded Version 1.4.

It now checks if the new post is valid regarding the settings (max images/ max characters...)
If it is, then it will merge the post, if it's not, then the new post will be a true doublepost.

I did it that way, because the limit will appear when doing an edit on a merged post otherwise.

Also i have removed a bit overhead of the code.

My test worked well, but i consider it as RC, until some of you can confirm they don't have problems (there shouldn't be, but you cannot be too sure ;))

Merjawy 07-20-2004 08:34 PM

Really nice and needed hack thnx Xenon

my question and forgive me if it was mentioned before, what if a user clicks the Quick Reply icon to replay to the first post and clicked it again to replay lets say to the 3rd post in there and clicked again to reply to the 6th reply in there, would this hack merge all 3 posts as you see there seperate replies

Thnx


All times are GMT. The time now is 04:58 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.01361 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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