![]() |
|
|
Thread Tools |
|
#1
|
||||||||||||||||
|
||||||||||||||||
|
How to change the meta description? vboptions[description]?
Folks I have a custom template which I use to output custom pages outside normal forum functionality.
I want to change the keywords and description metas which in the headinclude look like
My php script does this at the top:
and after building the page into $page, then
The template looks like this:
In the php script, I tried $vbulletin->options['description'] = "AVForums reviews"; and $vboptions['description'] = "AVForums reviews"; and neither work. Any ideas please?
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Running several hacks with thanks to vBulletin.org and its members. No members have liked this post.
Last edited by Spinball : 03 May 2011 at 14:49. |
||||||||||||||||
|
#2
|
||||
|
||||
|
Anyone?
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Running several hacks with thanks to vBulletin.org and its members. No members have liked this post.
|
|
#3
|
||||
|
||||
|
Maybe you could make a plugin on hook parse_templates like this:
Or maybe in your code you could do a preg_replace() on $headinclude after global.php is included, and replace the meta tags. No members have liked this post.
Last edited by kh99 : 05 May 2011 at 14:42. Reason: should have been headinclude |
||||
|
#4
|
||||
|
||||
|
Thanks. It's not until I'm a bit into the script that I know what description I want to have. It's kind of a problem and I think I might have to create a custom version of global.php just for these special pages.
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Running several hacks with thanks to vBulletin.org and its members. No members have liked this post.
|
|
#5
|
||||
|
||||
|
OK, how about this: in the headinclude template put
around the meta tags, and in your template put a new variable where you want the description meta tags to be (or maybe copy the entire meta tag block from headinclude to your template and replace the variables as needed), then you have until the template eval to set that variable. No members have liked this post.
Last edited by kh99 : 05 May 2011 at 22:05. |
||||
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 15:38.


