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)

siriuxs 07-01-2007 07:55 PM

Oh no... :( What is the hack that haved the conflict?

Dannyloski 07-01-2007 10:24 PM

^ Oh I dont know if that's the issue, I was just thinking it may be that ... To be 100% Sure you would have to go to your AdminCP and disable each Hack one by one (while keeping this Hack Enabled at all times) to see if it indeed its a Hack conflicting or something else. after you disable a Hack, just try doing a doubleposts until you get it to work. If you cant get it to gwork after everything was done, then it may be something else ...

Attitude5ire 07-14-2007 09:51 AM

Can anyone help if giving a conditional to exclude just a particular thread or forum ID frm the Double Posting.. Because it seems to be clashing with the Awards Mod when a post creation is enabled.
thnx in advance

Konstantinos 07-23-2007 02:20 PM

Quote:

Originally Posted by CharmMickey (Post 1231229)
Yes, it works on 3.6.5 but how exactly can you make it so it doesn't auto-merge a specific group's posts like Administrators. I tried the code:

HTML Code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
And it doesn't work....

what whould be the array if we want the mod to check only users who have less than 50 posts ?

Dave Hawley 07-24-2007 08:13 AM

Adreas, I have used your version here on vb 3.5.4 and works great! Is there some way I can add a hr or something to seperate the merged posts from the original?

Dave Hawley 07-24-2007 09:21 AM

Never mind, got it!

noreturn 07-24-2007 05:43 PM

I just went to install this and received this error below.
Can some one explain what I need to do?

Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
        (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
        ('1', '5', 'Main Doublepost Prevent Engine', 'newpost_complete', '// ########### Xenon\'s prevent doublepost modification #########\r\n\r\n$vbulletin->GPC[\'xen_isdoublepost\'] = false;\r\n\r\n// parse custom conditions\r\n$custcond = true;\r\nif (trim($vbulletin->options[\'xen_dp_custcond\']) != \'\')\r\n{\r\n        eval(\'$custcond = ((\' . $vbulletin->options[\'xen_dp_custcond\'] . \') ? true : false);\');\r\n}\r\n\r\n\r\n// at first check if there is at least the possibility to be a doublepost\r\nif ($custcond AND $type != \'thread\'\r\n        AND $dp_threadinfo[\'lastpost\'] > TIMENOW - $vbulletin->options[\'xen_dp_timespan\'] * 60\r\n        AND $dp_threadinfo[\'lastposter\'] == $vbulletin->userinfo[\'username\']\r\n        AND $dataman->fetch_field(\'attach\') == 0)\r\n{\r\n        // we are here, so we may have a doublepost -> do more exact checkings\r\n        $doublepost = $vbulletin->db->query_first(\"\r\n                SELECT post.*\r\n                FROM \" . TABLE_PREFIX . \"post AS post\r\n                LEFT JOIN \" . TABLE_PREFIX . \"deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = \'post\')\r\n                WHERE post.threadid = $threadinfo[threadid]\r\n                        AND post.dateline > \" . (TIMENOW - $vbulletin->options[\'xen_dp_timespan\'] * 60) . \"\r\n                        AND post.visible = 1 AND deletionlog.primaryid IS NULL\r\n                        AND post.postid <> $post[postid]\r\n                ORDER BY post.dateline DESC\r\n                LIMIT 1\r\n        \");\r\n\r\n        if ($doublepost[\'userid\'] == $vbulletin->userinfo[\'userid\'] AND $doublepost[\'attach\'] == 0)\r\n        {\r\n                // we truely have a doublepost, now check if the merged post still fits the rules!\r\n                $dpdataman =& datamanager_init(\'Post\', $vbulletin, ERRTYPE_ARRAY, \'threadpost\');\r\n                $dpdataman->set_existing($doublepost);\r\n                $doublepost[\'message\'] = $doublepost[\'pagetext\'] . \"\\n\" . $vbulletin->options[\'xen_dp_spacer\'] . \"\\n\" . $post[\'message\'];\r\n\r\n                // set info\r\n                $dpdataman->set_info(\'preview\', $post[\'preview\']);\r\n                $dpdataman->set_info(\'parseurl\', $post[\'parseurl\']);\r\n                $dpdataman->set_info(\'posthash\', $post[\'posthash\']);\r\n                $dpdataman->set_info(\'forum\', $foruminfo);\r\n                $dpdataman->set_info(\'thread\', $dp_threadinfo);\r\n\r\n                // set options\r\n                $dpdataman->setr(\'showsignature\', $post[\'signature\']);\r\n                $dpdataman->setr(\'allowsmilie\', $post[\'enablesmilies\']);\r\n\r\n                // set data\r\n                $dpdataman->setr(\'pagetext\', $doublepost[\'message\']);\r\n                $dpdataman->setr(\'iconid\', $post[\'iconid\']);\r\n\r\n                $dpdataman->pre_save();\r\n                if (!$dpdataman->errors)\r\n                {\r\n                        // merged post is ok, so actually do the merging by editing old post\r\n                        $vbulletin->GPC[\'xen_isdoublepost\'] = true;\r\n\r\n                        if ($vbulletin->options[\'xen_dp_bumpthread\'])\r\n                        {\r\n                                // bump thread, so change the post\'s dateline\r\n                                $doublepost[\'dateline\'] = TIMENOW;\r\n                                $dpdataman->setr(\'dateline\', $doublepost[\'dateline\']);\r\n                        }\r\n                        $dpdataman->save();\r\n\r\n                        // as we have edited an old post, we can now delete the new created post\r\n                        $postman =& datamanager_init(\'Post\', $vbulletin, ERRTYPE_SILENT, \'threadpost\');\r\n                        $postman->set_existing($post);\r\n                        $postman->delete($foruminfo[\'countposts\'], $threadinfo[\'threadid\'], $removaltype = true, array(\'userid\' => $vbulletin->userinfo[\'userid\'], \'username\' => $vbulletin->userinfo[\'username\'], \'reason\' => $vbulletin->options[\'xen_dp_editedby\'], \'keepattachments\' => false), false);\r\n                        unset($postman);\r\n\r\n                        $doublepost[\'oldmessage\'] = $post[\'message\'];\r\n                        $post = $doublepost;\r\n                        $id = $post[\'postid\'];\r\n\r\n                        //now add edited by message\r\n                        if ($vbulletin->options[\'xen_dp_editedby\'] != \'\')\r\n                        {\r\n                                $vbulletin->db->query_write(\"\r\n                                        REPLACE INTO \" . TABLE_PREFIX . \"editlog (postid, userid, username, dateline, reason)\r\n                                        VALUES ($post[postid], \" . $vbulletin->userinfo[\'userid\'] . \", \'\" . addslashes($vbulletin->userinfo[\'username\']) . \"\', \" . TIMENOW . \", \'\" . addslashes($vbulletin->options[\'xen_dp_editedby\']) . \"\')\r\n                                \");\r\n                        }\r\n\r\n                        // last step update counters\r\n                        build_thread_counters($post[\'threadid\']);\r\n                        build_forum_counters($foruminfo[\'forumid\']);\r\n                }\r\n        }\r\n}', 'xenon_prevdoublepost');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date        : Tuesday, July 24th 2007 @ 02:40:44 PM

Username    : Gordon
Classname    : vb_database


Dave Hawley 07-24-2007 11:19 PM

I was getting similar in 3.5.4 so I used this one and it works great https://vborg.vbsupport.ru/showpost....&postcount=157

noreturn 07-25-2007 12:33 AM

Thank you Sir. Installed without that error.

UhOH...I see it did post second post but ran it all together and that is why I did not see it.

Can you please tell me how and where you placed a line break in there?

Thank You

Dave Hawley 07-25-2007 07:06 AM

I used some Custom BB codes and then used the below in vBulletin Options>Message Posting and Editing Options-Double Post Spacer

[hr]*[/hr] Auto Merged Post;[dl]*[/dl]

Where hr is a HTML hr and dl is a double line break.

noreturn 07-25-2007 02:17 PM

Thanks for your ongoing help. I tired and I copied and pasted and here is what happens. It runs the actual BB code and sentence into the first post.

example
just me doing a test of posting* *Auto Merged Post;*[dl]*[/dl]hey this is my second test of a double post

It seems that whatever code I place in "Double Post Spacer" appear as text in the post. And does not move the second post down a line or two.

example
First post[dl]Second test post

noreturn 07-26-2007 12:48 AM

ok thank you. I got it.

Dannyloski 07-30-2007 12:38 AM

For those who want to exclude the Admin ONLY from the PRevent Double Posting Feature use the below code:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(6))
If you wish to add more Usergroups, simply enter their IDs inside the Array Parenthesis (separating by commas), like this:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(X,Y,Z))
This was posted way earlier int he Thread, but I added to the last post just in case someone installs it and needs the info (to save them some searching)

PoetJA-1975 07-30-2007 02:25 AM

Quote:

Originally Posted by Dannyloski (Post 1304981)
For those who want to exclude the Admin ONLY from the PRevent Double Posting Feature use the below code:

Code:

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

Thanx for posting - but where exactly do you add the code?

Jacquii.

Dannyloski 07-30-2007 02:56 AM

PoetJA-1975, no problem ... you paste the code here:

AdminCP > vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

PoetJA-1975 07-30-2007 03:23 AM

Nice! Thanx very much!

Jacquii.

hissatsu 08-03-2007 10:44 PM

Hello guys -- reading all these posts has made me more confused. I should learn how to code. Here is my problem - i downloaded the mod. There are no errors being displayed. But it doesnt work right.

wHen a member doubleposts within the Timespan (eg two weeks) the post is merged with his/her earlier post. But it remains as aN individual post. if this is not clear then this is what i am saying.
Member makes post A. He then makes post B in the Timespan. Next Post A & B get merged as one post in their own window. But post B still remains in its own window. So instead of one merged post you get Post A & B(merged) and Post B(the doublepost also appearing) in its own window

How do i get this resolved? Since many use this mod how did they resolve this? Are there any codes and where should i place them? Most important - how do i put a separation or an actual line separating the two posts?

Should I try Andreas plugin (post #157 in this thread) instead? (Made in 2005)
I am a noob so please go easy on me.

Dave Hawley 08-04-2007 03:06 AM

Andreas plugin is working great for me on 3.5.4. I had too many errors using the other one.

hissatsu 08-04-2007 08:52 PM

i will try that then and post what happens. i am on 3.67 PL1

EDIT:
Yes- Andreas plugin worked on 3.67 PL1 -- just fine.

But it has the same problems some mentioned - it puts the new post on the same line as the old one without separating them.
Andreas suggested using a line separator yet for someone who knows nothing about coding where in XML the file do i place this line separator.
And how can i exclude administrators from being affected by the mod? can someone help me here with the codes to use and where to put it in the xml file (andreas plugin is attached to post #157)?

Thanks!!!

Dave Hawley 08-05-2007 04:20 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1300910&postcount=693" target="_blank">SEE</a>

hissatsu 08-05-2007 06:59 AM

Dave, i saw ur post earlier but didnt know and understand what to do with it- (i actually did read most of the posts in this thread). i am glad it is you who replied = yay!!!

I mean what do i do with that code? How does the custom BBcodes come into this picture?
When i was installing custom bbcodes they always came with some code string. so how do i set up this bb code and what string do i use? And by what you say in that post after the bbcode is set then i post the code line from SEE in
vBulletin Options>Message Posting and Editing Options-Double Post Spacer
Sorry, newbie here :o . Thanks very much.


EDIT

Another question why does the hack always adds the double post more than once to the original post? When i make a doublepost it adds it to my earlier post at least twice.

And what code do i use to prevent administrators from being affected? [there was an option like that in Xenon's]

Spinball 08-17-2007 06:56 PM

Hello,
is it possible to exclude (or include) specific forums where this hack will work?
I ask because like 600 odd other people I think it would be useful on the forums, but there are a few where it would not be appropriate (e.g. our news forums and our classifieds forums).

SABRSox 08-19-2007 02:51 AM

I'm having an issue now where users are posting a great number of smilies with their posts, and this seems to work around the automerge. We have our Max Images Per Post set to 8 images, and as soon as that is exceeded, the automerge will fail to merge posts.

Any idea on a solution to this problem, without increasing or disabling the max images per post?

Xenon 08-19-2007 01:19 PM

Nope, that's working as designed.

Posts are just merged if the merged post is a valid one.

Black Tiger 08-27-2007 02:59 PM

Could it be this is not working for vBulletin 3.6.8?

I've just installed this hack tonight, and today this happened:
http://www.satellitefun.org/bbs/show...6634#post56634

So a user making a post at 14.14 PM, and a reply to it's own post at 14.30 and posts were not automerged.
Standard installation, what goes wrong?

RaceJunkie 08-28-2007 11:12 AM

Quote:

Originally Posted by Black Tiger (Post 1326766)
Could it be this is not working for vBulletin 3.6.8?

I've just installed this hack tonight, and today this happened:
http://www.satellitefun.org/bbs/show...6634#post56634

So a user making a post at 14.14 PM, and a reply to it's own post at 14.30 and posts were not automerged.
Standard installation, what goes wrong?

Yea same thing here

Dannyloski 08-28-2007 12:41 PM

Its working fine for me in vB 3.6.8 ... I dont know what happened on you guy's forums ...

DieselMinded 08-28-2007 03:28 PM

fine here on 3.6.8

RaceJunkie 08-28-2007 04:04 PM

Must be my custom style. Does anyone know the template edits that this is suppose to do?

ragtek 08-28-2007 04:07 PM

there are no templatefunctions!

RaceJunkie 08-28-2007 04:40 PM

I just looked in the plugin manager and noticed it was all marked through like it's inactive. I guess it would help to turn it on huh?...:eek: :D

Black Tiger 08-28-2007 05:32 PM

Yep, I discovered but have forgotten to mention here that I found it.:erm:
After installation it's disabled by default. So in the meantime it''ss working already at my forums.:)

Sorry for the inconvenience!

HotRodGyrl 08-28-2007 06:56 PM

Thanks for this, I like this feature =):up:

Antyrael 09-07-2007 06:48 AM

Awesome hack, this is just what I needed! :D

GamingAttic 09-08-2007 03:00 AM

Can I make it so that this can take all the double posts made (before I installed this) and put them in one?

bulbasnore 09-15-2007 04:37 PM

Hey, we love this feature. Thanks Xenon. Import overwrite seems to have gone smoothly under 3.6.7_pl1

pandaram 09-16-2007 01:14 AM

thanks for this hack and i was using it with VB3.6.5
but its not working well with 3.6.8, is there an updated version available for this mod?

Black Tiger 09-16-2007 01:40 AM

No need for an updated version, it is working perfectly with 3.6.8. Just remember to enable it because it's disabled by default.

djbaxter 09-16-2007 02:01 AM

Quote:

Originally Posted by pandaram (Post 1339842)
thanks for this hack and i was using it with VB3.6.5
but its not working well with 3.6.8, is there an updated version available for this mod?

It works fine with 3.6.8.

Try reinstalling it. There were some template changes from 3.6.5 to 3.6.8.

ragtek 09-16-2007 05:52 AM

for me its working with 3.6.8


All times are GMT. The time now is 03:12 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.02335 seconds
  • Memory Usage 1,846KB
  • 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
  • (1)bbcode_html_printable
  • (4)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