vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   What is the code for Dateline (https://vborg.vbsupport.ru/showthread.php?t=306380)

dizzynation 12-28-2013 09:02 PM

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!

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}&amp;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 &amp;

dizzynation 12-28-2013 11:00 PM

Quote:

Originally Posted by Lynne (Post 2471043)
You do want to escape the ampersand in the URL by using &amp;

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

Quote:

Originally Posted by Lynne (Post 2471097)
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


All times are GMT. The time now is 01:13 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.01119 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete