![]() |
meta description SEO
I looked into this a while ago. Decided today it has to be done!
The meta description tag of the user profile pages needs to have some personalized information. So I need to query the username and maybe other userfields in the header of my forum, if the page is a profile. The if-condition is not the problem. But from what I remember, there is no hook for a plugin to add such a query to the header. |
You can probably use one of the global_* hooks.
|
I found the old thread again:
https://vborg.vbsupport.ru/showthread.php?t=200639 Back then, I did not know that much about plugins. Will look into it. --------------- Added [DATE]1253812060[/DATE] at [TIME]1253812060[/TIME] --------------- I hooked it into global_setup_complete, as this seems to be the place where I can query the data. $userinfo['userid'] is not recognized at this stage, though. PHP Code:
Code:
Invalid SQL: global_start gives me the same result. global_complete does not recognize the query: Quote:
I don't get this to work. :( Suppose I take the userid from the get variable. That should work. I can hook this into global_setup_complete or global_start. global_comple will give me an error. PHP Code:
|
All times are GMT. The time now is 03:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|