Quote:
Originally Posted by Thug
on this all iget is
http://www.globalvibez.com/test.html
code is
PHP Code:
<?php chdir('./forum'); require_once('./vBExternal.php'); ?>
<?php output_NewestMembers(5); ?>
<table cellpadding='0' cellspacing='0' border='0'> <tr> <td width='1%' style='white-space:nowrap'><b>Username:</b> <a href='/forum/member.php?u={userid}'>{username}</a></td> <td width='1%' style='white-space:nowrap'><b>Posts:</b> {posts}</td> </tr> </table>
<?php output_NewestMembers(5); ?>
|
You need to put in your forums path in the
PHP Code:
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
section
create a blank php file and enter this into it
PHP Code:
<? print $PATH_TRANSLATED; ?>
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">