Mithan
02-13-2004, 09:27 PM
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:
$bericht=bbcodeparse2($pagetext,"","","1","1","1");
in the Pluh News script.
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:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require("./global.php");
require("./PluhConfig.php");
require("./admin/config.php");
Now, that same code will not work, and I have tried the following:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require("/home/virtual/site22/fst/var/www/html/forum/global.php");
require("./PluhConfig.php");
require("./includes/config.php");
and a LOT of other variations.
PS:
chdir switches properly as tested with echo(getcwd());
I even followed through the vB3.0 code and added some absolute URL's into global.php, config.php, db_mysql.php and init.php to get it to keep passing through its commands. It kind of worked, but eventually ended up just causing nothing to load anyways...
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?
$bericht=bbcodeparse2($pagetext,"","","1","1","1");
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.
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:
$bericht=bbcodeparse2($pagetext,"","","1","1","1");
in the Pluh News script.
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:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require("./global.php");
require("./PluhConfig.php");
require("./admin/config.php");
Now, that same code will not work, and I have tried the following:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require("/home/virtual/site22/fst/var/www/html/forum/global.php");
require("./PluhConfig.php");
require("./includes/config.php");
and a LOT of other variations.
PS:
chdir switches properly as tested with echo(getcwd());
I even followed through the vB3.0 code and added some absolute URL's into global.php, config.php, db_mysql.php and init.php to get it to keep passing through its commands. It kind of worked, but eventually ended up just causing nothing to load anyways...
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?
$bericht=bbcodeparse2($pagetext,"","","1","1","1");
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.