The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hooks
Hooks are completely new to me. (Meaning I have never tried to implement one anywhere on my site on my own. lol)
Is there a way to hook in somewhere so specific pages that I create or modify (in PHP) will allow that page to use the custom profile fields if I call them in a template? |
#2
|
|||
|
|||
Quote:
Basically, it's adding php code to certain places in php files without actually modifying those files. Great thing once you get to know it. |
#3
|
||||
|
||||
Other users or the user who is browsing the page? If its the user who is browsing the page, in templates
$bbuserinfo[fieldX] in templates $vbulletin->userinfo['fieldx'] |
#4
|
||||
|
||||
Thanks Anthony, I will read up on that. (I always forget to check and see if "my question" is covered in the manual.)
Zachery, I am actually creating custom fields that I want to be displayed under certain conditions. Currently, I am trying to get this to work with the Journal Modification. Based on a conditional the user selects in their UserCP, I want either a left or a right column to be displayed. The problem I am having is that the information is not being processed. It acts as if the conditionals aren't there at all. I am trying to hook in so that it will be parsed so the journal recognizes the custom fields. I viewed the source and saw that hooks were being used in various places, so I am thinking if I use the correct hooks, I can have that info processed before the page is output. |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
I have not been able to figure this out. lol I even made the decision to post on vbulletin.com to get the hooks name. Unsurprisingly, I was redirected to post on this site.
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|