The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to export php code to vbulletin?
Dear Vbulletin users,
I did read this https://vborg.vbsupport.ru/showthread.php?t=228928 And this https://vborg.vbsupport.ru/showthread.php?t=217569 But nothing works All i want to do is that this code works <?php $userfuncties->showMenu (); ?> Why does it have to be so complicated for a simple task? Scripts works fine when its not in vbulletin... |
#2
|
|||
|
|||
Hey Mordor1,
I just conclude a thread where I was running into a similar issue. I was a little frazzled that PHP functions wouldn't work in the templates either in v4.0. This has worked for me and it's not that much more complicated. https://vborg.vbsupport.ru/showthread.php?t=243896 basically, in your specific template file (for example: 'header'), you create a new variable: HTML Code:
{vb:raw show_menu} PHP Code:
This is based off of what I just accomplished, so there may be some errors. But maybe this will help as well. -Brent |
#3
|
|||
|
|||
Tanks thought it dint worked error:
Fatal error: Call to a member function showMenu() on a non-object in /www/htdocs/ontwikk/forum4/includes/init.php(331) : eval()'d code on line 2 I had to enable //define('DISABLE_HOOKS', true); (in config.php) even the admin panel was broken. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|