![]() |
Defining global variables in plugin.
What I need is a plugin that defines global variables, to be used for userprofilefields.
This needs to be done in a way that the variables are loaded in EVERY template. So I think it should be a plugin that uses the "global_start" hook. However I cannot get it working. Here is an example of what code is present in some of my templates (such as postbit_legacy, memberinfo, search_resultbit etc etc). Code:
<if condition="$pf_job"><img src="job.gif" /></if> This is what I have so far: PHP Code:
I don't want to modify the source php files, it HAS to be done in a plugin. thx in advance. |
there's got to be SOMEONE who knows more about this kind of stuff :confused:
im pretty much stuck here |
There is no such array as $post available to the global_start hook, you would need to use $vbulletin->userinfo['field14'] etc.
|
No luck :(
plugin hook: global_start PHP Code:
Code:
<if condition="$pf_level">$pf_level</if> |
All times are GMT. The time now is 01:10 PM. |
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:
|