vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602)

Smiry Kin's 05-10-2006 03:55 AM

oh also edit this info where?
Quote:

Originally Posted by Paul M
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;

1. The post dateline is not updated on a merge, so it doesn't get seen as unread.

2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).


So, since I wanted this on our forum I have fixed both locally - this is what I have done.


1. To fix the timestamp ;

Find ;

PHP Code:

// set info 

Add below it ;

PHP Code:

$dataman2->set('dateline'TIMENOW); 

2. To fix the ajax issue, use this nasty hack ;

Find ;

PHP Code:

    if ($isdoublepost)
    {
        
$id $doublepost['postid'];
        
$dataman->save();
        
        
//now add edited by
        
if ($dp_settings['editedbymsg'] != '')
        {
            
$vbulletin->db->query_write("
                REPLACE INTO " 
TABLE_PREFIX "editlog (postid, userid, username, dateline, reason)
                VALUES (
$id, " $vbulletin->userinfo['userid'] . ", '" addslashes($vbulletin->userinfo['username']) . "', " TIMENOW ", '" addslashes($dp_settings['editedbymsg']) . "')
            "
);
        }
    } 

Replace with ;

PHP Code:

    if ($isdoublepost)
    {
        
// Ugly hack added by Paul M to fix ajax merge //
        
if (!$vbulletin->GPC['ajax'])
        {
            
$id $doublepost['postid'];
            
$dataman->save();
        
            if (
$dp_settings['editedbymsg'] != '')
            {
                
$vbulletin->db->query_write("
                REPLACE INTO " 
TABLE_PREFIX "editlog (postid, userid, username, dateline, reason)
                VALUES (
$id, " $vbulletin->userinfo['userid'] . ", '" addslashes($vbulletin->userinfo['username']) . "', " TIMENOW ", '" addslashes($dp_settings['editedbymsg']) . "')
                "
);
            }
        }
        
$vbulletin->url 'showthread.php?' $vbulletin->session->vars['sessionurl'] . "p=$post[postid]#post$post[postid]";
        eval(
print_standard_redirect('redirect_postthanks'truefalse));
    } 

Seems to work okay for me, feel free to try it. :)


Paul M 05-10-2006 05:05 AM

That fix was for the file edit version, Xenon dropped that in favour of the plugin version now available. There is no ajax fix for the plugin version (which is why I don't use it, I've stayed with the file edit version :))

Paul M 05-10-2006 07:18 AM

Quote:

Originally Posted by Smiry Kin's
( just checked cableforum.co.uk) and theres comes up ass

---------- Post added at 05:32 ---------- Previous post was at 05:32 ----------

thats good..? lol

That's because I custom modified the original file edit version specially for us. It's not available anywhere.

Boofo 05-10-2006 09:10 AM

Quote:

Originally Posted by Paul M
That's because I custom modified the original file edit version specially for us. It's not available anywhere.

But they both show the same time, Paul. ;)

Smiry Kin's 05-10-2006 11:46 AM

Quote:

Originally Posted by Paul M
That's because I custom modified the original file edit version specially for us. It's not available anywhere.

https://vborg.vbsupport.ru/showpost....&postcount=479

can you help me with this??

also you still lost me.. where do i edit it?? what do i edit? so many codes and stuff in this thread, i've looked through it all.. how do i get the refresh to work thn??:S abit usfull plugin if it doesnt work?

Smiry Kin's 05-11-2006 11:38 AM

Some one help?? tried adding $post[posttime] into the section for seperator, but nothing.. :(
Quote:

Originally Posted by Smiry Kin's
https://vborg.vbsupport.ru/showpost....&postcount=479

can you help me with this??

also you still lost me.. where do i edit it?? what do i edit? so many codes and stuff in this thread, i've looked through it all.. how do i get the refresh to work thn??:S abit usfull plugin if it doesnt work?


Nathan2006 05-13-2006 11:01 PM

Quote:

Originally Posted by Smiry Kin's
( just checked cableforum.co.uk) and theres comes up ass

---------- Post added at 05:32 ---------- Previous post was at 05:32 ----------

thats good..? lol

Yeah I would love to see that added :D

mano1.com 05-15-2006 04:57 AM

installed!

BUT it would be great if you edited the description to include the known issues and bugs

thanks!

Xenon 05-15-2006 08:10 PM

Well, there aren't any known bugs right now, just not all features from vb3.0 are imported...

Paul M 05-15-2006 08:43 PM

Quote:

Originally Posted by Boofo
But they both show the same time, Paul. ;)

That's because whoever it was posted twice inside one minute - seconds are not included. :)

Boofo 05-15-2006 09:18 PM

Quote:

Originally Posted by Paul M
That's because whoever it was posted twice inside one minute - seconds are not included. :)

I noticed that a short time after I wrote the post. Sorry for the mistake. ;)

mod2000 05-16-2006 05:49 PM

it doesn't work with the direct replay field at the bottom of every page. i can add double posts but if i use after that the normal answer button the old new posts will be merged.

Smiry Kin's 05-16-2006 06:14 PM

can some one please up the file version? seems to be more user friendly please!!

Xenon 05-16-2006 07:01 PM

Quote:

Originally Posted by mod2000
it doesn't work with the direct replay field at the bottom of every page. i can add double posts but if i use after that the normal answer button the old new posts will be merged.

that's incorrect, it does work on both fields, as it is located on the script side where the actual post is stored, no matter how that is called, so if it doesn't work on QR you most likely have another mod interfering

WolfsongNevan 05-21-2006 02:18 AM

I have two things I need help with ....

I have an anonymous poster hack on my board. If someone posts using their regular screen name and then posts directly under it using the anonymous poster hack (which can happen frequently), or vice versa, it auto-merges the anonymous poster reply into the original screen name reply ... this is disasterous for this particular forum since it completely reveals who the anonymous poster is. The anonymous poster hack is only available in ONE subforum of our site. Is there a way to turn it off in specific forums? I absolutely LOVE this plug-in (and it is SORELY needed on our site), but the forum we use the anonymous poster hack is an extremely popular forum and it is detrimental that we assure our members complete anonymity in that one particular forum.

Also, is is possible to turn off the automerge for admins?

BTW, we just installed this plug-in on our site tonight and it's working PERFECTLY ... but we had to disable it until we figure out a way to disable automerge in that one particular forum. :( Thanks for an EXCELLENT plug-in!

Smiry Kin's 05-21-2006 04:44 AM

cant ya not fix the ajax dude?

Boofo 05-21-2006 05:14 AM

Quote:

Originally Posted by Smiry Kin's
cant ya not fix the ajax dude?

Paul posted a fix in the thread but it would involve file edits.

I doubt Stefan is going to worry about this right now with all the work he is doing on the site. And as he stated, it can't be done very easy. ;)

Smiry Kin's 05-21-2006 12:12 PM

Quote:

Originally Posted by Boofo
Paul posted a fix in the thread but it would involve file edits.

I doubt Stefan is going to worry about this right now with all the work he is doing on the site. And as he stated, it can't be done very easy. ;)

yeh but thats for the file version, its not a product! :(

if im correct?...

Boofo 05-21-2006 02:17 PM

Yes, you are correct. But right now that is the only way to do what you want done in an sensible (coding-wise) and easy way. I run the file edits version and it works great with Paul's fix. ;)

Smiry Kin's 05-21-2006 04:41 PM

Quote:

Originally Posted by Boofo
Yes, you are correct. But right now that is the only way to do what you want done in an sensible (coding-wise) and easy way. I run the file edits version and it works great with Paul's fix. ;)

Can you please upload the file version? :(?

Xenon 05-21-2006 07:53 PM

@Wolfsong: the custom condition setting is what you need, search through this thread here, everything has been posted already :)

WolfsongNevan 05-21-2006 09:16 PM

Xenon, thank you so much ... I will do that. Normally I do, but this thread is rather long. I wish there was a way to search within a thread, especially with these hundreds of posts long threads. :) Thanks so much for an awesome plug in!!!

Kihon Kata 05-24-2006 02:07 PM

Can you tell me where exactly to put this?

Quote:

Originally Posted by Xenon
easiest would be

Code:

$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']


Jaymee 05-25-2006 05:53 PM

I love it :)

Xenon 05-26-2006 10:55 AM

@Kihon: sorry, must have missed your post before...

put it in the additional condition field in the vbulletin settings :)

Kihon Kata 05-26-2006 12:30 PM

Quote:

Originally Posted by Xenon
@Kihon: sorry, must have missed your post before...

put it in the additional condition field in the vbulletin settings :)

Hi Xenon,

Can you tell me where that is exactly? sorry :(

Smiry Kin's 05-26-2006 12:37 PM

Quote:

Originally Posted by Kihon Kata
Hi Xenon,

Can you tell me where that is exactly? sorry :(

i take it, its in the vbulletin APC settings..? lol?...

Boofo 05-26-2006 12:39 PM

Quote:

Originally Posted by Smiry Kin's
i take it, its in the vbulletin APC settings..? lol?...

Yes, the settings for the hack itself. ;)

Smiry Kin's 05-29-2006 03:19 AM

ermm hack has stoped working for me, how great.. please either explain how i can check everything is working etc, or upload the file version, as stated about 100 times before.

got 3.5.4
vbseo installed.
no hacks installed recently

Xenon 05-29-2006 11:34 AM

erm, wasn't that what you wanted?
excluding admins will of course stop the hack to work for you.

Smiry Kin's 05-29-2006 04:14 PM

Quote:

Originally Posted by Xenon
erm, wasn't that what you wanted?
excluding admins will of course stop the hack to work for you.

admins are not excluded.

Nathan2006 05-29-2006 04:28 PM

Quote:

Originally Posted by Smiry Kin's
admins are not excluded.

That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
as 5,6,7, are the usergroups you want to exclude;)

Smiry Kin's 05-29-2006 04:30 PM

Quote:

Originally Posted by Nathan2006
That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
as 5,6,7, are the usergroups you want to exclude;)

i dont want to exclode any one... nothing is in that box. it just stoped working..

Nathan2006 05-29-2006 04:35 PM

Quote:

Originally Posted by Smiry Kin's
i dont want to exclode any one... nothing is in that box. it just stoped working..

That might be down to another hack you have installed after
the double posting hack? that might stop this one working.

The products that you have installed after this if you
disable them 1 by 1 and check to see if it works you may find the problem :)

mgs 05-30-2006 07:59 AM

I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
a little addition should be made
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND  $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)
This one prevents doubleposting "blank shots" if user answers to the different posts.

Kirk Y 05-31-2006 07:02 PM

Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.

Smiry Kin's 05-31-2006 11:21 PM

Quote:

Originally Posted by acidburn0520
Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.

thats what im after, =-/

Boofo 05-31-2006 11:55 PM

Quote:

Originally Posted by mgs
I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
a little addition should be made
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND  $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)
This one prevents doubleposting "blank shots" if user answers to the different posts.

I'm confused as to what your addition does here. ;)

mgs 06-01-2006 04:46 AM

Quote:

Originally Posted by Boofo
I'm confused as to what your addition does here. ;)

Joking?

Boofo 06-01-2006 06:34 AM

Quote:

Originally Posted by mgs
Joking?

Didn't see a smilie, so I thought it was for real. :(


All times are GMT. The time now is 03:36 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.03563 seconds
  • Memory Usage 1,864KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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