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)

Snake 09-30-2005 01:23 PM

Perhaps. But it's worth a try.

VaaKo 10-01-2005 06:39 PM

I'm having a problem
when I write a new post, I cannot see it merged until I refresh
I cannot see the message at all until I refresh

Kirk Y 10-01-2005 07:59 PM

We know... if you'd read earlier posts the AJAX isn't cooperating with this. Xenon is on holiday... so there won't be an update until he gets back. (Whenever that is...)

Mr Peabody 10-01-2005 08:32 PM

Cheers for the hack, best thing since sliced bread :)

ozmazdaclub 10-03-2005 09:47 PM

Has the attachment been modified to include the fixes?

Fenriz 10-04-2005 10:16 AM

Quote:

Originally Posted by Lebanese Forces
I'm having a problem
when I write a new post, I cannot see it merged until I refresh
I cannot see the message at all until I refresh

Ja, the same problem. Waiting for Xenon!

JohnBee 10-05-2005 12:55 AM

Also waiting for ajax compatibility fix :D - loved this mod under 3.0.x

ProperMethodz 10-05-2005 03:09 AM

Quote:

Originally Posted by garrynewman
I fixed the AJAX process by adding..

Code:

                $vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$id";
                eval(print_standard_redirect('redirect_automerged', true, true));

at the bottom of the "if ($isdoublepost)" before the "} else".

You need to add a new phrase "redirect_automerged" too.


edit: It works but is printing the message twice.

ahem coders... :)

Installed.

I'm no coder.. barely an admin. I really want to get into this coding stuff.. :) It's fun. OK..

So, I'd like to find a way to make a 24 hour limit on it in order to allow for thread bumping. But, I'd like to tag along for the ride on how it was found and how you code it. :)

Granted that some threads should be deleted, I think that some just go missed.

csidlernet 10-05-2005 03:12 AM

/me installs

ProperMethodz 10-05-2005 07:07 AM

Quote:

Originally Posted by csidlernet
[high]* csidlernet installs[/high]

lol... we've been following each other around this site all day. Our sites are going to have all the same hacks :)

CBE 10-05-2005 12:49 PM

when i post two replies ... it merged them .. but i must make REFRESH to show the post after megeing,,,,

what shall I go ??

JohnBee 10-05-2005 01:07 PM

There are many references to this throughout the thread, the hack is not 100% functional atm. I uninstalled it until an offixial fix is issued.

Xenon 10-05-2005 05:03 PM

as you can see this hack has the beta flag still activated ;)

i will include the AJAX fix when i tested it myself, i think during this week i will be able to do so (as i have to fix it until the upgrade of vb.org it has #2 on my to do list :))

JohnBee 10-05-2005 05:10 PM

Great news! looking forward to it, I love this mod, my forum has learned to live with it and since 3.5 complaining that can't abuse the quick reply feature :p

thanks for your hard work on this MOD btw

ozmazdaclub 10-07-2005 07:09 AM

waiting on the fixed one Xenon...Take your time... ive lived without it for now so a few more days/weeks won't hurt...

Xenon 10-07-2005 10:46 AM

i hope it won't take months ;)

ozmazdaclub 10-10-2005 09:35 AM

Any news/updates Xenon?

Xenon 10-10-2005 10:59 AM

nah, the AJAX isn't doing what it should.

right now i found a possibility to dublicate posts, not that i wanted to achieve that ^^
disabling Ajax would help ^^

hotrod1 10-10-2005 02:12 PM

Nice feature, thanks a bunch!

mtha 10-11-2005 12:04 AM

Quote:

Originally Posted by nexialys
for the ajax thing, it's kinda tricky... the quick-reply have to be interacting with the Edit ajax of the last post if you are the author of that one, so if you post from the quick-reply, it will be connected to the EDIT of the last post you've made instead of posting a new one with the quick-reply ajax...


how about just not letting people to "quick reply" if the last post belong to him/ so you can get rid of the AJAX problem :)

Quote:

I have an idea https://vborg.vbsupport.ru/

If someone post in the same thread in last X minutes (or the last post belong to him), the reply button will be disabled or link to editpost, that editing the last post that he made in the thread?

---------

and amazingly, it can easily be done by editing template.

a few ($threadinfo['lastposter'] != $bbuserinfo['username']) condition on reply link/quick reply will do the job https://vborg.vbsupport.ru/


?question?

can we extend the condition, so that only posts sorter than xx lines or xx characters, are merged. Longer posts are stays seperated :)

Xenon 10-11-2005 10:59 AM

Quote:

Originally Posted by mtha
can we extend the condition, so that only posts sorter than xx lines or xx characters, are merged. Longer posts are stays seperated

those things can be added easily

you just have to manipulate the if condition when a post is considered as doublepost just add a AND strlen($post[message]) <= 30 and just posts shorter than 30 chars will be merged.

Boofo 10-11-2005 11:12 AM

What post length would be a good length to set this at?

Xenon 10-11-2005 11:40 AM

hmm, personally i'd say up to 5 lines around 400 chars would be a good lenghth, but that depends on personal views..

Boofo 10-11-2005 12:21 PM

Quote:

Originally Posted by Xenon
hmm, personally i'd say up to 5 lines around 400 chars would be a good lenghth, but that depends on personal views..

So it would look like this with that added, right?

PHP Code:

 if ($type != 'thread' 
AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
AND 
$threadinfo['lastpost'] > TIMENOW $dp_settings['timespan'
AND 
$threadinfo['lastposter'] == $vbulletin->userinfo['username'])
AND 
strlen($post['message']) <= 400



Xenon 10-11-2005 02:30 PM

apart from wrong placed brackets, yes ;)

Boofo 10-11-2005 02:39 PM

You mean like this?

PHP Code:

 if ($type != 'thread' 
AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
AND 
$threadinfo['lastpost'] > TIMENOW $dp_settings['timespan'
AND 
$threadinfo['lastposter'] == $vbulletin->userinfo['username']
AND 
strlen($post['message']) <= 400)



Xenon 10-11-2005 03:46 PM

yep :)

Boofo 10-11-2005 03:58 PM

Thank you, sir. ;)

If you can figure out a way to do a plug-in on this (product), I could make settings for the usergroups and string length. ;)

mtha 10-11-2005 04:53 PM

look like boofo got right into the idea.

Thank you very much Xenon


PHP Code:

AND strlen($post['message']) <= 400


Boofo, use

PHP Code:

    $dp_settings = array(
        
'timespan' => 3600 24,// how many seconds after the last post the new post is defined as doublepost
        
'spacer' => "\n\n",    // What should be between the old post and the new one (default: two empty lines)
        
'editedbymsg' => 'Automerged Doublepost'// If left blank no edited by will appear
        
'maxchars' => 400// Max chars where post is merged.
    
); 

and

PHP Code:

AND strlen($post['message']) <=  $dp_settings['maxchars'] ) 




well, should you exclude Unregistered Users from the post, or checking IPs for those unregistered too? otherwise, you wont know "which unregistered user" post what :)

Xenon 10-12-2005 11:06 AM

Unregistred users use usernames as well afaik, they are just not registred.

Boofo 10-12-2005 02:22 PM

Quote:

Originally Posted by mtha
look like boofo got right into the idea.

Thank you very much Xenon


PHP Code:

AND strlen($post['message']) <= 400


Boofo, use

PHP Code:

    $dp_settings = array(
        
'timespan' => 3600 24,// how many seconds after the last post the new post is defined as doublepost
        
'spacer' => "\n\n",    // What should be between the old post and the new one (default: two empty lines)
        
'editedbymsg' => 'Automerged Doublepost'// If left blank no edited by will appear
        
'maxchars' => 400// Max chars where post is merged.
    
); 

and

PHP Code:

AND strlen($post['message']) <= $dp_settings['maxchars'] ) 


Good idea, thanks! ;)

mtha 10-12-2005 05:34 PM

Quote:

Originally Posted by Xenon
Unregistred users use usernames as well afaik, they are just not registred.

It doesnt really matter to me much, but there is a case when "guest" dont change username, it will use default one "Unregistered User" as username.
Other can post with the same default "Unregistered User" too, right?

Xenon 10-13-2005 11:39 AM

yep, you are right..

hmm, is it worth to add an extra check there?
i mean, how many boards allow unregistred users to post at all?

Devii 10-13-2005 09:01 PM

*hopes this is a plugin soon* I miss it so.

Snake 10-13-2005 09:20 PM

Yeah me too, I can't wait for it. :D

mtha 10-13-2005 10:23 PM

Quote:

Originally Posted by Xenon
yep, you are right..

hmm, is it worth to add an extra check there?
i mean, how many boards allow unregistred users to post at all?

:) yeah, it's not really worth it,

just as an additional to Boofo query above, I use:

should it be harder or something? i
PHP Code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(1,5,6,7)) 

for me, I have some box for troubleshooting, and sometime, member (or guest) keep posting alot of questions in there :).


anyway, it's optional.

Xenon 10-15-2005 10:01 AM

that's ok so.

you might also consider to disalbe it on some forums maybe..
like vb.org disabled it on the release forums..

ozmazdaclub 10-15-2005 11:01 PM

is this no auto updating the last post using ajax or is it still broken... if fixed are the instructions updated?

JohnBee 10-16-2005 12:17 AM

I cannot confirm that the ajax is fixed either, I really enjoyed this hack when it was on 3.0.x I hope they get fixed soon! :D

Boofo 10-16-2005 08:27 AM

Quote:

Originally Posted by Xenon
that's ok so.

you might also consider to disalbe it on some forums maybe..
like vb.org disabled it on the release forums..

How would you disable it in certain forums?


All times are GMT. The time now is 08:39 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.02305 seconds
  • Memory Usage 1,843KB
  • 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
  • (9)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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