View Full Version : Get username in META Tags ?
SaN-DeeP
04-18-2006, 09:21 PM
How can you get the username in your forum meta tags ?
For User Profile Pages, I would like the username to also appear in Meta Description and Meta Keywords tags.
Thanks.
stonyarc
04-19-2006, 12:08 AM
quick fix is to add $bbuserinfo[username] in the common templates headinclude but that will do it on the every page.
To do it just for the MEMBERINFO you'll need to define a custom headinclude specifically for that page.
Not too hard to do.
SaN-DeeP
04-19-2006, 01:00 AM
I tried adding <if condition="THIS_SCRIPT == 'member'"> to headinclude template with my customized keywords and descriptions but only problem is getting the specific username under those keywords and descriptions.
$bbuserinfo[username] will display name of the user who is viewing user profile and not the user profile (username).
viewing following link -> http://forums.techarena.in/member.php?u=954 as a guest user will display Unregistered in meta tags.
stonyarc
04-19-2006, 07:13 AM
as the member url includes the userid you can work with that one
and retrieve the username that way with a plugin
SaN-DeeP
04-27-2006, 11:07 AM
trying best to get this to work with lot of variations, but no luck yet.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.