wbbPortal:
1-Elinizdeki zip dosyası içindeki dosyaları HD'nizdeki /wbboard/ dizinine eztract ediniz.Şimdi wbboard klasörünü açtığınız zaman karşınıza mywbb adlı bir klasör çıkacaktır.Upload edeceğiniz dosyalar burada bulunmaktadır.
2-Şimdi action.php'yi NotePad ile açınız ve
// ############## vote ###############
if($action=="vote") {
if(!$_POST['vote']) {
header("LOCATION: ".urldecode($url_jump)."");
exit;
}
if(!$userdata['canvotepoll']) {
header("LOCATION: misc.php?action=access_error&boardid=$boardid&styleid=$styleid$session");
exit;
}
$thread_info = $db_zugriff->query_first("SELECT starttime,ptimeout FROM bb".$n."_threads WHERE threadid = '$threadid'");
$poll_check = $db_zugriff->query_first("SELECT COUNT(*) FROM bb".$n."_vote WHERE threadid='$threadid' AND userid = '$user_id'");
if($poll_check[0] || ($thread_info['ptimeout'] && time() >= ($thread_info['starttime']+$thread_info['ptimeout']*(24*3600)))) {
eval ("$output = "".gettemplate("error25")."";");
$ride = urldecode($url_jump)."&presult=1";
}
else {
$db_zugriff->query("UPDATE bb".$n."_poll set votes=votes+1 WHERE id=".intval($_POST['vote']));
if($user_id) $db_zugriff->query("INSERT INTO bb".$n."_vote (threadid,userid) VALUES ('$threadid','$user_id')");
eval ("$output = "".gettemplate("note24")."";");
$ride = urldecode($url_jump)."&presult=1";
#setcookie("vote_poll[$pollid]", "1", time()+(3600*24*365));
$votepoll[$threadid]=1;
setcookie("votepoll",serialize($votepoll), time()+3600*24*365);
#setcookie("vote_poll");
}
}
kısmını BULUNUZ.Bu kısmı :
// ############## getLastPost main ###############
if($action=="vote") {
if(!$vote) {
header("LOCATION: ".urldecode($url_jump)."");
exit;
}
if(!$userdata[canvotepoll]) {
header("LOCATION: misc.php?action=access_error&boardid=$boardid&styleid=$styleid$session");
exit;
}
$thread_info = $db_zugriff->query_first("SELECT starttime,ptimeout FROM bb".$n."_threads WHERE threadid = '$threadid'");
$poll_check = $db_zugriff->query_first("SELECT COUNT(*) FROM bb".$n."_vote WHERE threadid='$threadid' AND userid = '$user_id'");
if($poll_check[0] || ($thread_info[ptimeout] && time() >= ($thread_info[starttime]+$thread_info[ptimeout]*(24*3600)))) {
eval ("$output = "".gettemplate("error25")."";");
$ride = "thread.php?threadid=$threadid&boardid=$boardid&page=1&presult=1";
}
else {
$db_zugriff->query("UPDATE bb".$n."_poll set votes=votes+1 WHERE id='$vote'");
if($user_id) $db_zugriff->query("INSERT INTO bb".$n."_vote VALUES ('$threadid','$user_id')");
eval ("$output = "".gettemplate("note24")."";");
$ride = "thread.php?threadid=$threadid&boardid=$boardid&page=1&presult=1";
setcookie("vote_poll[$pollid]", "1", time()+(3600*24*365));
}
}
ile REPLACE EDİNİZ.(DEĞİŞTİRİNİZ)
3-Şimdi MyWbb içindeki dosyaları /wwwroot/wbboard dizinine atınız.(templates içindekileri /wwwroot/wbboard/templates/ , images içindekileri /wwwroot/wbboard/images/ dizinlerine upload ediniz)
4-Web Browserınıza /wwwroot/wbboard/install-portal.php yazınız.İşte bu kadar.artık wwwroot/wbboard/portal.php yazınız işte portalınız.
***Portal kurulumundan sonra install-portal.php dosyasını güvenliğiniz için siliniz***
Not: portal.php yi anasayfa yapmak isterseniz :
index.php yi NotePad ile açın ve
<?php
header ("Location: main.php");
exit;
?>
kısmını BULUNUZ ve yerine :
<?php
header ("Location: portal.php");
exit;
?>
yazıp kaydetip çıkınız.Ve upload ediniz.
İşte bu kadar



