The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook for Visitor Message Display
Hi All,
I would like to inject an additional field into the $message variable used for displaying visitor messages on profiles, however I cannot seem to find the right hook to let me do it. Which hook would allow me to intercept the $message variable so that I can refer to my additional field in the memberinfo_visitormessage template? Thanks in advance for any assistance. Adam |
#2
|
||||
|
||||
Did you take a look at class_visitormessage.php? You can see the hooks called there - visitor_messagebit_display_start and then visitor_messagebit_display_complete
|
#3
|
|||
|
|||
Thanks Lynne,
I ended up working it out, there was a condition in my plugin that was stopping my debug code from executing. I didn't take into account that the $vbulletin variable hadn't been set from the global at the point where the visitor_messagebit_display_complete hook was placed, and as such was comparing my username with null. Adam |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|