vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - Doublepost Prevention (https://vborg.vbsupport.ru/showthread.php?t=203705)

ricardoNJ 08-26-2009 05:39 AM

I have a "Database error"

Paul M 08-26-2009 12:26 PM

and would you like to share that error .....

yamahapaul 08-30-2009 10:15 PM

I cann't believe that its taken me over 12 months to find this great mod! thanks Paul :up:

Paul M 08-30-2009 10:29 PM

This was was only released 7 months ago :D

.... although the original Xenon version has been around much longer :)

ForumUser210 08-31-2009 08:54 AM

Whaaat?

This mod isn't working right. Or it's being interfered by another mod.

Because when I use the quick reply box, instead of the message, it will post "Please click one of the Quick Reply icons in the posts above to activate Quick Reply."

And sometimes, instead of adding the new post the member wrote, it will repeat the same post from before! And the new post disappears into thin air.

Something not right about this mod.

Log on 08-31-2009 09:28 AM

great job

Paul M 08-31-2009 11:34 PM

Quote:

Originally Posted by ForumUser210 (Post 1877086)
Something not right about this mod.

Given that over 600 people (min) are using it, including me, without any issues. Im going to bet that the mod is fine, and you have a local issue.

TimberFloorAu 09-01-2009 12:36 AM

Can I make a request Paul.

Can this be configured so that we can edit the time stamp message ?

Paul M 09-01-2009 03:52 PM

The message is a phrase, you are free to edit it.

TimberFloorAu 09-01-2009 07:33 PM

Quote:

Originally Posted by Paul M (Post 1877853)
The message is a phrase, you are free to edit it.

Thanks

ricardoNJ 09-01-2009 09:50 PM

I'm sorry. This mod was uninstalled.

yamahapaul 09-01-2009 09:57 PM

Quote:

Originally Posted by Paul M (Post 1877034)
This was was only released 7 months ago :D

Even so, its still pretty cool and will save me a massive headache as one of my users spreads one post over two or three and merging them was getting tedious (I only found it by seeing it in use on here by the way) incidentally, there's no problems on 3.8.4 in case anyone is wondering..

djbaxter 09-01-2009 11:38 PM

Quote:

Originally Posted by ricardoNJ (Post 1878055)
I'm sorry. This mod was uninstalled.

I don't blame you. If that happened to my forum, I'd be sorry this mod was uninstalled too. :D

Paul M 09-02-2009 09:16 AM

Quote:

Originally Posted by ricardoNJ (Post 1878055)
I'm sorry. This mod was uninstalled.

Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)

ricardoNJ 09-03-2009 10:02 PM

Quote:

Originally Posted by Paul M (Post 1878285)
Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)

Oh I forgot it. Because I found this other: https://vborg.vbsupport.ru/showthrea...ght=doublepost

JoomlaCommunity 09-05-2009 12:54 AM

Quote:

Originally Posted by Raug (Post 1831680)
Nice update since I use long times as well, but is there a way to add the actual date of the original post and addition to the phrase?

Same request here...
Quote:

Originally Posted by Paul M (Post 1835968)
Not really sure what you mean.

If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....

ricardoNJ 09-05-2009 03:54 AM

Quote:

Originally Posted by ricardoNJ (Post 1874574)
I have a "Database error"

Quote:

Importando Producto, Por Favor Espera...

[:]

Please remember to Mark as Installed at vBulletin.org

Install Information


Prevent DoublePosts

Installing : Version 3.8.005 ; Revision 1.7

( Replacing : Version 3.8.005 ; Revision 1.7 )



Database Error Database error
The arteforos.com database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the www.arteforos.com home page, then try to open another page.
* Click the Back button to try another link.

The www.arteforos.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
I had this Database problem.

Paul M 09-05-2009 10:02 AM

Quote:

Originally Posted by JoomlaCommunity (Post 1879909)
Same request here...

If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....

Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.

Paul M 09-05-2009 10:03 AM

Quote:

Originally Posted by ricardoNJ (Post 1879949)
I had this Database problem.

There is nothing I can tell you unless you post the actual database error. However, this mod does not make any database changes.

JoomlaCommunity 09-05-2009 10:01 PM

Quote:

Originally Posted by Paul M (Post 1880024)
Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.

Yes we updated to the latest version, and were hoping the update would provide a date in the phrase.
However the date is only shown if you choose not to Update the timestamp of a doublepost.
Problem then is, the new post will not show up at the list of unread posts.

We want to update the timestap of a doublepost and see the date of the previous post in the phrase.

In the meanwhile I dugg into it myself and found a solution.
I modified 'Prevent DoublePost 2 newpost_complete' , the code for pdp_spacer1.

this :
Code:

if ($vbulletin->options['pdp_spacer'] == 1)
                {
                        $pdptime = TIMENOW;
                        $prevtime = $doublepost['dateline'];
                        if ($vbulletin->options['pdp_bumpthread'])
                        {
                                $spacer = construct_phrase($vbphrase['pdp_spacer1'],
                                        vbdate($vbulletin->options['timeformat'],$pdptime),
                                        vbdate($vbulletin->options['timeformat'],$prevtime),
                                        vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
                                        vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
                                );
                        }

into:

Code:

if ($vbulletin->options['pdp_spacer'] == 1)
                {
                        $pdptime = TIMENOW;
                        $prevtime = $doublepost['dateline'];
                        if ($vbulletin->options['pdp_bumpthread'])
                        {
                                $spacer = construct_phrase($vbphrase['pdp_spacer1'],
                                        vbdate($vbulletin->options['timeformat'],$pdptime),
                                        vbdate($vbulletin->options['timeformat'],$prevtime),
                                        vbdate($vbulletin->options['dateformat'],$pdptime),
                                        vbdate($vbulletin->options['dateformat'],$prevtime),
                                        vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
                                        vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
                                );
                        }

The phrase wil now show:
---------- Post added 5 september 2009at 23:37 ---------- Previous post was 2 oktober 2008at 02:48 ----------

Additional you have to add two spaces after {3} and {4} in the phrase


Code:

---------- Post added {3} at {1} ---------- Previous post was {4} at {2} ----------

Hope this helps, maybe it can be added to the plugin?

Paul M 09-05-2009 10:57 PM

If the date of the doublepost is different to the date of the original post, then the date will be added to the timestamp. If the date is the same, then only the time is added. All you have done is added the date when its the same as the previous post. Which is not necessary IMO.

JoomlaCommunity 09-05-2009 11:29 PM

This is true but only if you have set the option

Bump Thread
Update the timestamp of a doublepost. to NO,

It will trigger the phrase:
Quote:

---------- Post added 6 september 2009 at 02:15 ----------
On top the original date and time is shown

We sure would go for that option but, as we tested, then the new post will not appear in the list unread posts. This will only happen if we set the option Update timestamp of a doublepost to YES.

If we choose this option, the phrase will show only the time of the new and the previous post like I posted before. I have tested this with older posts of a different date, there is no date shown in the phrase. Also tested it with a new install on a testforum, same result, no date is shown. Is there an option that I am missing?

------------------------EDIT----------------------

It seems to be a problem with the forum language that is set.
If the forum language is set to original english, the date is shown, our forum is set to Dutch.
Maybe somebody else recognizes this and can tell how to solve this?

----------------------EDIT-2--------------------------

It seems that if there is a locale set the date will not show in the phrase as I described before.
If I leave the locale empty and all date overrides it works like it should.

phatguy88 09-23-2009 09:01 PM

Sorry if this was asked already. When it automerges the doublepost the date it uses is the servertime. I am 7 hours behind. How do I get it to show based on my time settings?

Paul M 09-23-2009 11:56 PM

You dont, there is no timezone facility in the seperator functionality.

phatguy88 09-24-2009 12:05 PM

So I might as well delete this mod then. =/

Is there a similar mod with that feature?

Paul M 09-24-2009 04:53 PM

Your choice. There is no released mod that does it.
I think the only other DP mod does something like "Posted x days, hours, mins ago" rather than the actual date and time.

TheChaosFactor 09-26-2009 10:43 AM

That's awesome. Thank you.

imported_silkroad 09-29-2009 10:53 AM

Hi Paul.

Great mod, BTW.

We are running version 3.8.005 Prevent and plugin DoublePost 2 consistently causes a number of slow MySQL queries from this mod in the mysql-slow.log

We have been tracing a possible database deadlock issue and have been using the mysql-slow.log to look at our slow queries.

Did I miss any discussion about this in the thread?

Any thoughts?

imported_silkroad 09-29-2009 04:50 PM

FYI, Paul... here is an example slow query that we see in the logs:

Code:

# Query_time: 7  Lock_time: 0  Rows_sent: 1  Rows_examined: 26769
SELECT t.forumid, t.threadid, t.title, t.replycount, t.lastposter, t.lastpost
FROM thread AS t
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = t.threadid AND type = 'thread')
WHERE forumid = 30 AND lastpost > 1021388850 AND visible = 1 AND open <> 10
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
LIMIT 1;


Paul M 09-29-2009 05:14 PM

That query is not from this modification.

imported_silkroad 09-29-2009 05:25 PM

Thanks Paul. Sorry for the confusion. I'll keep searching!

Spenser 10-13-2009 11:26 AM

If more than one guest answers, the posts are merged, too. Is there a way to check the ip-address to prevent replies from different guests will be merged?

Paul M 10-13-2009 11:49 AM

Hmmm.

This was never designed with guest posting in mind, since that is very rare.

I'll have a look when I can to see if it can be modified to take that into account.

Gav-n-Tn 11-02-2009 06:02 AM

So far so good. Looks like a VERY helpful mod.

Sidewindr 11-29-2009 03:19 PM

elieve there may be an issue with the Automerge for forums where posts go into a moderation queue... I think maybe it is using the aproval date not the post date .. see this thread..

http://www.ls1.com.au/forum/showthread.php?t=128872

For some reason the OP and thread starter has the #2 post after a merging even though the post above it was posted after the OP. The thread should consist of 3 posts but it has merged the first and third posts thinking its a double post.

Any idea why this is happening ?? :confused: :D

Paul M 11-29-2009 04:46 PM

Quote:

Originally Posted by Sidewindr (Post 1922532)
Any idea why this is happening ?? :confused: :D

Thats how its programmed. It ignores moderated posts.

BBF 12-02-2009 08:46 AM

does it work with vb4?

Paul M 12-02-2009 11:47 AM

No.

bhanuprasad1981 12-03-2009 07:08 AM

i had issue with my quick reply , using quick reply leads to blank page :( i removed this mod everything back normal :( maybe some conflicts with other mods ?

Pessimist 12-14-2009 11:33 AM

Paul M, this hack not work properly with vBShout. Can you fix this problem?


All times are GMT. The time now is 12:39 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.01624 seconds
  • Memory Usage 1,838KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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