The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with PHP, Server & vB3.0 (trying to get pluhnews to work)
Hi.
I have moddified PluhNews to work with vb3.0 and the results can been seen here. www.mithan.com Basically the code works, except there is a small problem with Global.php not loading, which means that the text isn't parsing. The problem is, I can not get the global.php file to work, as it wont "require" properly, meaning that I cant use the following parse command: PHP Code:
With version 2.3.4 of vBulletin, global.php was working ok (and thus pluhnews). Now it wont work with 3.0... The original code I had was this: PHP Code:
Now, that same code will not work, and I have tried the following: PHP Code:
PS: chdir switches properly as tested with PHP Code:
Is there an issue with my Server and its settings possibly? I am hosted by www.Dot5Hosting.com and I am wondering if they have some security settings preventing this. I just don't get it, since vb2.3.4 was working correctly. Alternativly: Is there anyway I can get this code to work without calling Global.php? PHP Code:
Ideally, I would like to find out why I can not call up global.php and get it to work properly. I had this same trouble a year ago as well. I managed to get PluhNews working, but I couldn't add a remote vBulletin login on the front page of the site. It worked on westhost.com but wouldn't work when I moved to dot5hosting.com. Again, thanks to anybody who can help me out. |
#2
|
||||
|
||||
Did your functions_bbcodeparse.php?
Did you try parse_bbcode($pagetext, 'nonforum') ? I think it might be a problem with cookies being set when the vB backend loads up ... |
#3
|
|||
|
|||
Kirby, thanks for the reply.
I did not try that. How would I exactly? Im not a PHP Expert by any means... Right now Im using this: $bericht=$pagetext; then outputing: $bericht Which gives you the unparsed code on the front of my site. |
#4
|
|||
|
|||
I got this working by adding:
chdir("/home/virtual/site22/fst/var/www/html/forum/"); require("/home/virtual/site22/fst/var/www/html/forum/global.php"); chdir("/home/virtual/site22/fst/var/www/html/"); To my main index.php file. My site is broken into pieces, and I had tried that a year ago and it didn't work. Now it did... Weird. |
#5
|
|||
|
|||
Turns out my fix didn't entirely work:
Turns out my fix didn't work I get the following SQL Errors: Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 205 Warning: mysql_error(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 350 Warning: mysql_errno(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 351 Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 205 Warning: mysql_error(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 350 Warning: mysql_errno(): 6 is not a valid MySQL-Link resource in /home/virtual/site22/fst/var/www/html/forum/includes/db_mysql.php on line 351 BTW, I added (in addition to moving the global.php require to index), this code: require_once('./includes/functions_bbcodeparse.php'); $bericht=parse_bbcode2($pagetext,"1","1","1","1"," 1"); Any ideas? |
#6
|
|||
|
|||
I've been having the same problem with some of my custom scripts, they all worked fine before upgrading to v3.
Can anyone shed any light? Cheers |
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Thanks, i've just taken a look and i've made the changes advised and I still appear to be receiving php/mysql errors.
For example... Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site3/fst/var/www/html/forums/setups/mysqltest.php on line 11 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site3/fst/var/www/html/forums/setups/mysqltest.php on line 13 PHP Code:
|
#9
|
|||
|
|||
Anyone?
|
#10
|
||||
|
||||
I would be interested in this as well, I have the same problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|