PDA

View Full Version : Author Metatag Help Please


Budget101
10-29-2016, 10:24 AM
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.