The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
adding conditional in headinclude
I would like my member profile pages to have customized meta keywords and descriptions with the following modified code:
Code:
<meta name="keywords" content="$userinfo[username],$vboptions[keywords]" /> <meta name="description" content="$userinfo[username] $vboptions[description]" /> The question I have is, what is the variable to use that will call the memberinfo template? (see below) Code:
<if condition="$show[????]"> ****NEW META CODE *** <if> thanks |
#2
|
||||
|
||||
<if condition="THIS_SCRIPT == 'member'">
your stuff </if> |
#3
|
||||
|
||||
thanks, but now it works partially for my desired result
Here is the added code in my headincludes template Code:
<if condition="THIS_SCRIPT=='member'"> <meta name="keywords" content="$userinfo[username],$vboptions[keywords]" /> <meta name="description" content="$userinfo[username] $vboptions[description]" /> But when I load the profile page of a member in my browser and view the HTML code, the username doesnt show up in the meta tags. Instead, I see something like this: Code:
<meta name="keywords" content=",keyword1,keyword2,keyword3" /> <meta name="description" content=" description..." /> thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|