MyBB Community Forums

Full Version: MyBB rep/report button not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've searched all over the internet but it's still not working for me, this is one of the thread that i've tried (https://community.mybb.com/thread-213964...pid1288159)


modal css

Quote:/** Modal Start **/

.blocker {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
z-index: 9999;
padding: 20px;
box-sizing: border-box;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.75);
text-align: center;
}

.blocker:before{
content: "";
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.05em;
}

.blocker.behind {
background-color: transparent;
}

.modal {
width: 400px;
text-align: left;
background: #fff;
display: inline-block;
vertical-align: middle;
position: relative;
z-index: 2;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-o-border-radius: 8px;
-ms-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 0 0 10px #000;
-moz-box-shadow: 0 0 10px #000;
-o-box-shadow: 0 0 10px #000;
-ms-box-shadow: 0 0 10px #000;
box-shadow: 0 0 10px #000;
}

.modal a.close-modal {
position: absolute;
top: -12.5px;
right: -12.5px;
display: block;
width: 30px;
height: 30px;
text-indent: -9999px;
background: url(images/close.png) no-repeat 0 0;
}

.modal-spinner {
display: none;
width: 64px;
height: 64px;
position: fixed;
top: 50%;
left: 50%;
margin-right: -32px;
margin-top: -32px;
background: url(images/spinner_big.gif) no-repeat center center;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-o-border-radius: 8px;
-ms-border-radius: 8px;
border-radius: 8px;
}

/** Modal End **/



Console error when clicking the button
[Image: 7fd33b1319b5f66d461cd6bf3ac7f403.png]

the code
Quote:[<a href="javascript:void(0)" onclick="MyBB.reputation({$memprofile['uid']}); return false;">{$lang->reputation_vote}</a>]

headerinclude
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="/jscripts/jquery.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/general.js?ver=1804"></script>
<script type="text/javascript" src="/jscripts/report.js"></script>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,700italic,500italic,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700' rel='stylesheet' type='text/css'>
{$stylesheets}
<link href="images/poly/css/bootstrap.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="/jscripts/tabcontent.js"></script><!-- start: myalerts_js_popup -->
<script type="text/javascript">
    var unreadAlerts = '';
</script>

<!-- end: myalerts_js_popup -->
<!-- end: headerinclude -->


using supremeforum theme
Make sure this line is present in your headerinclude template around line number 36:

	var rootpath = "{$mybb->settings['bburl']}";

Your headerinclude template is missing all the required js variables, better reset to default.
(2018-11-18, 12:36 PM)effone Wrote: [ -> ]Make sure this line is present in your headerinclude template around line number 36:

	var rootpath = "{$mybb->settings['bburl']}";

Your headerinclude template is missing all the required js variables, better reset to default.


i reset headerinclude to default, everything is working now
thanks for the quick respond Smile