I include a file but its showing me this error
Quote:
My file code is PHP Code:
|
I''m not sure where query_read_slave is loaded. Did you try loading the hook in global_start?
|
You should be using $vbulletin->db... to access queries, data, and the like... try this code:
PHP Code:
|
Can I add 2 plugins like this?
--------------- Added [DATE]1332106295[/DATE] at [TIME]1332106295[/TIME] --------------- Nevermind, got it. All you have to do is change bot $php_include variables and the array name to the same thing. |
Thanks it works perfectly, they should update or make more clear the vBulletin manual...
--------------- Added [DATE]1332297428[/DATE] at [TIME]1332297428[/TIME] --------------- Hello Crimm, Thanks very much for your post about including PHP files ... It was much more clear than in the manual. I followed your instructions and everything works fine for the forum, but in the CMS the PHP file is not included. I tried to fix it by adding: PHP Code:
|
Hello,
If would like to use many PHP files on URL can we do something like: PHP Code:
?????????? |
You should be able to do this (use ob_get_clean() instead of ob_get_contents()):
Code:
ob_start(); I think if you want you could also put a preRegister call after each call to ob_get_clean() so you wouldn't need a bunch of different variables. |
I've tried the following code. But whenever you click a user thread, no matter what thread you click, it always brings us to the same thread.
Code:
ob_start(); |
Hello guys,
I finally achieved it!! I did a small tutorial about making External PHP files that can be used as Widgets in vBulletin CMS. I do not know if I can post links here ... but here is the tutorial ... I think someone might find it useful in the future. http://www.hyperlinkbuilding.org/con...idget-Tutorial Greetings, Eddie --------------- Added [DATE]1341004474[/DATE] at [TIME]1341004474[/TIME] --------------- I have to say something else ... Thanks a lot for trying helping me!! I will help others whenever I can. |
I am helping a friend out to try and display his wordpress header above his vb forums header, im using the code below in the plugin and calling it in the header template:
Code:
ob_start(); Code:
Warning: require_once() [function.require-once]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in [path]/includes/class_bootstrap.php(106) : eval()'d code on line 3 |
All times are GMT. The time now is 05:23 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|