vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Author Metatag Help Please (https://vborg.vbsupport.ru/showthread.php?t=323720)

Budget101 10-29-2016 10:24 AM

Author Metatag Help Please
 
I'm trying to add a relevant Author tag to the metadata- does anyone know how to call the actual userid (aka the Real Author) of the post when doing so?

I've add the meta-tag for author in the headinclude- but currently just have a single name (mine). I'd like it to pull the username from whomever posted the article or thread so proper attribution is added. Any ideas??

<meta name="Author" content="how-do-I-call-the-vbulletin-username-here" />


**UPDATE**

I've tried:
<meta name="Author" content="{vb:raw post.username}" />

Here are more that I've tried, without success:

{vb:rawphrase post.username}

{vb:raw post.username}

{vb:link member, {vb:raw bbuserinfo}}

{vb:raw username}

{vb:raw bbuserinfo.username}

{vb:rawphrase username}

{vb:var userinfo.username}

{vb:raw userinfo.username}

{vb:raw memberinfo.username}

{vb:link member, {vb:raw memberinfo}}

{vb:raw thread.postusername}

{vb:rawphrase {vb:raw userinfo.username}}

{vb:raw bbuserinfo.musername}

{vb:rawphrase started_by_x_y_z, {vb:raw thread.postusername}}

{vb:rawphrase started_by_x_y_z, {vb:raw userinfo.username}}

{vb:raw post.musername}

Any Help or Ideas guys? Thanks in Advance, much appreciated!

Lynne 10-30-2016 04:38 PM

You are putting this into which template? If into the headinclude, then I don't believe the first post userid (or username) is available for use unless you create a hook to do a quick query for it. Try the vbcms_page template at the top. But don't use the bbuserinfo variable as that is the viewer.


All times are GMT. The time now is 05:28 AM.

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.00922 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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