vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Live Topic (https://vborg.vbsupport.ru/showthread.php?t=201228)

movslow 01-13-2009 06:48 PM

Waiting for supported version before install.

*Subscribed*
:up:

Coders Shack 01-13-2009 06:49 PM

Quote:

Originally Posted by Mum (Post 1711266)
Oh this is great :) I am loving this mod!

have uninstalled double posts and all working fine now.

for double post in the plugin titled "Main Doublepost Prevent Engine" look for this line:
PHP Code:

// last step update counters 

above it add these two lines:
PHP Code:

$vbulletin->db->query_first("UPDATE `" TABLE_PREFIX "post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `" TABLE_PREFIX "post`.`postid` = $id LIMIT 1");
$vbulletin->db->query_first("UPDATE `" TABLE_PREFIX "thread` SET `lastedit` = UNIX_TIMESTAMP() WHERE `" TABLE_PREFIX "thread`.`threadid` = $threadinfo[threadid] LIMIT 1"); 


Phaedrus 01-13-2009 07:01 PM

Quote:

Originally Posted by Coders Shack (Post 1711228)
Don't worry ill deal with that. :) (they both are my mods anyways lol)

Yeah, I noticed..

LOL.

Phaedrus 01-13-2009 07:48 PM

And for anybody who is wondering, as I have seen it asked before. This Mod is working with the Optimise hack fully active on my board.

AcidX 01-13-2009 09:10 PM

Quote:

Originally Posted by Coders Shack (Post 1711271)
for double post in the plugin titled "Main Doublepost Prevent Engine" look for this line:
PHP Code:

// last step update counters 

above it add these two lines:
PHP Code:

$vbulletin->db->query_first("UPDATE `post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `post`.`postid` = $id LIMIT 1");
$vbulletin->db->query_first("UPDATE `thread` SET `lastedit` = UNIX_TIMESTAMP() WHERE `thread`.`threadid` = $threadinfo[threadid] LIMIT 1"); 


I think you have an error in your code again and it needs to be corrected... :)

Coders Shack 01-13-2009 09:14 PM

updated previous post

haha, im sorry none of my boards use thread prefixes.

AcidX 01-13-2009 09:48 PM

1 Attachment(s)
Quote:

Originally Posted by Coders Shack (Post 1711432)
updated previous post

haha, im sorry none of my boards use thread prefixes.

So, that should fix the duplicate-posts bug? I thought it did, but it showed up again... :(
And it seems only posts that get merged via the "prevent double posting" add-on show as double posts.. Take a look at this:
Attachment 92582

Attachment 92583
Of course, when I refresh - they're not there. How should we fix it? :erm:

One more thing... Make sure you give us the ability to change language phrases (like "x new responses (live topic)") in 1.03b. And keep an eye on those prefixes :D

chooky 01-13-2009 09:52 PM

it would be nice if there is a ajax-infoheader on forumhome or WhoIsOnlineBox where the user can see a list of live-threads :)

Coders Shack 01-13-2009 10:03 PM

Quote:

Originally Posted by AcidX (Post 1711455)
So, that should fix the duplicate-posts bug? I thought it did, but it showed up again... :(
And it seems only posts that get merged via the "prevent double posting" add-on show as double posts.. Take a look at this:
Attachment 92582

Attachment 92583
Of course, when I refresh - they're not there. How should we fix it? :erm:

One more thing... Make sure you give us the ability to change language phrases (like "x new responses (live topic)") in 1.03b. And keep an eye on those prefixes :D

The duplicate post issue is fixed in 1.03b. As for the edits i posted above, that should be made to your Prevent Double post addon if you have it installed.

AcidX 01-13-2009 10:19 PM

Quote:

Originally Posted by Coders Shack (Post 1711465)
The duplicate post issue is fixed in 1.03b. As for the edits i posted above, that should be made to your Prevent Double post addon if you have it installed.

Got it. Waiting for 1.03b! :up:


All times are GMT. The time now is 02:49 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.01941 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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