• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTForum! 1.0 Beta

hmm... is this a bug?

you cannot use [.b], [.u] and [.i]. Also, can you make so if you are a Tutor up, under the name it says "Gamemaster"
 
i got a error here also:(

Code:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\forum\forum.php on line 78

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\forum\forum.php on line 78

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\forum\forum.php on line 79
 
okey i forgot to change config.php to add <? to <?php but i got a error now:S


Code:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'localhostlocalhost' (11004) in C:\xampp\htdocs\forum\config.php on line 25

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\forum\config.php on line 26

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\xampp\htdocs\forum\config.php on line 26
 
when i add in the config file like this:
//Host of your database
$dbhost = "".$config['server']['sqlHost']."";
and added localhost there i got that but when i remove it i dint get it:S
and i remove that and user root i got this:

Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\forum\config.php on line 25

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\forum\config.php on line 26

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\xampp\htdocs\forum\config.php on line 26

and when i remove it and password i get a blank page:S
and now i did a test remove all in config file and it workted! WTF thanks anyway!:)
 
no it works fine now i just cleard the config file and it workt thanks:)
 
Suggestion:

You should make this FOR ADMINS: When you create a new board, how to explain...

Example:

I want to create a new board called 'News'. I want only Admins that can post, but players can see the post and comment it :p
 
Go to admin";} else $main_content .= "Wrong password or login."; } $action = (int) $_REQUEST['action']; if(!empty($action)){ if(!empty($_SESSION['admin'])){ $main_content .= "Create new board.
"; if($action == 2){ $id = (int)$_GET['id']; deleteBoard($id); $main_content .= "Board has been deleted.
"; } else if($action == 3){ if(isset($_POST['new_board'])){ $name = $_POST['name']; $desc = $_POST['desc']; $closed = $_POST['closed']; $access = $_POST['access']; mysql_query("INSERT INTO `forums` VALUES('', '$name', '$desc', '$closed', '$access');"); $main_content .= "$name has been made."; } $main_content .= "
"; $main_content .= "Board name:

"; $main_content .= "Description:

"; $main_content .= "Closed:

"; $main_content .= "Min. access to enter:

"; $main_content .= ""; $main_content .= "
"; } } else { $main_content .= "
Login:

Password:

"; } } if(!$logged) $main_content .= "You are not logged in. Log in to post on the forum.
"; $main_content .= "
Current time: $date
"; $main_content .= ""; $sql = mysql_query("SELECT * FROM `forums`"); $row = mysql_num_rows($sql); if($row == 0) $main_content .= "No specified forums yet."; else { while($cmd = mysql_fetch_array($sql)){ $name = $cmd['name']; $desc = $cmd['description']; $access = $cmd['access']; $closed = $cmd['closed']; $id = $cmd['id']; if($closed == 1)$close = ""; if(!$logged) $user_access = 0; else { $user = loadAccountById($account_logged); $user_access = $user['page_access']; } if($access > $user_access) continue; $posts = mysql_num_rows(mysql_query("SELECT * FROM `posts` WHERE `board` = '$id'")); $threads = mysql_num_rows(mysql_query("SELECT * FROM `threads` WHERE `board` = '$id'")); $last = mysql_query("SELECT * FROM `posts` WHERE `board` = '$id' ORDER BY `id` DESC LIMIT 1"); $row = mysql_num_rows($last); if($row == 0) $last = "None"; else { $cmd1 = mysql_fetch_array($last); $author = $cmd1['author']; $thread = $cmd1['thread']; $date = $cmd1['date']; $last = " $date
by $author"; } if(!empty($_SESSION['admin'])) $admin = "Delete this board"; $main_content .= ""; } } $main_content .= "


e*RROR!!


FAST ANSWER½½!!!!!!!!!!!!!!1
 

Similar threads

Back
Top