The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post dateline from bbcode plugin
Hi,
I need a fixed-in-time dateline time() that does not change when someone quotes a reply. Example: 1) Bob writes a post today. BBcode works, and uses time() to generate a dateline. 2) John replies to Bob's post at a later date, and the BBcode needs to reference the fixed-in-time time() from the original post 1, but instead it generates a new dateline as of John's reply. There is no $post[dateline] in the bbcode_create. The goal is for the bbcode to generate a dateline based on the POST dateline, and not the current system time(). Any help greatly appreciated. |
#2
|
|||
|
|||
You could try putting "global $post;" in your plugin code.
|
#3
|
|||
|
|||
Thx. Tried that, still no $post[dateline]
--------------- Added [DATE]1334631758[/DATE] at [TIME]1334631758[/TIME] --------------- BTW, any unique number that is unique to every post would be fine. |
#4
|
|||
|
|||
Well, there's the postid - in fact when you press the "quote" button you get bbcode tags with the postid in there. For instance if I quote your post above you get this:
[QUOTE=ctrlbrk;2320761]... but I think that works by writing the postid into the code for the Quote button. Thinking about it more, trying to use $post probably wouldn't work because it would be the information for the reply being created, not the post being quoted. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|