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)

katholic 02-12-2006 08:35 PM

Xenon, and I'm sorry for probably asking yet another stupid question, what would I write for a spacer

MorrisMcD 02-13-2006 02:23 AM

Quote:

Originally Posted by Xenon
@Morris: make sure you ahve installed beta 4, that bug you describes is just in beta 3!

That was in fact the problem

Had I read through all 22 pages, I probably would have noticed that :)

But.. You know how that can be... I didnt even realize it got updated.. I have been installing all my hacks over on a new server and I guess it got updated shortly after I installed and before I clicked install.. Serves me right :)

Thanks! I am working again

Quillz 02-13-2006 04:14 AM

I just installed this. Seems to work well.

Nullifi3d 02-13-2006 01:05 PM

Quote:

Originally Posted by MorrisMcD
That was in fact the problem

Had I read through all 22 pages, I probably would have noticed that :)

Kinda sucks with enourmous popular hack threads. people wind up asking the same questions multiple times because they don't want to read through 50 pages of posts.

Maybe one day there will be a nice addiation to vbulletin that searches a specific thread, as we can search specific forums.

MorrisMcD 02-13-2006 01:09 PM

Quote:

Originally Posted by Nullifi3d
Kinda sucks with enourmous popular hack threads. people wind up asking the same questions multiple times because they don't want to read through 50 pages of posts.

Maybe one day there will be a nice addiation to vbulletin that searches a specific thread, as we can search specific forums.

I think maybe a faq.txt on every hack would be useful, but that is a lot more management for the author of the hack and therefore cuts into upgrading time :)

Xenon 02-13-2006 03:58 PM

@Morris: no problem, such things could happen, it's a beta hack, so upgrades can come fast and silent ;)

but forf the other thing you two are discussing.... (we have something in mind, which will be installed soon ;) (afterthe 3.5 upgrade))

@katholic: add a
Code:

-




-

for example

Paul M 02-13-2006 04:03 PM

Quote:

Originally Posted by Nullifi3d
Maybe one day there will be a nice addiation to vbulletin that searches a specific thread, as we can search specific forums.

You can already search a single thread.

Valter 02-19-2006 07:08 PM

Nice one, thanks!

prawn 02-19-2006 09:59 PM

It seems the double post merging is skipped sometimes even within the time span set for the bumping feature. I can't say much more on that now but I'll try to get that one reproducable.

Greets

gwhooooey 02-20-2006 02:39 AM

^ Yeah, it's happened to me a few times as well

katholic 02-20-2006 04:32 AM

I, three, have noticed the same thing. It doesn't happen all the time but it does occur atleast 5% of the time.

Nullifi3d 02-20-2006 11:03 AM

at least 5% of the time? So 95% of the time it doesn't work? Are you sure you didn't get that backwards?

prawn 02-20-2006 11:07 AM

At least for me it is not 95% of the time but a lot more than 5% actually.

Mikecp421 02-20-2006 11:45 AM

I think I did this hack when it was a file edit, can I now upload it as a plugin and have it set to overwrite the previous? Or must I find out what I did to edit it before? I read most of this thread to find the answer but didn't see it.

Guest210212002 02-20-2006 01:31 PM

/me clicks install

Guest210212002 02-20-2006 01:36 PM

All this "look on this page for the answer" stuff is confusing.

Xenon, I have this phrase:

Code:


// at first check if there is at least the possibility to be a doublepost
if ($custcond 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)
{


If I change that to:

Code:

// at first check if there is at least the possibility to be a doublepost
if ($custcond AND $type != 'thread' AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
        AND $dp_threadinfo['lastpost'] > TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60
        AND $dp_threadinfo['lastposter'] == $vbulletin->userinfo['username']
        AND $dataman->fetch_field('attach') == 0)
{

That will disable it for mods/admins, correct?

Edit: Yep, that seemed to do it.

Xenon 02-20-2006 09:51 PM

@Mike: just reupload an unhacked functions_newpost.php to remove the old hack and then just upload the plugin

@Chris: correct, but the added condition should be placed into the custom condition field in the vbulletin options, that's why i added that field ;)

@possible problems: the merge is just done, if the merged post won't produce an error.
so if the new post would have to much chars or images it won't merge.
also posts with attachments are not jet merged

gwhooooey 02-20-2006 10:06 PM

What happens with me... for the random times it doesn't work... is it's the exact same post.. twice, but in the second one... it'll have the additional comment bit added as well.

...and these posts have just been plain text, nothing that would cause an error.

katholic 02-20-2006 10:36 PM

Quote:

Originally Posted by Nullifi3d
at least 5% of the time? So 95% of the time it doesn't work? Are you sure you didn't get that backwards?


No 5% of the time it doesn't work. I had it correct the first time, depending on how the person wishes to read it.

mkdevo 02-21-2006 11:51 AM

i'm trying to exclude admin posts from automerging using this in the Additional Conditions:

Code:

!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])
...but it's still merging my posts. any ideas/alternatives?

-=Sniper=- 02-22-2006 11:42 AM

Xenon; sorry if its already been posted, a user on my forums made three posts with the exact same content and it processed it as three different posts. (so the user has three posts saying "thank you")

Xenon 02-22-2006 01:11 PM

hmm, that posts should filtered out by the dupe check already

are you sure you don't have another hack installed?

-=Sniper=- 02-22-2006 01:28 PM

I don't think there are any conflicts, I do have the hack installed which marks the thread as old after xx days, but the thread the posts were made in, is recent.

the user said, he was stuck on the page for a while.

I just tried to duplicate the problem, but can't seem to, will see if it happens again and post back.

Khent334 02-22-2006 02:24 PM

Would you mind cleary addressing the quick reply issue? I just did a fresh install of this hack on a fresh 3.5.3 board, and the quick reply still doesn't refresh the page automatically.

Paul's fix apparently doesn't work with your new release either.

Xenon 02-22-2006 07:36 PM

Erm?
there is no quick reply issue in the newest version.
there is no refresh after a QR if you have ajax enabled.

Xplorer4x4 02-22-2006 08:39 PM

Quote:

Originally Posted by Xenon
there is no refresh after a QR if you have ajax enabled.

I just installed today and I as well have to refresh before it merges the posts.

Also how can i exclude this form 2 forums. I tried,
PHP Code:

is_array($GLOBALS[forumid], array(44,42)) 

But that just made a duplicate messaage turn up evrytime i posted.

Xenon 02-22-2006 11:46 PM

on ajax it will look like two posts and will be merged afterwards, that's why the tilte of the ajax' post is 'Doublepost will be merged'

as for your code, there are two mistaked:

it's in_array, not is_array

and you should use $threadinfo[forumid] instead of the $globals one

hiiped 02-23-2006 05:13 AM

agreed
On a fresh install of vB 3.5.3
after a post, when you quick reply it shows as two posts
then you have to REFRESH for it to merge

Xenon 02-23-2006 03:01 PM

yep, that is working as designed

the post is already merged, but with the new AJAX features of 3.5.0 that's the only possible way without really much hacking into the files as well

Xplorer4x4 02-23-2006 04:37 PM

PHP Code:

in_array($threadinfo[forumid], array(42,44,36)) 

I am using this in Additional Condition input field and it is still not bypassing your hack in the apropriate forums.

gwhooooey 02-23-2006 08:56 PM

Quote:

Originally Posted by Xplorer4x4
PHP Code:

in_array($threadinfo[forumid], array(42,44,36)) 

I am using this in Additional Condition input field and it is still not bypassing your hack in the apropriate forums.

I used that code ^^ but from when Xenon previously said about it, it was ['forumid'] instead... and it seems the forum numbers you put in, are the forums that will have the hack apply to.. so is there a way of doing the opposite and making the code deny the forums we don't want to use the hack?

Xenon 02-24-2006 12:02 PM

just add an ! infront ofthe in_array to inverse the condition ;)

Xplorer4x4 02-24-2006 07:29 PM

Quote:

Originally Posted by gwhooooey
I used that code ^^ but from when Xenon previously said about it, it was ['forumid'] instead...

Actually he never used the ' ' marks.

Xenon slight bug when using this with Ucash and Ushop. If I use the condition:
PHP Code:

!in_array($threadinfo[forumid], array(42,44,36)) 

it causes this problem: https://vborg.vbsupport.ru/showpost....&postcount=878

So I changed it to:
PHP Code:

  !in_array($threadinfo['forumid'], array(42,44,36)) 

And now it works fien with ucash and ushop.

Blind Guardian 02-24-2006 08:21 PM

Excellent. The array to turn it off per-forum is going to help me a lot with the forums which require a lot of double posting.

Thanks for this, Xenon.

MUDERCOOL 02-24-2006 09:18 PM

This is a great hack
I have 3.5.3 and I installed this one it seems it's working BUT the problem is it creates a post (another post, a second post. as usual posting) with "two posts", one merged post but not "1", there are actually two posts.
but the second one is a merged post, contains the first and the second post.
if I post third times, the third post contains first, second and the last one, as a merged post but there are now 3 posts not "1"

what is my problem and how can I fix this?
it works great on vbulletin.org I had surprised with that when I try to re-post another question under a thread of mine and I found this hack after that.

sorry about my English BTW and Thanks.

Absath 02-25-2006 12:20 AM

Umm, could someone explain how to install this, exactly? :ninja:

Nevermind, figured it out on my own :D

Xenon 02-26-2006 09:10 PM

@Muddercool: redownload the plugin again, make sure it'S the newest version..

also empty your browser cache, and make sure there is no other hack conflicting, this one is a sensible hack, regarding that damn AJAX "features"...

Pink-Lotus 02-27-2006 02:16 PM

Awesome =]

Thanks a lot! =D

bada_bing 02-27-2006 02:44 PM

How do I exclude certain usergroups and forums? And how and where do I put the code?

Xenon 02-27-2006 02:54 PM

at badabing, please read through the last pages of this thread, this question has been answerewd several times already....


All times are GMT. The time now is 09:56 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.01966 seconds
  • Memory Usage 1,829KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (8)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