![]() |
query_first_slave() error when trying to use vBulletin API outside of vBulletin
Hi,
Since the past two days, the only thing I'm trying to do with vBulletin is to display a login form or a user information box (when the user is logged in) on every pages of the site, including those not in vBulletin. That's it -- nothing fancy. I do not need or want full integration capabilities -- just display a user information box or a login box whether the user is logged in or not. I followed a tutorial I found on this site and tried to make a page outside of vBulletin's directory and still use vBulletin's API. Even though I followed the instructions to the letter, I can't make a page outside vBulletin. I get the following error message: Quote:
Any help will be appreciated. Thanks in advance! |
You should post the code so people can see it.
|
Here it is:
Code:
<?php Quote:
|
What are you spitting out though? I see you eval your template pn_test, but nothing is there to go into pn_test - perhaps post that template. Also, I hope you have a closing php tag at the end ("?>")? And, I don't think you need the line "print_output($navbar);"
|
I usually don't put closing tags when I only have PHP code in my file. See "Instruction separation" in PHP documentation.
Execution errs at "global.php". Anything after that is not executed. --------------- Added [DATE]1218043772[/DATE] at [TIME]1218043772[/TIME] --------------- I forgot to mention the custom template "pn_test" simply contains "TEST". |
Does it work if you do the following:
PHP Code:
|
No. Still the same happens -- no different.
|
What version of VB are you running ?
|
Um, I just noticed something.... you didn't really create a template that only has the word "TEST" in it, did you? It needs to be html compliant. ie:
HTML Code:
$stylevar[htmldoctype] |
I really don't see how the following can work:
PHP Code:
|
All times are GMT. The time now is 06:30 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:
|