hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:
Quote:
Warning: chdir(): No such file or directory (errno 2) in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 2
Warning: main(./vBExternal.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3
Fatal error: main(): Failed opening required './vBExternal.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3
i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.
after that i've used once of the code present in the file usage.txt:
(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67
and this is the screen of the files structure on my space:
root:
./vb:
the file VBexternal.php is on the bottom of the page.
For Newest Threads the default pulls from all forums if left blank. Is there a easy way to pull from all forums accept for select ones.
i.e. I want all Newest Threads from all forums accept for number 1 and 5
name it path.php and upload it to the root of your server
now browse to your path.php file in your web broswer and you will see your servers path, this is what needs to be entered into that section eg:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php chdir('/<server path from path.php file goes here>/forum'); require_once('/<server path from path.php file goes here>/forum/vBExternal.php'); ?> <html xmlns="http://www.w3.org/1999/xhtml">
Some servers can be case sentive so make sure the file name on the server is in exactly the same lettercase as the code above. also your page needs to have the .php extension, not .html
another way is to create a blank php for it - save the file with any name eg: vbexternal_script.php
PHP Code:
<?php chdir('/<server path from path.php file goes here>/forum'); require_once('/<server path from path.php file goes here>/forum/vBExternal.php'); ?>
and then insert this into your webpage
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? include 'vbexternal_script.php'; ?> <html xmlns="http://www.w3.org/1999/xhtml">
hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:
i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.
after that i've used once of the code present in the file usage.txt:
(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>