View Full Version : What is the code for Dateline
dizzynation
12-28-2013, 09:02 PM
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!
Lynne
12-28-2013, 09:19 PM
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
12-28-2013, 09:31 PM
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.
Lynne
12-28-2013, 10:08 PM
You do want to escape the ampersand in the URL by using &
dizzynation
12-28-2013, 11:00 PM
You do want to escape the ampersand in the URL by using &
Since I am using the memberaction_dropdown which is registered, is there a code for dateline?
Lynne
12-29-2013, 03:27 AM
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?
dizzynation
12-29-2013, 04:51 PM
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?
Dateline for profile picutres/avatars -
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?
Lynne
12-29-2013, 05:20 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=228078)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.