The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vbulletin Error with custom PHP page
Hello, in question with this thread; https://vborg.vbsupport.ru/showthrea...78#post1814178
I have managed to make it so that i can import the php page using $status using this code in a plguin; ob_start(); include('status.php'); $status = ob_get_contents(); ob_end_clean(); in the global start. When using this code here; PHP Code:
Vbulletin will return an error of; Quote:
What's the problem? |
#2
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/troubleshoot_mysql_goneaway" target="_blank">Lost connection to MySQL server during query</a>
|
#3
|
|||
|
|||
thanks for the responce, but i can't understand how to fix it.
The script i mad has a time out of 2 seconds, so that sholden't be a problem, should it? |
#4
|
||||
|
||||
Are you putting that exact code into the global_start plugin? You should really not do echos but instead assign it to variables and spit the variables out in a template. I don't know if that is the problem, but it might help. Where is that database call from cuz it isn't in your plugin.
|
#5
|
|||
|
|||
Right, the way it is configured is as below
Plugin; Then in my FTP i have a file called " status.php " which is what the plugin refers too. This allows me to have $status Within this status.php i have the following code; PHP Code:
Then on my FORUMHOME template i have this Quote:
Doing all of that stops the ENTIRE forum from working, not just the home page. which returns the error off; Quote:
|
#6
|
||||
|
||||
I would not be doing it that way at all, so I don't know that you want to listen to my advice. But, if you only want this on the forumhome page (index.php), then I would pick a plugin that is only called on that page and put the php in there and assign the 'echo' outputs to variables and then eval the template at the end of the plugin to spit it all out in the forumhome page somewhere.
ie - a template called "my_template": HTML Code:
<table width="100%" border="0" align="center"> <tr> <td height="21"><p><a href="http://dhgaming.com/call-duty-4/6565-call-duty-4-server-up-pc.html"><center><img src="images/head/RS_private.PNG" border="0" /></center></a> <center> $var1 </center> </p></td> <td><a href="http://dhgaming.com/"><center><img src="images/head/liveforspeed.png" border="0" /></center></a> <center> $var2 etc PHP Code:
I have NOT tried this at all and I'm sure it would need some tweeking including figuring out which hook location is best. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|