- Joined
- Jul 12, 2011
- Messages
- 1,229
- Reaction score
- 475
If you're having trouble setting up MapleBit, please post here instead of the main thread!
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!when i try to vote it says: Error - Could not look up vote record!
Please help me
Yeah, i'm also trying to edit it in Vote.php like an hour, tried to delete all the if in SQL and it still like that, can you please add me on skype? Sheilem2013That's strange, you did add a voting site right?
Yeah, i'm also trying to edit it in Vote.php like an hour, tried to delete all the if in SQL and it still like that, can you please add me on skype? Sheilem2013
Im using MySQL Workbench, im using the last version of it and im still getting the error Error - Could not look up vote record!
I'm currently getting this error and it's strange because I setup the CMS as a "Level" instead of "Rebirth" server and I've confirmed that it's setup as a level server in the AdminCP but I'm still getting that error. Could someone please help me fix it? Thanks
I've already fixed it by adding a reborns column in characters but thank you again for trying your best to assist people and thank you for this amazing CMS.Hi,
This is a pretty simple fix and it'll be rolling out sometime this weekend. Hopefully there won't be any more major bugs to fix besides this one!
Im getting a voting error also, but its just saying
Error: Could not update account
I took a look at the vote.php, played around with it a bit, like changed the updated account to vpoints and nxCredit, instead of gvp and gnx. I also changed the table website_vote to be vpoints and nxCredit because thats what defined in my account table, still a no go. Any suggestions?
This is an issue with the code, an update will be pushed out today.
Edit: Fixed..
Reinstall MapleBit
$(function() {
var action = '';
var form_data = '';
$('#login').click(function () {
action = $("#loginform").attr("action");
form_data = {
username: $("#username").val(),
password: $("#password").val(),
is_ajax: '1'};
$.ajax({
type: 'POST',
url: action,
data: form_data,
success: function(response) {
if(response == 'success') {
$("#loginform").slideUp('slow', function() {
$("#message").html('<script>location.reload();</script><div class=\"alert alert-success\">Logged in. Reloading...</div>');
});
} else {
$("#loginform").slideUp('slow', function() {
$('#message').hide().html("<br/><div class=\"alert alert-info\">Checking your data. Reloading...</div>").fadeIn('fast');
location.reload();
});
}
console.log(response);
}
});
return false;
});
});
$(function () {
var action = '';
var form_data = '';
$('#login').click(function () {
action = $("#loginform").attr("action");
form_data = {
username: $("#username").val(),
password: $("#password").val(),
is_ajax: '1'
};
$('#login').keypress(function (e) {
if (e.which == 13) { //Enter key pressed
$('#login').click();
}
});
$.ajax({
type: 'POST',
url: '?base=misc&script=login',
data: form_data,
success: function (response) {
if (response == 'success') {
$("#loginform").slideUp('slow', function () {
$("#message").html('<script>location.reload();</script><div class=\"alert alert-success\">Logged in. Reloading...</div>');
});
} else {
$('#message').hide().html("<br/><div class=\"alert alert-danger\">Wrong username or password</div>").fadeIn('fast');
}
console.log(response);
}
});
return false;
});
});
<?php
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
$is_ajax = $_REQUEST['is_ajax'];
if(isset($is_ajax) && $is_ajax) {
include_once('assets/config/database.php');
$u = $mysqli->real_escape_string($_REQUEST['username']);
$p = $mysqli->real_escape_string($_REQUEST['password']);
$s = $mysqli->query("SELECT * FROM `accounts` WHERE `name`='".$u."'") or die();
$i = $s->fetch_assoc();
if($i['password'] == $_REQUEST['password']){
#echo "SELECT * FROM `accounts` WHERE `name`='".$i['name']."' AND `password`='".$i['password']."'";
$userz = $mysqli->query("SELECT * FROM `accounts` WHERE `name`='".$i['name']."' AND `password`='".$i['password']."'") or die();
$auser = $userz->fetch_assoc();
$checkpname = $mysqli->query("SELECT * FROM ".$prefix."profile WHERE accountid=".$auser['id']."");
$countcheckpname = $checkpname->num_rows;
$checkprofile = $checkpname->fetch_assoc();
$_SESSION['id'] = $auser['id'];
$_SESSION['name'] = $auser['name'];
$_SESSION['mute'] = $auser['mute'];
if($countcheckpname == 1){
$_SESSION['pname'] = $checkprofile['name'];
}
else {$_SESSION['pname'] = "checkpname";}
if($auser['webadmin'] == "1"){
$_SESSION['admin'] = $auser['webadmin'];
}
if($auser['gm'] >= 3){
$_SESSION['gm'] = $auser['gm'];
}
echo "success";
}
}
}
?>