![]() |
rewrite variable from $name to $vbulletin->name
Hi,
what are the other ways to get the variables: $stylevar[] and $vbphrase[] like the format $vbulletin->var[''] because I need those for my external PHP which I have includes in the template (and I can't seem to access $vbphrase[] just like that) Sincerely, Baris |
$vbphrase can be accessed (almost) anywhere in vBulletin-powered scripts. There is no class equivalent.
|
Unfortunately, it does not work. For example if I call $session[dbsessionhash] in my PHP file I get nothing, but if I call $vbulletin->session->vars['dbsessionhash'] I get what I want.
I have included a PHP file with the plugin system, like explained on http://www.vbulletin.com/forum/showthread.php?t=173937 Then in the template I call the output of my external script and that works fine. But when I want to access $vbphrase[good] for example, I get nothing. So that is why I hoped there was a rewrite because that worked with the session info (also with userinfo). So how can I call $vbphrase[good] in my external PHP file which I include in the template with the plugin option? |
There are a few variables that don't have class equivalents ($vbphrase being one of them). $session does have its equivalent, therefore, you can call it via $vbulletin->session->vars. Make sure that you've included the correct phrase groups.
|
Quote:
Is that also the case for $stylevar or is there a class for that one? Sincerely, Baris |
All times are GMT. The time now is 03:29 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:
|