The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Prevent Doubleposting Details »» | |||||||||||||||||||||||||
When a User posts into a thread where he already has the lastpost, no new post will be added. The lastpost of him will be edited and the new text is put after his first message.
This will be done until the old post is older than 24 hours (you can change this timespan yourself) Nothing more to say about that, it's the quite same as my vb3.0 version. This Mod should run with 3.6 as well ** Please make sure you ENABLE this product after you install it - it is disabled by default. ** For vb 3.8 there are two alternative updates ; https://vborg.vbsupport.ru/showthread.php?t=203705 https://vborg.vbsupport.ru/showthread.php?t=204177 Show Your Support
|
Благодарность от: | ||
inphoenix |
Comments |
#842
|
||||
|
||||
My members has informed me that when they accidentally double posted a white page appears and the top left corner It say "FLOOD".
So i check the in message posting and its set it set to 30 so i don't know where else to check. any info will be great |
#843
|
||||
|
||||
Quote:
|
#844
|
||||
|
||||
Would it be hard to change the code so that this mod would only work in selected forums?
I am testing out yoyoyoyo's version. It has a field in the options called 'Additional Condition'. Can this be used to exclude forums? Quote:
Could you please explain how? |
#845
|
|||
|
|||
After reading back the past 10 pages, it seems there is still no reply to making the merged text read:
--------------- Added 6 April 2008 at 7:17pm --------------- Anyone managed to get that working? |
#846
|
||||
|
||||
I have tried to install this in my vb 3.5.x site and I get this error anyone know what this is and how to fix it
HTML 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 : Friday, April 11th 2008 @ 03:41:11 PM Script : http://www.mysite.com/forums/admincp/plugin.php Referrer : http://www.mysite.com/forums/admincp/plugin.php?do=productadd IP Address : 67.x.x.x Username : ********** Classname : vb_database |
#847
|
||||
|
||||
You need to go through the XML and take out the executionorder settings as that wasn't introduced until a later version of vb. I would recommend upgrading.
|
#848
|
|||
|
|||
work fine with 3.7.x
|
#849
|
||||
|
||||
Quote:
|
#850
|
||||
|
||||
Quote:
|
#851
|
||||
|
||||
You da man Boofo I will try it now..
Excellent it worked!!!!!!!!!!!!!!!!!!!!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|