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 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?


All times are GMT. The time now is 10:51 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.01405 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_code_printable
  • (11)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