The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
You can probably use one of the global_* hooks.
|
#3
|
|||
|
|||
![]()
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: SELECT field6, field1, field9 FROM vb_userfield WHERE userid LIKE; 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:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|