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. :)


All times are GMT. The time now is 03:25 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.01630 seconds
  • Memory Usage 1,770KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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