The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add PHP code in navbar template
Dears members of this community
I need help. I tried load php code in navbar template directly inserting code in template, to see that did not work, I started investigating. When he was investigating, has led me to do the following: and this is content of mostrarusers.php PHP Code:
|
#2
|
|||
|
|||
Try using hook location parse_templates instead.
|
#3
|
|||
|
|||
I tried, but not work.
I forgot mention that when I do, the forum shows white. Thanks. |
#4
|
|||
|
|||
Do you also have a file called samp_query.php on your server? The code you posted tries to include that file. It looks like it's trying to get it from the same directory as the main script, so you might have to change the line in mostrarusers.php to something like:
Code:
require_once($_SERVER['DOCUMENT_ROOT'] . "/foro/samp_query.php"); |
#5
|
|||
|
|||
I upload samp_query.php in /forum/ but I don't add [document root] in requiere_once on mostrarusers.php.
I will comment when I get home. Thanks. |
#6
|
|||
|
|||
That could be the right place, I'm not sure. If you add the path as above, then you'd want it in /foro, of course.
|
#7
|
|||
|
|||
@Kh99, I do not want to interfere with your operation here, but this looks like "team speak" code (if you wanted to know) -- not that it directly relates to the problem being resolved. I leave him in your capable hands.
|
#8
|
|||
|
|||
No, please help if you can.
|
#9
|
|||
|
|||
Hi,
I tried was said by @KH99 but does not work, the forum show white as before. Content of mostrarusers.php PHP Code:
|
#10
|
|||
|
|||
Not is my intention pressure for obtain answer more faster or double post, but please don't forget help me with my problem. Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|