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)

CBE 01-22-2006 08:03 PM

Quote:

Originally Posted by Daniel
3.5.5!? Where have I been? :speechless:


sorry i mean 3.5.3


so any body can conclude to us how can we istall it on 3.5.3 ?????

:ermm: :ermm: :ermm:

Alex_ 01-23-2006 03:17 AM

I used this one
https://vborg.vbsupport.ru/showpost....&postcount=229
with this optional one
https://vborg.vbsupport.ru/showpost....&postcount=240
on my 3.5.3 having no problems so far...

gwhooooey 01-23-2006 05:56 AM

Quote:

Originally Posted by Alex_
To solve the dateline problem I had to update the timestamp manually
I inserted
Code:

$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "post SET dateline = " . TIMENOW . " WHERE postid = ".$post[postid]);
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "thread SET lastpost = " . TIMENOW . " WHERE threadid = ".$threadinfo[threadid]);

to renew post and thread timestamp to have an 'unseen' post.
Now I'm happy with it ;)

Where exactly does that code go?

Alex_ 01-23-2006 11:25 AM

I put it above
Code:

$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$post[postid]#post$post[postid]";
eval(print_standard_redirect('redirect_postthanks', true, false));


ultranerds 02-01-2006 07:34 AM

Is there a plugin that does this? :rolleyes: (sorry, just trying to avoid where possible, from making core code changes <G>)

TIA

Xenon 02-01-2006 02:07 PM

nope!

not everything is possible with plugins....

Snake 02-01-2006 03:23 PM

Duh! :D

IrPr 02-01-2006 09:33 PM

Quote:

Originally Posted by Xenon
nope!

not everything is possible with plugins....

UPDATED TODAY?

Paul M 02-01-2006 09:40 PM

Quote:

Originally Posted by IrPr
UPDATED TODAY?

Not the hack, just the text of the first post by the look of it.

Emilian 02-01-2006 09:48 PM

thank you very much :p

Xenon 02-01-2006 10:09 PM

hehe, i have to prove myself wrong :)

i writed a plugin only version now, and included is a ajax fix as well ;)

enjoy, and please report any errors you get, it's still a beta, just a very improved one :)

IrPr 02-01-2006 10:11 PM

seems now product version is available
but seems still is in beta stage ;)

Edit: loool i was too late :D
ill try on my board NOW !
Thanks Xenon:)

Xenon 02-01-2006 10:12 PM

look at my post above :p

IrPr 02-01-2006 10:21 PM

WOOOOOW VERY NICE IDEA !
Quote:

Doublepost will be merged
:banana: Thanks Xenon :banana:

Xenon 02-01-2006 10:22 PM

:)

glad you like the idea ^^

IrPr 02-01-2006 10:24 PM

Works on my board as charm !
now its a product
would u plz add more Settings in AdminCP ?
such as incuding/excluding usergroups or users ?
min char, and so on ?

Edit: still in Code Modifications Forum?

Xenon 02-01-2006 10:26 PM

that would be possible without any problems :)

will do so once it's a final version, but not as long as i consider it as beta :)

Wild-Wing 02-01-2006 10:58 PM

thats damn nice man

LBSources 02-01-2006 11:18 PM

Xenon so i undid the previous edits and just imported this product.. that ok?

Xenon 02-01-2006 11:47 PM

exactly :)

LBSources 02-02-2006 12:33 AM

ok thanks.. done and works well..

Daniel 02-02-2006 12:38 AM

*hint* move to plugins section *hint*

prawn 02-02-2006 02:01 AM

I did not test it out that much yet but what about the replies statistics in the forumdisplay? When I add a post via quickreply the system works but in the forum display the merged post is still counted seperateley.

Thanks!

HMBeaty 02-02-2006 03:45 AM

So this IS working with the AJAX feature now, correct?

Yorixz 02-02-2006 04:27 AM

This seriously rocks, thanks a lot - will try it out later today!

IrPr 02-02-2006 08:19 AM

Still in Code Modifications Area:D
Xenon how to exclude Admin/S-Mod posts from auto mergin ?

Xenon 02-02-2006 11:05 AM

*moved*

to exclude admins/mods just edit the main plugin, and modify this condition:
PHP Code:

if (/*!ismod() AND !is_hack_forum($threadinfo['forumid']) AND */$type != 'thread'
    
AND $dp_threadinfo['lastpost'] > TIMENOW $vbulletin->options['xen_dp_timespan'] * 60
    
AND $dp_threadinfo['lastposter'] == $vbulletin->userinfo['username']
    AND 
$dataman->fetch_field('attach') == 0

the code what to add, is already posted in this thread on page 1 :)

@forumcounters: yep, seems that this is a bug.
i thought the datamanager does that automatically, seems not...

Xenon 02-02-2006 11:58 AM

ok, Beta 3 released currently.

it fixes the forumcounters, also there is now a setting for all experts out there.
this setting allows everyone to add several conditions, without touching the sourcecode.

be careful, when filling values into that field, as no errorchecking was done by myself, speak it's really for experts only

Gio Takahashi 02-02-2006 12:38 PM

Awesome.

Now, how might I add something like this:

Double Post Merged to the post whenever someone makes a double post.

lanc3lot 02-02-2006 01:05 PM

Quote:

Originally Posted by Xenon
*moved*

to exclude admins/mods just edit the main plugin, and modify this condition:
PHP Code:

if (/*!ismod() AND !is_hack_forum($threadinfo['forumid']) AND */$type != 'thread'
    
AND $dp_threadinfo['lastpost'] > TIMENOW $vbulletin->options['xen_dp_timespan'] * 60
    
AND $dp_threadinfo['lastposter'] == $vbulletin->userinfo['username']
    AND 
$dataman->fetch_field('attach') == 0

the code what to add, is already posted in this thread on page 1 :)

@forumcounters: yep, seems that this is a bug.
i thought the datamanager does that automatically, seems not...


U mean to edit the .xml file before install it as a product yes? And mark the above code in the xml and put the one u give on page 1?

Sorry, just be more sure:)

Karri 02-02-2006 01:50 PM

What will the plug in do in this instance? Poster makes a very long post and has to split it up into multiple posts to get it to all fit in. If there is too much text to fit all in one post, will it merge it still or what will happen?

Thanks

Xenon 02-02-2006 03:24 PM

@Karri: if a merged post would break the rules, it won't be merged, so in that way, it will just allow the doublepost

@Gio: just add Doublemerged Autopost into the separator setting :)

@lancelot: forgte that thing, download the beta 3 product version, install it, and you will see a new setting, where you can add additional conditions :)

Karri 02-02-2006 03:25 PM

Cool, thanks for the info. :)

lanc3lot 02-02-2006 05:36 PM

I did, can u please tell the conditional for the admins?:D

Thnx again:)

Xenon 02-02-2006 05:38 PM

easiest would be

Code:

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

lanc3lot 02-02-2006 08:59 PM

Thnx :)

Xenon 02-02-2006 09:00 PM

you're welcome

Bro_Joey_Gowdy 02-02-2006 09:33 PM

Nice.

*installs*

inspiration100 02-02-2006 10:01 PM

installed sir. Thank you

WNxWakko 02-02-2006 10:52 PM

I would love to use this. However is their a way to exclude Admin usergroups from this?


All times are GMT. The time now is 11:32 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.01526 seconds
  • Memory Usage 1,801KB
  • 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
  • (3)bbcode_code_printable
  • (2)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
  • (1)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