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)

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.


All times are GMT. The time now is 12:38 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.01354 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (1)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
  • (10)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