Quote:
Originally Posted by Paul M
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?