![]() |
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: https://vborg.vbsupport.ru/external/2014/10/17.png and this is content of mostrarusers.php PHP Code:
|
Try using hook location parse_templates instead.
|
I tried, but not work.
I forgot mention that when I do, the forum shows white. Thanks. |
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"); |
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. |
Quote:
|
@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. :)
|
Quote:
|
Hi,
I tried was said by @KH99 but does not work, the forum show white as before. Content of mostrarusers.php PHP Code:
|
Not is my intention pressure for obtain answer more faster or double post, but please don't forget help me with my problem. Thanks.
|
All times are GMT. The time now is 08:12 AM. |
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:
|