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)

PET 01-17-2004 07:56 PM

QUESTION : Will posting a new post bump the topic ?

I have the last post...wright ? But it have been for about 1 WEEK. So the topic is down. I post a new post...but this HACK will paste my new post intro the old one wright ? But the topic will remain DOWN or it will be BUMPED ? Coz if he remain down, then this hack is not to GOOD.

Xenon 01-17-2004 08:03 PM

:)
thx, lee, in vb2 it was even less to hack, so simple ;)
i use it since a long time now

@PET: you can decide yourself weather it will bump a thread or not.
also you can define a timespan when it's regarded as a real new post or as a dp (the standart is 3600 seconds)

Weasel 01-21-2004 05:01 AM

Xenon your new version introduces some more table_prefix bugs that cause MySQL errors. The problem is that you have to use the AS clause to create an alias so you can use things like post.whatever in the rest of the query without having to put table_prefix all over the place. Here's an example:

PHP Code:

SELECT postidpagetextpost.userid 
FROM 
" . TABLE_PREFIX . "post AS post 

You only need to do this on the SELECT query.

Xenon 01-21-2004 03:46 PM

some more?
i just forgot to add the AS on one line...

damn thing, i hate that table prefix in vb3, just a new trap to fall into when writing up instructions

achtungbaby 02-13-2004 09:07 PM

Excellent hack, very clean not to mention ridiculously quick to install.

Hoffi 03-05-2004 08:49 AM

Good Job. Will Install it later.

Boofo 03-08-2004 09:32 PM

Is there a way to disable this for Admins?

Xenon 03-09-2004 05:32 PM

you just have to edit the condition:

PHP Code:

        if ($type != 'thread' AND $doublepost $DB_site->query_first("
            SELECT postid, pagetext, post.userid 
            FROM " 
TABLE_PREFIX "post AS post
            LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
            WHERE threadid = 
$threadinfo[threadid]
                AND dateline > " 
. (TIMENOW 3600) . "
                AND visible = 1 AND deletionlog.primaryid IS NULL
            ORDER BY dateline DESC 
            LIMIT 1
        "
) AND $doublepost['userid'] == $bbuserinfo['userid']) 

and change for example into:
PHP Code:

        if ($type != 'thread' AND $bbuserinfo['usergroupid'] != AND $doublepost $DB_site->query_first("
            SELECT postid, pagetext, post.userid 
            FROM " 
TABLE_PREFIX "post AS post
            LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
            WHERE threadid = 
$threadinfo[threadid]
                AND dateline > " 
. (TIMENOW 3600) . "
                AND visible = 1 AND deletionlog.primaryid IS NULL
            ORDER BY dateline DESC 
            LIMIT 1
        "
) AND $doublepost['userid'] == $bbuserinfo['userid']) 


Boofo 03-09-2004 05:49 PM

Aha, thank you very much. I was thinking it was in there somewhere but I wasn't sure how to edit it. ;)

Xenon 03-09-2004 06:14 PM

np, you're welcome as always :)

Wifey 03-15-2004 08:26 PM

Just installed the hack and it didn't work at first, then I went back, respaced, and it's working perfectly! Great hack!

*clicks install*

Eternal2u 03-20-2004 04:04 PM

Very good hack, i h8 doubleposter's, and this is gona make my admins/mod's life ALOT easier..

Aleksey 03-21-2004 02:27 AM

Can you please release one with no bugs O:-)?

Boofo 03-21-2004 04:44 AM

What bugs? It works like it is supposed to for me and most of the others who have installed it, apparently.

DarkSavior 03-21-2004 03:13 PM

Great add-on. I already got tired on my older forum to tell users to use the edit button instead of posting again! Now there is no such problem. :)

Xenon 03-22-2004 06:30 PM

@Hibernated: there shouldn't be any bugs anymore :)

@all: nice to see you like this mod :)

Flashinblue 03-23-2004 03:54 PM

superb hack, works very good, can't be easier to install

msimplay 03-26-2004 05:38 PM

i like this hack but i just realised we have a sports page
and sometimes we need the posts seperate for results in the same thread

Koutaru 03-28-2004 03:46 PM

Quote:

Originally Posted by Xenon
@Hibernated: there shouldn't be any bugs anymore :)

@all: nice to see you like this mod :)

This is really odd, it's not working for me at all. Weird, and the coding seems fine. It worked before with the RC but now that I have Gold, it's not working. Fresh install.

Strange.

Xenon 03-28-2004 04:02 PM

hmm, really strange as there weren't changes in that section afaics.

will have to take a closer look when i finished my tests...

Koutaru 03-28-2004 04:06 PM

Thanks Xenon :)

I'll look back over it to make sure it wasnt a stupid mistake on my part :p

EDIT:
IT WAS a stupid mistake on my part. :tired: Thanks, it's all fixed now ;)

8472 03-28-2004 05:06 PM

as of now i haven't installed the hack yet .. although i plan to do so as soon as the following question is answered.

what happens if there are too many attachments overall ?

for example: post A 3 attachments | post B 4 attachments | overall allowed attachments per post = 5

Xenon 03-28-2004 08:52 PM

AFAIK the attachmenttest are done during the upload within the popup window, so it should not be affected by this hack at all.

but i cannot say for sure, never tested this specific thing :)

PET 03-29-2004 12:01 AM

after how much time the hack don't update the last post ?

For exemple i have a post that is 1 week old. I want to "bump" the topic with a new news, will the hack bump the topic i reply again ?

Xenon 03-29-2004 03:24 PM

Standart is 1 hour, but you can change this if you want.
It's one value in the code to change :)

Chrissicom 04-02-2004 08:30 AM

Quote:

Originally Posted by Xenon
Standart is 1 hour, but you can change this if you want.
It's one value in the code to change :)

I guess setting the TIMENOW value from 3600 to 259200 will make it 3 days then right? I actually want to prevent double posting in any circumstance. Whatfor have we got an edit function :)

Xenon 04-02-2004 09:17 PM

Absolutelly correct :)

if you want to prevent DP at all, just remove that line:
Code:

                                AND dateline > " . (TIMENOW - 3600) . "

TheRayden 04-13-2004 04:41 PM

Excellent hack, this will be very usefull.

Oblivion Knight 04-18-2004 02:50 AM

Thanks Xenon :)
Installed and running with no problems..

I love installing your hacks, so small yet so useful :D

Xenon 04-18-2004 12:20 PM

:)

Thx.
Well, that's my way for coding hacks. i'm a purist and don't need much effekts and such, just the usefull features are really needed :)

007 04-22-2004 06:17 PM

Awesome. Installed again! (I used the VB2 version too)

Xenon 05-30-2004 09:08 PM

nope, not normal, and i don't think my hack is doing this, as it's working since months now without problems.

seems to be a bug with another hack...

Xenon 05-31-2004 01:03 PM

;)

tell me if you find out whats exactly the problem then, so maybe a workaround is possible :)

freehtml 06-04-2004 12:36 AM

Can it be use in like for example I had a Ads Forum and I only allow said new post for every 7 days..will this hack be able to achieve that effect also?

Thanks.

Xenon 06-04-2004 09:39 AM

nope, for that purpose you have to hack another area of vb, where it checks the flood control :)

InsaneContender 06-06-2004 05:09 AM

Nice hack. It would be very nice if you could split the post apart if someone double posted. Such as adding a horizontal rule or such inbetween posts to know what is a new post and such.

Xenon 06-06-2004 12:00 PM

well, you can design the split yourself.
But it is just possible to use codes, whcih a user is able to use as well.

but if you want to add a -------------------------------- or whatever, you can do so :)

chrisvonc 06-06-2004 01:06 PM

Another great addition, thank you. This will definatly help cut down "post count padders".

Agent XY 06-09-2004 03:05 PM

Very great hack !!

*install*

Baptizer 06-23-2004 01:14 PM

Quick Question: I have this installed and it is working great. However, is there anyway I can get it to do the following? I have it set to do the following:
-User cannot double post within a 24 hour window (got this working)
-Posts are not bumped if they double post within a 24 hour window

Is there a way to add an 'edit' comment to the thread that got merged because of a double post? Currently, when a user double posts it does not say ' Last edited by xxx : 21. Jan 2004 at 16:47. Reason: '


All times are GMT. The time now is 12:05 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.01357 seconds
  • Memory Usage 1,802KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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