The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
What is the code for Dateline
I am trying to figure out what code calls the Dateline
{vb: dateline} ? Trying to add a url string but I need to add the dateline in as well. Thanks in advance! |
#2
|
||||
|
||||
It depends on the template and whether or not it has been defined and registered for use in that template or not. If not, then you would need to write a plugin to define/pre-register it.
|
Благодарность от: | ||
dizzynation |
#3
|
||||
|
||||
Thanks Lynne,
Just as an example, <a href="{vb:link member, {vb:raw userid}}"><img src="{vb:raw vboptions.bburl}/image.php?{vb:raw session.sessionurl}u={vb:raw userid}&type=profile" alt="" class="post_avatar" /></a> I would assume it is this, right where the amp is - but doesnt that stand for "&" I am currently testing my mod on a registered template. |
#4
|
||||
|
||||
You do want to escape the ampersand in the URL by using &
|
#5
|
||||
|
||||
Since I am using the memberaction_dropdown which is registered, is there a code for dateline?
|
#6
|
||||
|
||||
I very much doubt it is even defined to be used in that template. And what dateline are you looking for - the dateline of the post? The dateline for the current time on the server? The dateline for the current time the user is seeing?
|
#7
|
||||
|
||||
Quote:
I think once I register it then all will be good. I want my custom memberaction_dropdown to show only on articles / blogs - Lynne, could you point out which php files I would need to register them on? |
#8
|
||||
|
||||
You need to create a plugin to do it. Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|