The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
VB 3.7
In the custom template I have this: Code:
<title>$Year $MakeOther $ModelOther $Trim Gas Mileage ($vehiclenickname) - $vboptions[bbtitle]</title> You can see it here in google: http://www.google.com/#hl=en&q=em-fu...fp=pBEVNRsPIgM Ideas? Thanks! |
#2
|
||||
|
||||
![]()
It doesn't work fine when viewing the actual page either. This is in your source code:
HTML Code:
<title> Gas Mileage () - EcoModder.com</title> |
#3
|
|||
|
|||
![]()
Can you elaborate a little on that? I know php decently but find working with VB a little difficult. Is there a standard solution to this issue (I assumed it was common)?
Thanks! --------------- Added [DATE]1250012958[/DATE] at [TIME]1250012958[/TIME] --------------- Also, when I look at a page with firebug, I see this as the title tag: HTML Code:
<title>1991 Honda CRX DX Gas Mileage (Vegan Powa!) - EcoModder.com</title> Sorry for being a newb |
#4
|
||||
|
||||
![]()
Perhaps your page is cached and that is why you see the whole title?
I don't know what your code is, but the variables you use in the <title> must be defined before they may be used. So, you need to define them before the header template is evaled which is in the global.php page (I am pretty sure). So, pick a plugin to use that gets evaled *before* the header template is evaled and define those variables in that plugin. |
#5
|
|||
|
|||
![]()
Yeah, I get that I need to define it first, I'm just a little confused as to the work flow. Also, I did a hard refresh to ensure I wasn't seeing a cached page, still shows the proper title for me though.
Anyway, here's my code. First, this fetches the data: PHP Code:
PHP Code:
HTML Code:
<head> <meta name="description" content="$foruminfo[description]" /> <title>$Year $MakeOther $ModelOther $Trim Gas Mileage ($vehiclenickname) - $vboptions[bbtitle]</title> $headinclude </head> ![]() --------------- Added [DATE]1250015630[/DATE] at [TIME]1250015630[/TIME] --------------- O I see! It seems to be a problem with being logged in or not. Ideas? --------------- Added [DATE]1250015872[/DATE] at [TIME]1250015872[/TIME] --------------- Seems to be fixed now, let me know if you can see the titles!? For some reason my partner had made the sql query that fetches those variables only display for the owner of the pages in question, oops! Thank you so much for helping me figure it out ![]() |
#6
|
||||
|
||||
![]()
I see it now! Looks like you got the issue cleared up.
![]() |
#7
|
|||
|
|||
![]()
Sweet, thanks again for the help!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|