I get this as an error please help
Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/url.com/httpdocs/index.php on line 6
[QUOTE]
Originally posted by Nakkid
01. open homeindex.php. place:
PHP Code:
chdir("/home/yoursite/forum");
above:
PHP Code:
require("./global.php");
02. find:
PHP Code:
$editlink="<a href=\"newspost.php?s=$session[sessionhash]&action=editnews&newsid=$gnresults[newsid]\">(edit this news item)</a>";
and add in front of it your site location:
PHP Code:
$editlink="<a href=\"$bburl/newspost.php?s=$session[sessionhash]&action=editnews&newsid=$gnresults[newsid]\">(edit this news item)</a>";
03. replace all { imagesfolder } code with your actual folder location (http: //www.yoursite.com/forum/images) or simply edit the imagesfolder variable to point to the full url.
04. find:
PHP Code:
$pagenav = getpagenav($totalnews,"homeindex.php?s=$session[sessionhash]&perpage=$perpage");
and replace the homeindex.php with the name of your file, for example index.php.
**************************
01. open newspost.php. find the code:
PHP Code:
eval("standardredirect(\"".gettemplate("redirect_postnews-done")."\",\"homeindex.php?s=$session[sessionhash]\");");
and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php). this will make it look like:
http: //yoursite.com/index.php
02. find:
PHP Code:
eval("standardredirect(\"".gettemplate("redirect_editnews")."\",\"homeindex.php?s=$session[sessionhash]\");");
and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php).
03. find:
PHP Code:
if ($deletenews=="yes") {
$DB_site->query("DELETE FROM news WHERE newsid='$newsid'");
eval("standardredirect(\"".gettemplate("redirect_deletenews")."\",\"homeindex.php?s=$session[sessionhash]\");");
} else {
eval("standardredirect(\"".gettemplate("redirect_nodeletenews")."\",\"homeindex.php?s=$session[sessionhash]\");");
}
and replace homeindex.php with the url of your main page (or use the variable $homeurlindex.php).