View Full Version : Prevent Doubleposting
Black Tiger
10-13-2008, 08:23 PM
yes.
Pirat3
10-13-2008, 10:31 PM
yes.
Do i have to make any changes ? or can i simply just upload as normal?
Black Tiger
10-13-2008, 10:52 PM
As far as I remember i have just uploaded it as normal.
The only thing that had to be done was to enable the product, nothing more.
rolloffhill
10-15-2008, 01:09 AM
Can someone tell me exactly what to put in the expert box to make it were everyone is automerged including Admins and mods?
I tried the
add !can_moderate(5,6)
add !can_moderate()
!can_moderate()
None of which works
Thanks
Black Tiger
10-15-2008, 10:48 AM
The export box is to exclude people. If you put !can_moderate or something like that (don't remember the exact phrase) in there it is to EXclude admins and mods.
Should work for everybody when you put nothing in the expert box as far as I know.
rolloffhill
10-15-2008, 10:18 PM
but it doesn't which is why I am asking the question. It never has worked for admins and mods since the day I installed it.
PAKIDIL
10-16-2008, 06:29 PM
i tried to install it in vb 3.7.2 but its work with NEW REPLY but not with quick reply so can any one fix it or tell me how to fix it ?
TheMic
10-17-2008, 10:59 PM
I'm having some problems with adding custom conditionals. The plugin works fine, and auto-merges everything that it should, but I have a few forums that I would like to disable auto-merge in.
Before I upgraded to 3.7.2, I'd been able to just add those forums to the custom conditional as:
!in_array($vbulletin->forum['forumid'], array(###, ###))
But that no longer seems to work. I've tried doing it the long way too, but that doesn't seem to work either.
$vbulletin->forum['forumid'] != ### AND $vbulletin->forum['forumid'] != ###
Is it still possible to prevent auto-merging per forum?
Edit: Thought -- Do I now need to manually pull the forumid out of the database through the plugin code, rather than just in the additional conditions option box?
Hi...
for me worked this code:
in_array($foruminfo[forumid], array(###,###,###,###))
I have a 3.7.3 version!
very great mod for my forum!
:)
TheMic
10-17-2008, 11:19 PM
i tried to install it in vb 3.7.2 but its work with NEW REPLY but not with quick reply so can any one fix it or tell me how to fix it ?
I have the same problem... can someone help us?
thanks in advance!
siriuxs
10-21-2008, 07:52 AM
I have vbulletin 3.7.3 and I have this problem. When I write two or much post it are auto-merge but it compare also separated... Why?
Mr. INTENSE
10-30-2008, 06:07 PM
This mod works fine for me in v 3.7.3. :)
Hannan
10-30-2008, 09:36 PM
i tried to install it in vb 3.7.2 but its work with NEW REPLY but not with quick reply so can any one fix it or tell me how to fix it ?
I have same problem, anyone can help me?!
thanks
It DOES work with quickreply. Refresh your page and you'll see it's merged.
Doc Great
11-07-2008, 07:23 AM
Same problem here. Posts get merged, but the last post wont be deleted ...
You can take a look @ http://www.techsupportforum.de/labor/ (the last 3 or 4 threads)
A special thread for english speaking people http://www.techsupportforum.de/labor/10393-doublepost-test-thread.html
Edit: sorry i have not seen the pages before ... so the problem with qr is already known
IRANCITY
11-08-2008, 04:04 PM
nice hack...
i need this hack for Vb 3.7.4 & 3.8
TheLastSuperman
11-09-2008, 03:12 AM
Thanks! ;) 3.6.8
Forum-Germany
11-11-2008, 11:38 PM
Does this hack with version 3.4.7?
If yes: Should I apply to the installation to proceed differently because of the Verion 3.7.4?
Paul M
11-11-2008, 11:47 PM
AFAIK this works (as is) on 3.5/3.6/3.7/3.8
Forum-Germany
11-12-2008, 12:08 PM
Hello. Thanks for answering, now I know it. :)
Is it for the hack also a German translation? Where can I find a German translation?
Doc Great
11-13-2008, 08:44 AM
In my case it doesn't work with 3.7.x ... a german translation file is hosted @ http://www.vbulletin-germany.org/showthread.php?t=101
codershark
11-13-2008, 02:59 PM
dont works on 3.8 Beta 2 :(
crkgb
11-19-2008, 02:34 AM
AFAIK this works (as is) on 3.5/3.6/3.7/3.8
Ok, I am just trying to filter things out here. How come so many people say they have bugs?
Simon Lloyd
11-19-2008, 03:18 AM
3.7.3 & 4 Works fine for standard replies but does not for quick replies....other than that great!
masterme
11-21-2008, 07:04 PM
Today installed on 3.6.5, works like a charm, also with !can_moderate()
Craigex
11-22-2008, 08:45 PM
This doesn't work with v3.8.0 Beta 1 for me.
Paul M
11-23-2008, 09:46 AM
Ok, I am just trying to filter things out here. How come so many people say they have bugs?
I have no idea, there is nothing in this that will stop it working in any of those versions, and indeed Ive had a variant working on all of them.
I sometimes wonder how many people actually read this line ;
** Please make sure you ENABLE this product after you install it - it is disabled by default. **
PremierFootball
11-23-2008, 11:25 AM
This doesn't work with v3.8.0 Beta 1 for me.
In my case it doesn't work with 3.7.x ... a german translation file is hosted @ http://www.vbulletin-germany.org/showthread.php?t=101
You can't expect a 3.5 modification to work on vB 3.7x
Paul M
11-23-2008, 11:44 AM
Um, yes you can, and the vast majority do.
TheLastSuperman
11-23-2008, 01:53 PM
Um, yes you can, and the vast majority do.
REMEMBER THAT LADIES AND GENTS!
Tinkering opens up the door ;)
I used the 3.5 on my 3.6 and in some cases if you feel confident enough in your abilities you can IF the mod/hack has the Min/Max version just remove it or change to your number and roll with it :D.
S-MAN
Voltar
11-24-2008, 07:30 AM
Installed on my 3.7.4 board, and 3.8 b3 test board. Works beautifully.
Breakpoint
11-27-2008, 04:57 PM
Please tell me how to install this, I am new to VB.
Voltar
11-27-2008, 06:11 PM
Please tell me how to install this, I am new to VB.
Download the product.
Login to your ACP. Go to Plugins and Products > Manage Products > Scroll to the bottom & click Add/Import Product > File the file on your computer and import it.
Breakpoint
11-28-2008, 01:37 AM
Download the product.
Login to your ACP. Go to Plugins and Products > Manage Products > Scroll to the bottom & click Add/Import Product > File the file on your computer and import it.
Thank you so much!
Paul M
11-28-2008, 11:27 AM
Dont forget to enable it afterwards .....
redlabour
12-03-2008, 02:45 PM
New Hack for 3.7.x is out:
Anti Double Post (or Bumping) System (https://vborg.vbsupport.ru/showthread.php?t=196680)
SVTCobraLTD
12-25-2008, 01:44 PM
Works on 3.6.11
What about making it so that admins, super mods and mods are exempt?
Black Tiger
12-25-2008, 05:11 PM
There is already an option for that.
SVTCobraLTD
12-25-2008, 10:54 PM
There is already an option for that.
It says !can_moderate() will allow moderators to bypass but what about admins?
Black Tiger
12-25-2008, 11:14 PM
The code means that it will bypass anybody with moderation rights, so that is moderators, supermoderators and admins.
I have that code on my site too and it works nice.:)
Forum-Germany
12-27-2008, 06:07 PM
I have a problem with this hack. I have I have long been installed.
I've added a new forum where guests can write something. if a hospitable now writes something and abschickt, comes the following errors:
Fatal error: Call to undefined function can_administer() in /www/htdocs/XXX/includes/functions_newpost.php(585) : eval()'d code(9) : eval()'d code on line 1
German support forum told me it would be a plug-in to blame the entry point has newpost_complete. and it is true. I have the plug-in system PLG in this place --->Main Doublepost Prevent Engine<--- and when I turn off plug-in is the problem away. what is flawed? Who can help me?
so sieht das plug-in aus:
// ########### Xenon's prevent doublepost modification #########
$vbulletin->GPC['xen_isdoublepost'] = false;
// parse custom conditions
$custcond = true;
if (trim($vbulletin->options['xen_dp_custcond']) != '')
{
eval('$custcond = ((' . $vbulletin->options['xen_dp_custcond'] . ') ? true : false);');
}
// 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)
{
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE post.threadid = $threadinfo[threadid]
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
AND post.visible = 1 AND deletionlog.primaryid IS NULL
AND post.postid <> $post[postid]
ORDER BY post.dateline DESC
LIMIT 1
");
if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
{
// we truely have a doublepost, now check if the merged post still fits the rules!
$dpdataman =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dpdataman->set_existing($doublepost);
$doublepost['message'] = $doublepost['pagetext'] . "\n" . $vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];
// set info
$dpdataman->set_info('preview', $post['preview']);
$dpdataman->set_info('parseurl', $post['parseurl']);
$dpdataman->set_info('posthash', $post['posthash']);
$dpdataman->set_info('forum', $foruminfo);
$dpdataman->set_info('thread', $dp_threadinfo);
// set options
$dpdataman->setr('showsignature', $post['signature']);
$dpdataman->setr('allowsmilie', $post['enablesmilies']);
// set data
$dpdataman->setr('pagetext', $doublepost['message']);
$dpdataman->setr('iconid', $post['iconid']);
$dpdataman->pre_save();
if (!$dpdataman->errors)
{
// merged post is ok, so actually do the merging by editing old post
$vbulletin->GPC['xen_isdoublepost'] = true;
if ($vbulletin->options['xen_dp_bumpthread'])
{
// bump thread, so change the post's dateline
$doublepost['dateline'] = TIMENOW;
$dpdataman->setr('dateline', $doublepost['dateline']);
}
$dpdataman->save();
// as we have edited an old post, we can now delete the new created post
$postman =& datamanager_init('Post', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$postman->set_existing($post);
$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);
unset($postman);
$doublepost['oldmessage'] = $post['message'];
$post = $doublepost;
$id = $post['postid'];
//now add edited by message
if ($vbulletin->options['xen_dp_editedby'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($post[postid], " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($vbulletin->options['xen_dp_editedby']) . "')
");
}
// last step update counters
build_thread_counters($post['threadid']);
build_forum_counters($foruminfo['forumid']);
}
}
}
Please help me! :o
Thanks. :)
Paul M
12-27-2008, 08:11 PM
You have put "can_administer()" in the mods custom code option, there is no such function.
Forum-Germany
12-27-2008, 09:18 PM
Hello. Thank you for this intereats. :)
What should this be called now? if I switch off this add-on, is away fehler., unfortunately I am "newbie."
what I should do?
Paul M
12-28-2008, 11:08 AM
Just remove that from the option.
Forum-Germany
12-28-2008, 01:31 PM
:(
What should I remove them? It would be very nice of you if you with step by step could explain what is doing. :(
Forum-Germany
12-28-2008, 01:51 PM
Ok, I have the whole times better viewed. After all, I think I find anything. it is up to the "! can_administer ()" in the ratings for this add-on?
Here it is: http://www.abload.de/image.php?img=unbenanntdwyi.png
but I need this function. what can I do?
Paul M
12-28-2008, 07:28 PM
Sorry, the mod will not work while you have that in the option - as there is no such function in vb. Maybe post #1041 is what you want ?
Forum-Germany
12-28-2008, 07:35 PM
Hello. :)
Means that the code "!can_moderate()" applies to moderators, super-moderators and administrators hleichzeitig? Have I understood correctly?
EDIT:
So would the code "!can_moderate()" as I have understood my problem?
armthehomeless1
12-31-2008, 01:57 PM
How do I change the time to the forums time?
I'd like to know this also...as my forum is based in Australia with the server in the US.
So my times are way off! :confused:
Saviour
01-05-2009, 12:15 AM
I use vbulletin 3.7.4 PL1 and have this installed and working...except for the time stamp separator...
Is there a fix for this anywhere within the 71 pages of posts here?
Can someone tell me what this section is for within the vboptions settings of this mod:
Bump Thread
Do you want a thread beeing bumped by a doublepost, or should it be a real edit?
Also, I know I can add my own Post Separator, but is there a way to add this as a separator:
----------[user] added on January 4, 2009 at 9:14 PM----------
I really don't feel like searching through 71 pages of posts. Just call me lazy...however, I'll try searching again.
Thanks in advance.
redlabour
01-08-2009, 07:23 AM
Does it work with 3.8?
mA|tRiX
01-08-2009, 07:52 AM
Whats with the authorizations? Can i exclude usergroups from this hack?
redlabour
01-08-2009, 04:49 PM
Works great with 3.8 GOLD!
mA|tRiX
01-09-2009, 04:57 AM
Whats with the authorizations? Can i exclude usergroups from this hack?
Can someone give me an answer? :) Thx
Dave Hawley
01-09-2009, 05:07 AM
Can i exclude usergroups from this hack?
Ok, I give up. Can you?
Simon Lloyd
01-09-2009, 09:17 AM
Dave, it seems at the moment you can only exclude admin with the !can_moderate() notation, i don't know whether you can add an if condition like:
<if condition="is_member_of($bbuserinfo,2)">!can_moderate()</if>usergroup 2 is registered users, if you do try it back up your db first.
Can't seem to get it working for 3.5.4 table 'executionorder' doesnt exist, not sure wether I can just add it without having any further problems with the forums?
Ok, got it working, needed to remove some things in the XML, for all other 3.5.4 users, here's a XML which is working.
talkncaasports
01-21-2009, 10:21 AM
Works good in 3.8.0.
Leo Brazil
01-21-2009, 06:46 PM
Does it works good with quick reply ? How does it deals with attachments ? I mean, if the first post has 3 of them and second one more 3 but you limit for them for each post is 5.
I tried to search about this here but end up nothing
Thanks
redlabour
01-21-2009, 07:30 PM
1. Does it works good with quick reply ?
2. How does it deals with attachments ? I mean, if the first post has 3 of them and second one more 3 but you limit for them for each post is 5.
I tried to search about this here but end up nothing
Thanks
1. Yes
2. Works without Problems. Don?t ask me how but it works.
Leo Brazil
01-22-2009, 01:06 PM
Thanks for feedback redlabour, I'm gonna try it.
It's a pitty xenon last login of Sep 2008. This mod is really usefull and considering tons of information I've read here with some changes it would be one of the best here.
RedHacker
01-24-2009, 01:19 AM
When put this addon look what happen..!!!Why..?Can help me..?
https://vborg.vbsupport.ru/
Voltar
01-24-2009, 07:34 AM
When put this addon look what happen..!!!Why..?Can help me..?
https://vborg.vbsupport.ru/
Did you install any other mods at the same time that you installed this? Because I can tell you it doesn't add anything to the left side menu, and it does work beautifully for me on vB 3.8.
RedHacker
01-24-2009, 07:45 AM
Maybe input Greek Language and Uninstall and then import this addon...
Simon Lloyd
01-25-2009, 06:52 PM
When put this addon look what happen..!!!Why..?Can help me..?
http://img217.imageshack.us/img217/3166/91498903gp8.jpgMaybe its a problem with the "Post Thanks" hack, i don't use it but if someone has just posted and then wants to post a thanks....... then that may be a problem, so just maybe when installing the hack it has picked up some of the attributes of the post thanks hack causing a problem.
RedHacker
01-25-2009, 10:31 PM
I dont understand what must do with post thanks for function correctly.....? I install vBulletin and then install Language Pack and then saw ????????????
Shazz
01-26-2009, 03:41 AM
Those 2 mods may not function right together...
ePrOmD
01-26-2009, 02:55 PM
hi!
I just install this useful hack.
At first, I thought that it didn´t function, cause I can see messages of unification, but It doesn´t really been unified, until I press F5(refresh) they were unified.
I found a problem testing post with attachments. they are not been unified. any ideas?
thank you very much! greetings to all!
Leo Brazil
01-27-2009, 01:58 PM
I've install it but nothing happens at all on 3.8.0
I've enabled the products that was disabled by default but nothing so far.
Any tips ?
cynthetiq
01-27-2009, 08:41 PM
Okay, I've gone through so many of these pages, probably at least 50 of them, and I can't for the life of me figure out where or how I inserted this as the seperator of the automerge. Can anyone be so kind as to point me in the right direction?
----Added 27/1/2009 at 03 : 47 : 52-----
snowbizx
01-28-2009, 12:38 AM
I've install it but nothing happens at all on 3.8.0
I've enabled the products that was disabled by default but nothing so far.
Any tips ?
edit: disregard, i looked a little further back and found out :P
cynthetiq
01-28-2009, 01:10 AM
it worked, then it stopped working.... i'm reinstalling again, and trying them one mod at a time.
snowbizx
01-28-2009, 01:16 AM
i'm not getting any time notations between the posts... help please!
cynthetiq
01-28-2009, 04:29 AM
// ########### Xenon's prevent doublepost modification #########
$vbulletin->GPC['xen_isdoublepost'] = false;
// parse custom conditions
$custcond = true;
if (trim($vbulletin->options['xen_dp_custcond']) != '')
{
eval('$custcond = ((' . $vbulletin->options['xen_dp_custcond'] . ') ? true : false);');
}
// 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)
{
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE post.threadid = $threadinfo[threadid]
AND post.dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
AND post.visible = 1 AND deletionlog.primaryid IS NULL
AND post.postid <> $post[postid]
ORDER BY post.dateline DESC
LIMIT 1
");
if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
{
// we truely have a doublepost, now check if the merged post still fits the rules!
$dpdataman =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dpdataman->set_existing($doublepost);
$doublepost['message'] = $doublepost['pagetext'] . "\n" . '-----Added '.date("j/n/Y"). ' at '.Date("h : i : s").'-----'.$vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];
// set info
$dpdataman->set_info('preview', $post['preview']);
$dpdataman->set_info('parseurl', $post['parseurl']);
$dpdataman->set_info('posthash', $post['posthash']);
$dpdataman->set_info('forum', $foruminfo);
$dpdataman->set_info('thread', $dp_threadinfo);
// set options
$dpdataman->setr('showsignature', $post['signature']);
$dpdataman->setr('allowsmilie', $post['enablesmilies']);
// set data
$dpdataman->setr('pagetext', $doublepost['message']);
$dpdataman->setr('iconid', $post['iconid']);
$dpdataman->pre_save();
if (!$dpdataman->errors)
{
// merged post is ok, so actually do the merging by editing old post
$vbulletin->GPC['xen_isdoublepost'] = true;
if ($vbulletin->options['xen_dp_bumpthread'])
{
// bump thread, so change the post's dateline
$doublepost['dateline'] = TIMENOW;
$dpdataman->setr('dateline', $doublepost['dateline']);
}
$dpdataman->save();
// as we have edited an old post, we can now delete the new created post
$postman =& datamanager_init('Post', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$postman->set_existing($post);
$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);
unset($postman);
$doublepost['oldmessage'] = $post['message'];
$post = $doublepost;
$id = $post['postid'];
//now add edited by message
if ($vbulletin->options['xen_dp_editedby'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($post[postid], " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($vbulletin->options['xen_dp_editedby']) . "')
");
}
// last step update counters
build_thread_counters($post['threadid']);
build_forum_counters($foruminfo['forumid']);
}
}
}
I added
$doublepost['message'] = $doublepost['pagetext'] . "\n" . '-----Added '.date("j/n/Y"). ' at '.Date("h : i : s").'-----'.$vbulletin->options['xen_dp_spacer'] . "\n" . $post['message'];
RedHacker
01-28-2009, 04:01 PM
Import in manage products..!!!I must anything else....?
Paul M
01-28-2009, 04:42 PM
Read the big red note in the first post ;)
cynthetiq
01-28-2009, 05:26 PM
Read the big red note in the first post ;)
Nice to see you still follow this thread :) It's much appreciated.
Can I ask you where you did the dirty part for the AJAX?
Does this mean that instead of the screen pausing saying it will merge the post, and then does so upon refresh, it just merges at that point?
Where do I insert that code? In the same place I did the first edit?
Paul M
01-28-2009, 09:12 PM
Yes, it merges the post instantly (like here at vb.org).
It involves changes to the actual plugin code and also vbulletin_quick_reply.js
Voltar
01-28-2009, 09:46 PM
Yes, it merges the post instantly (like here at vb.org).
It involves changes to the actual plugin code and also vbulletin_quick_reply.js
Care to share those improvements? :D
Leo Brazil
01-29-2009, 10:30 AM
Care to share those improvements? :D
I'm glad to see I'm not the only one on this....lol....I was about say the same thing....lol...
I've seen something similar to this working pretty good on vB.org and I always feel like I really need something like it on my board. But after reading tons of pages I just can't figure out how.
As Xenon seems to be out of this for a long time why not take over it for improvements ?
cynthetiq
01-29-2009, 11:26 AM
Yes, it merges the post instantly (like here at vb.org).
It involves changes to the actual plugin code and also vbulletin_quick_reply.js
Thanks! Okay I'm going to read your post more carefully, and ask appropriate questions once I've completely RTFM.
Care to share those improvements? :D
He has in a post on page 10.
Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;
1. The post dateline is not updated on a merge, so it doesn't get seen as unread.
2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).
So, since I wanted this on our forum I have fixed both locally - this is what I have done.
1. To fix the timestamp ;
Find ;
// set info
Add below it ;
$dataman2->set('dateline', TIMENOW);
2. To fix the ajax issue, use this nasty hack ;
Find ;
if ($isdoublepost)
{
$id = $doublepost['postid'];
$dataman->save();
//now add edited by
if ($dp_settings['editedbymsg'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($id, " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($dp_settings['editedbymsg']) . "')
");
}
}
Replace with ;
if ($isdoublepost)
{
// Ugly hack added by Paul M to fix ajax merge //
if (!$vbulletin->GPC['ajax'])
{
$id = $doublepost['postid'];
$dataman->save();
if ($dp_settings['editedbymsg'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($id, " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($dp_settings['editedbymsg']) . "')
");
}
}
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$post[postid]#post$post[postid]";
eval(print_standard_redirect('redirect_postthanks' , true, false));
}
Seems to work okay for me, feel free to try it. :)
I'm glad to see I'm not the only one on this....lol....I was about say the same thing....lol...
I've seen something similar to this working pretty good on vB.org and I always feel like I really need something like it on my board. But after reading tons of pages I just can't figure out how.
As Xenon seems to be out of this for a long time why not take over it for improvements ?
I believe someone from the community needs to pick it up not the board staff.
Leo Brazil
01-30-2009, 10:22 AM
Finally I got it working good with time stamp on my 3.8.0 but there was a conflict with another mod Live Mod (https://vborg.vbsupport.ru/showthread.php?t=201228) . The problems seems the Ajax trick from this one os conflicting each other and when I have a bump post that should be merged the user has the impression that nothing happens (but it does) and if you keep trying to post the same thing when you reload the page the merged post is showed with lots of merged things as much as you tried before.
I believe someone from the community needs to pick it up not the board staff.
I've got what you mean but as Paul M has a lot of published mods here (very good ones BTW) and it seems he know exactly what our needs for it, why not ?
Paul M
01-30-2009, 10:33 AM
He has in a post on page 10.
That code is ancient, and not what I am referring to.
Id be surprised if that still works as the mod itself has changed since that was posted - I would not suggest anyone use it now.
I believe someone from the community needs to pick it up not the board staff.
Last I checked I was "from the community ". I have many mods released here.
Simon Lloyd
01-30-2009, 10:52 AM
Did you try the fix I posted a few pages back ?Paul M, i looked at your edits but i could only find the //set info so i could only ad the first edit to the plugin (i assume its done in plugin manager?) hwo and where do i find the rest of it, i dont seem to have a
if ($isdoublepost)
{
$id = $doublepost['postid'];
$dataman->save();
Could you give a suggestion?, im using 3.8.1
Kihon Kata
01-30-2009, 12:14 PM
This is working on my 3.8 board just fine. I have had it since it's inception.
Paul M
01-30-2009, 03:45 PM
Could you give a suggestion?, im using 3.8.1
Please read my post above ;
That code is ancient, and not what I am referring to.
Id be surprised if that still works as the mod itself has changed since that was posted - I would not suggest anyone use it now.
JFYI, Xenon has given me permission to release an updated version, I will try and do this over the next week.
cynthetiq
01-30-2009, 03:51 PM
Yippee!!!!!! thanks Paul.
I didn't mean to exclude you from the superset of the community.
Simon Lloyd
01-30-2009, 07:09 PM
Please read my post above ;
JFYI, Xenon has given me permission to release an updated version, I will try and do this over the next week.Thats great Paul, reading through the 75 pages here (well most of them....honest!) there are lots of wants and wishes for a 3.8 version, i look forward to it, like always from you it will be something special and easy to install ;)
Paul M
01-31-2009, 10:16 AM
Not all wants and wishes will be granted ;)
ePrOmD
01-31-2009, 10:46 AM
Hi paul, I am bothered again!
But as I see you're watching something on this hack. I wonder if by chance you don´t know how to solve the problem that this hack don´t join post that contain attachments.
Thanks again!
Paul M
01-31-2009, 11:05 AM
Hi paul, I am bothered again!
But as I see you're watching something on this hack. I wonder if by chance you don?t know how to solve the problem that this hack don?t join post that contain attachments.
That isnt a problem, its by design, and wont be changed by me.
ePrOmD
01-31-2009, 11:20 AM
ok, thanks again!
regards!
Paul M
01-31-2009, 04:10 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=203705" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=203705</a> (for 3.8 only).
Vitaly
02-04-2009, 08:37 AM
https://vborg.vbsupport.ru/showthread.php?t=204177
It's amusing, that nothing was changed for 2 years, and then 2 people did the similar fixes in the same time independently :)
redlabour
02-04-2009, 05:04 PM
Prevent Doublepost Prevention Plus (https://vborg.vbsupport.ru/showthread.php?t=204177)
It's amusing, that nothing was changed for 2 years, and then 2 people did the similar fixes in the same time independently :)
It is removed to the Graveyard. :(
So we have to wait for another Release that does the Job without File- and/or Templateedits or a Update to PaulM?s Distribution.
Vitaly
02-05-2009, 06:54 AM
I'm sorry, but that's community problem, not mine, that good quality product is graveyarded. May be, the knowlege, that "tricky copyright rules ar ok" will help someone, when he have to edit JS code after each upgrade.
I hope, Paul will get some benefits of "installed count", those means nothing for me.
Simon Lloyd
02-05-2009, 06:36 PM
Vitaly, what was wrong with yours, i need to install one of them but want the one with most functionality.
bluecolored
02-08-2009, 08:50 PM
Vitaly, what was wrong with yours, i need to install one of them but want the one with most functionality.
It is back: https://vborg.vbsupport.ru/showthread.php?t=204177&page=3
Black Tiger
02-09-2009, 01:05 AM
Well... seems I have to go over there and click install in the 3.8 section too.:D
spankaveli
06-29-2009, 02:25 PM
is there any way to make this only affect specific subforums?
Vitaly
06-29-2009, 02:32 PM
You can make hook, that turn on/off this product, depending on forum ID. But it's better to use other products, for example paul's one.
spankaveli
07-12-2009, 01:15 AM
You can make hook, that turn on/off this product, depending on forum ID. But it's better to use other products, for example paul's one.
do you have a link or can you be more specific? i've been searching for one so i can make this only apply to the for sale section of my forum. thanks!
Delilahs
12-02-2009, 01:02 PM
I'm testing this on Vb4, and it seems to be working on there so far
Zaiaku
12-26-2009, 06:11 PM
I'm testing this on Vb4, and it seems to be working on there so far
It does not. Althouh it does combine the post it make the combine post repeat it set. And I really needed this working for vb4 too.
dmark101
02-21-2010, 04:53 PM
hmm. i seem to be getting this error [on vB 3.6.12 PL2]
in vBulletin 3.6.12:
Invalid SQL:
SELECT post.*
FROM post AS post
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = [threadid removed]
AND dateline > [dateline removed]
AND visible = 1 AND deletionlog.primaryid IS NULL
ORDER BY dateline DESC
LIMIT 1;
MySQL Error : Column 'dateline' in where clause is ambiguous
Error Number : 1052
Date : Sunday, February 21st 2010 @ 10:16:48 AM
Script : http://forums..com/newreply.php?do=postreply&t=[removed]
Referrer : http://forums..com/newreply.php?do=newreply&p=[removed]
IP Address : xx.xx.xx.xx
Username : dmark101
Classname : vB_Database
i've highlighted where the problem takes place. it really only happens when using the quote button itself. i've never had any issues when using the quick quote button.
i'm guessing some code change between 3.6.8 and 3.6.12 PL1 is the culprit. any help would be appreciated. :)
washingtonboise
08-23-2010, 08:06 PM
4.x version is here: https://vborg.vbsupport.ru/showthread.php?t=244028
Kurisu
07-26-2013, 03:44 PM
Does this work on 3.7.x?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.