Reputation bar/Thanks button doesn't show up.
4 posters
Page 1 of 1
Reputation bar/Thanks button doesn't show up.
Hello,
I can't seem t get the reputation bar, or the thanks, like or don't like buttons to show up?
Is there something I am missing?
Thanks.
http://racearena.forumotion.com/t88-not-danbury-but-danbury-related-kewel-bobby-vee-chassis-dynamics#107
Here's the Javascript I use;
Here's the CSS:
Thanks again!
I can't seem t get the reputation bar, or the thanks, like or don't like buttons to show up?
Is there something I am missing?
Thanks.
http://racearena.forumotion.com/t88-not-danbury-but-danbury-related-kewel-bobby-vee-chassis-dynamics#107
Here's the Javascript I use;
Me wrote:/*
* Application: Reputation Levels
* Date: 14/06/2018
* Version: 2.014062018
* Copyright (c) 2018 Daemon <help.forumotion.com>
* This work is free. You can redistribute it and/or modify it
*/
function bs_reputation_ipb() {
/*
* Configure below the levels for the reputation profile,
* with the respective number needed to win it.
* You can also add a class to customize the element.
*/
var reputation = [
{
reputation: 0,
level: "Neutral",
class: "zero"
},
{
reputation: 1,
level: "Beginner"
},
{
reputation: 10,
level: "Regular"
},
{
reputation: 20,
level: "Good"
},
{
reputation: 35,
level: "Great"
},
{
reputation: 50,
level: "Excellent",
class: "awesome"
}
];
/*
* No need to change anything from here down
*/
var post = $(".post"),
level = "",
repClass = "",
BreakException = {};
$.ajax({
url: post.first().find("a[href^='/u']").attr("href"),
type: "GET",
success: function(data) {
var fieldName = $("#field_id-14", data).find("dt").text().split(" ")[0],
regExp = RegExp("<span[^>]*>(?:<span[^>]*>)?(" + fieldName + ")(?:<\\/span>)?\\s:\\s<\\/span>\\s*(\\d+)", "g");
$.each($(".post"), function(idx) {
$(this).html(
$(this).html()
.replace(regExp, "<div class='reputation-bs'>$1 : $2<br><span class='title' style='font-weight:normal'></span></div>")
);
var repDiv = $(".reputation-bs", this),
fieldValue = repDiv.text().match(/\d+/);
try {
$.each(reputation, function(i, item) {
if (item.reputation <= fieldValue) {
level = (item.level) ? item.level : "",
repClass = (item.class) ? item.class : "";
} else {
throw BreakException;
}
});
} catch (e) {
if (e !== BreakException) throw e;
}
repDiv.addClass(repClass).find(".title").text(level);
});
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
}
});
};
$(function() {
bs_reputation_ipb();
});
Here's the CSS:
/*
* Application: Reputation Levels
* Date: 14/06/2018
* Version: 2.014062018
* Copyright (c) 2018 Daemon <help.forumotion.com>
* This work is free. You can redistribute it and/or modify it
*/
function bs_reputation_ipb() {
/*
* Configure below the levels for the reputation profile,
* with the respective number needed to win it.
* You can also add a class to customize the element.
*/
var reputation = [
{
reputation: 0,
level: "Neutral",
class: "zero"
},
{
reputation: 1,
level: "Beginner"
},
{
reputation: 10,
level: "Regular"
},
{
reputation: 20,
level: "Good"
},
{
reputation: 35,
level: "Great"
},
{
reputation: 50,
level: "Excellent",
class: "awesome"
}
];
/*
* No need to change anything from here down
*/
var post = $(".post"),
level = "",
repClass = "",
BreakException = {};
$.ajax({
url: post.first().find("a[href^='/u']").attr("href"),
type: "GET",
success: function(data) {
var fieldName = $("#field_id-14", data).find("dt").text().split(" ")[0],
regExp = RegExp("<span[^>]*>(?:<span[^>]*>)?(" + fieldName + ")(?:<\\/span>)?\\s:\\s<\\/span>\\s*(\\d+)", "g");
$.each($(".post"), function(idx) {
$(this).html(
$(this).html()
.replace(regExp, "<div class='reputation-bs'>$1 : $2<br><span class='title' style='font-weight:normal'></span></div>")
);
var repDiv = $(".reputation-bs", this),
fieldValue = repDiv.text().match(/\d+/);
try {
$.each(reputation, function(i, item) {
if (item.reputation <= fieldValue) {
level = (item.level) ? item.level : "",
repClass = (item.class) ? item.class : "";
} else {
throw BreakException;
}
});
} catch (e) {
if (e !== BreakException) throw e;
}
repDiv.addClass(repClass).find(".title").text(level);
});
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
}
});
};
$(function() {
bs_reputation_ipb();
});
Thanks again!
kaptainsteve- Forumember
- Posts : 28
Reputation : 0
Language : english
Re: Reputation bar/Thanks button doesn't show up.
Hello,
Did the problem start occuring after you installed the code? Also have you checked to make sure the thanks and reputation system are enabled?
Did the problem start occuring after you installed the code? Also have you checked to make sure the thanks and reputation system are enabled?
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Reputation bar/Thanks button doesn't show up.
You do not have the correct CSS.
- Code:
.reputation-bs {
background-color: #DFF0D8;
font-weight: bold;
padding: 3px 8px;
display: block !important;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #3C763D;
margin: 5px auto;
font-family: Lato,Arial,Helvetica,sans-serif;
font-size: 13px;
margin-bottom: 5px;
max-width: 123px;
text-align: center;
}
.reputation-bs.zero {
background: none repeat scroll 0% 0% rgba(222, 222, 222, 0.34);
color: #6e6e6e;
}
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Reputation bar/Thanks button doesn't show up.
Thanks,
I put the new CSS code in and still nothing.
And yes, I've enabled thanks and reputation.
The problem occurred from the git-go, ie. reputation never worked for me?
I've followed the tutorial here https://help.forumotion.com/t132299-add-a-bar-for-reputation and inserted this code. Since mine is a phpbb3 forum I changed the version to that, phpbb3.
I've since changed the CSS to SLGray's suggestion above, thanks, but still doesn't show?
Thanks again.
Any suggestions appreciated.
Kaptainsteve
I put the new CSS code in and still nothing.
And yes, I've enabled thanks and reputation.
The problem occurred from the git-go, ie. reputation never worked for me?
I've followed the tutorial here https://help.forumotion.com/t132299-add-a-bar-for-reputation and inserted this code. Since mine is a phpbb3 forum I changed the version to that, phpbb3.
I've since changed the CSS to SLGray's suggestion above, thanks, but still doesn't show?
Thanks again.
Any suggestions appreciated.
Kaptainsteve
kaptainsteve- Forumember
- Posts : 28
Reputation : 0
Language : english
Re: Reputation bar/Thanks button doesn't show up.
Try also using the scripts in this tutorial: https://help.forumotion.com/t142870-improve-the-reputation-system-so-it-counts-votes#972462 . If you don't have a reputation button for people to add reptuation it won't work.
For thanks, can you check that you have a button/image added for Thanks. You can check this by going to ACP (Admin panel)-->Display-->Pics management (Advanced)-->Buttons-->Look for thanks and then check to see if there is an image across from it.
Also bear in mind thanks only shows to the topic starter and you can only thank one post per topic.
For thanks, can you check that you have a button/image added for Thanks. You can check this by going to ACP (Admin panel)-->Display-->Pics management (Advanced)-->Buttons-->Look for thanks and then check to see if there is an image across from it.
Also bear in mind thanks only shows to the topic starter and you can only thank one post per topic.
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Reputation bar/Thanks button doesn't show up.
Hello @kaptainsteve is this now solved ?
If yes please reply to this topic and then mark the topic solved by pressing the mark solved button that can be found at the top of this topic.
Thank you.
If yes please reply to this topic and then mark the topic solved by pressing the mark solved button that can be found at the top of this topic.
Thank you.
Similar topics
» A button to show only the topic starter's posts
» Display [solved] button -> Didnt show up
» "Show Spoiler" BUtton
» Points and Reputation: How to get the Thanks button to show
» How to make show&Hide button like this
» Display [solved] button -> Didnt show up
» "Show Spoiler" BUtton
» Points and Reputation: How to get the Thanks button to show
» How to make show&Hide button like this
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum