The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hooking in Custom Variable on FORUMHOME
Hello,
I'm trying to hook in a custom field from the user table, which is used to generate a different image next to usernames in the active users section at the bottom of the forum home page. I have read and tried to execute the following article to no avail: https://vborg.vbsupport.ru/showthread.php?t=228078 On the FORUMHOME template is the following code: PHP Code:
PHP Code:
Here is the plugin I tried making to make the user information available in the FORUMHOME template: PHP Code:
Does anyone have any suggestions as to what I am doing wrong or if there is an easier way to handle this? Thanks for looking. --------------- Added [DATE]1377541481[/DATE] at [TIME]1377541481[/TIME] --------------- I got it to work. What I did was edit the query found in forum.php to include my custom field in the SELECT statement. Then I was able to use loggedin.star to output the per-user value. PHP Code:
Now I'm facing an issue where it works for everyone but for the username of the person viewing the forum. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|