MapleBit Support Thread Web 

E2PhiXh - MapleBit Support Thread - RaGEZONE Forums

Im facing this error.
Im on a webhost cpanel. :/ idk whats going on, everything is correct.

NVM
FIXED
 
Last edited:
Upvote 0
I fixed that, now i can't register (I can, it says it was succesfully done bla bla bla but it doesn't makes the account)

EDIT: i still have that error ^ (ps. i can log in with created accs, but not with the ones i make via cms)

anyways, i can't edit the background. not even the color.
 
Last edited:
Upvote 0
How might I got about exempting banned players from the rankings? It would be quite a hassle to go in and manually delete a character out of the rankings if they hacked, and players get discouraged when they see a high level, even if I say they are banned.
 
Upvote 0
How would you add a Facebook like button as well as a twitter follow button at the bottom of the page?
Add the following for the Facebook like button. If you want the smaller like button, change "box_count" to "standard".
More info here:
Note: They recommend that you put the fb-root div and the javascript right after the body tag, the fb-like can go anywhere as you please. (MapleBit's body tag is in sources/structure/header.php)
If you want it on the bottom of the page, your best bet is in sources/structure/footer.php. Just paste it in.
PHP:
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=175845852492641&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://facebook.com/facebook" data-layout="box_count" data-action="like" data-show-faces="true" data-share="false"></div>

Add the following for the Twitter follow button
PHP:
<a href="https://twitter.com/twitter" class="twitter-follow-button" data-show-count="false" data-size="large">Follow [USER=382924]Twi[/USER]tter</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
 
Upvote 0
Add the following for the Facebook like button. If you want the smaller like button, change "box_count" to "standard".
More info here:
Note: They recommend that you put the fb-root div and the javascript right after the body tag, the fb-like can go anywhere as you please. (MapleBit's body tag is in sources/structure/header.php)
If you want it on the bottom of the page, your best bet is in sources/structure/footer.php. Just paste it in.
PHP:
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=175845852492641&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://facebook.com/facebook" data-layout="box_count" data-action="like" data-show-faces="true" data-share="false"></div>

Add the following for the Twitter follow button
PHP:
<a onclick="ga('send', 'event', 'Outgoing', 'twitter.com', '/twitter');" rel="nofollow" href="https://twitter.com/twitter" class="twitter-follow-button" data-show-count="false" data-size="large">Follow [USER=382924]Twi[/USER]tter</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

Awesome man thank you so much!!!
 
Upvote 0
me too, i did in both admin panel and SQL but background not change!

When you change it from the SQL, go to the properties and background, then just press accept (or whetever the name of the button to accept the changes is) and the page will reload. Then, you'll have the background
 
Upvote 0
Interesting, I'll take a look sometime when I have time.

Hey green.

Apparently, it seems like the problem that this guy posted (quote below) is still present in your latest released build. (Jan 1st)

Okey today I suddenly got this 'new' bug glitch. When I try to login it says "Wrong username or password" however I know i'm putting the correct data it still show me this message, but when i press f5 or go to another page i'm logged in!

I'm still using v1.03 Does this means that I have to update or something??

krfLUCV - MapleBit Support Thread - RaGEZONE Forums

I have been experiencing it personally, and here I wonder, is there any fix for that? I don't think that it occurred right after the install, but I am also quite positive that no files relating to the login system have been changed.

It's like login.js doesn't get the right response (in this case, it has to get 'success'), but that doesn't make sense..

Edit:

Fixed it.
In login.js, replace

PHP:
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);
            }

with

PHP:
success: function (response) {
                alert(response);
                console.log(response);
            }

For a moment, in order to check if the response is right. It seems like adding blocks for some other custom web stuff in places like the end of main.php can **** up the response.. lol
 
Last edited:
Upvote 0
Hey green.

Apparently, it seems like the problem that this guy posted (quote below) is still present in your latest released build. (Jan 1st)



I have been experiencing it personally, and here I wonder, is there any fix for that? I don't think that it occurred right after the install, but I am also quite positive that no files relating to the login system have been changed.

It's like login.js doesn't get the right response (in this case, it has to get 'success'), but that doesn't make sense..
I am unable to reproduce your error, as well as the background image error. Until someone posts what version of wamp, apache, php, OS they are using, I will not be able to investigate further. If you'd like to teamview at some point over the weekend, let me know.

edit: pushed out update with new bootstrap files. Will be working on a small maintenance/cleanup patch in the coming weeks. Nothing too important, so there's no need to upgrade!
 
Last edited:
Upvote 0
Back