Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 12 users online :: 0 Registered, 0 Hidden and 12 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[IN PROGRESS] Why the bar for reputation is not showing
Page 1 of 1 • Share
- smejker
- Gender :
Posts : 28
Points : 3873
Reputation : 8
Location : Macedonia
Language : Macedonian, Serbo-Croatia
Browser : Forum Version :
Hi @Ange,
I want to know why the bar for Reputation (Your script in FM) is not showing?
Thanks in advance.
Regards & Respect!!!
I want to know why the bar for Reputation (Your script in FM) is not showing?
Thanks in advance.
Regards & Respect!!!
- Wolfuryo
- Gender :
Posts : 256
Points : 3811
Reputation : 81
Language : Romanian and English
Browser : Forum Version :
Hello,
What is the script you are using? Also, please post your forum address here.
What is the script you are using? Also, please post your forum address here.
The reasons it could not be working are :
1. You have a JavaScript error on your forum ( Very common )
2. Your templates are modified ( uncommon )
I can't get to the cause of the problem unless you post the information Andrei mentioned above.
1. You have a JavaScript error on your forum ( Very common )
2. Your templates are modified ( uncommon )
I can't get to the cause of the problem unless you post the information Andrei mentioned above.
- GuestGuest
*** This topic will be closed soon if we don't get any feedback. @smejker Is this solved / still needed? ***
- smejker
- Gender :
Posts : 28
Points : 3873
Reputation : 8
Location : Macedonia
Language : Macedonian, Serbo-Croatia
Browser : Forum Version :
Ange Tuteur wrote:The reasons it could not be working are :
1. You have a JavaScript error on your forum ( Very common )
2. Your templates are modified ( uncommon )
I can't get to the cause of the problem unless you post the information Andrei mentioned above.
Yes, My templetes are modified... And this is javascript (in Topics)
- Code:
$(document).ready(function() {
var version = 'phpbb3';
var settings = {
repName : 'Reputacija',
repStyle : 'block',
repImage : 'http://i57.servimg.com/u/f57/18/21/41/30/star12.png'
};
var repLv = {
lv1 : 0,
lv2 : 10,
lv3 : 50,
lv4 : 100,
lv5 : 200,
lv6 : 500,
lv7 : 1000,
lv8 : 2000,
lv9 : 5000,
lv10 : 7500,
lv11 : 10000,
lv12 : 12000,
lv13 : 15000,
lv14 : 18000,
lv15 : 22000,
lv16 : 26000,
lv17 : 30000,
lv18 : 35000,
lv19 : 40000,
lv20 : 50000
};
if (settings.repStyle.toLowerCase() == 'block') { var repBlock = '<span id="rLv" class="repuBlock">' }
else if (settings.repStyle.toLowerCase() == 'image') { var repBlock = '<img id="rLv" src="'+settings.repImage+'"/>' }
else { var repBlock = '<span id="rLv" class="repuBlock">' }
var ver = { phpbb2 : version.toLowerCase() == 'phpbb2', phpbb3 : version.toLowerCase() == 'phpbb3', punbb : version.toLowerCase() == 'punbb', invision : version.toLowerCase() == 'invision' };
var reg = new RegExp('.*'+settings.repName+':\\s+(\\d+).*');
if (ver.phpbb3 || ver.punbb || ver.invision) {
if (ver.phpbb3 || ver.invision) { var profSel = '.postprofile'; var addRepu = $(this).find('dt').append('<div id="repu">'); }
else if (ver.punbb) { var profSel = '.user'; var addRepu = $(this).find('.user-ident').prepend('<div id="repu">'); }
$(profSel).each(function() {
var rep = Number($(this).text().replace(reg,'$1'));
addRepu;
if (rep >= repLv.lv1) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv2 }
if (rep >= repLv.lv2) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv3 }
if (rep >= repLv.lv3) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv4 }
if (rep >= repLv.lv4) {$(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv5 }
if (rep >= repLv.lv5) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv6 }
if (rep >= repLv.lv6) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv7 }
if (rep >= repLv.lv7) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv8 }
if (rep >= repLv.lv8) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv9 }
if (rep >= repLv.lv9) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv10 }
if (rep >= repLv.lv10) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv11 }
if (rep >= repLv.lv11) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv12 }
if (rep >= repLv.lv12) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv13 }
if (rep >= repLv.lv13) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv14 }
if (rep >= repLv.lv14) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv15 }
if (rep >= repLv.lv15) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv16 }
if (rep >= repLv.lv16) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv17 }
if (rep >= repLv.lv17) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv18 }
if (rep >= repLv.lv18) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv19 }
if (rep >= repLv.lv19) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv20 }
if (rep >= repLv.lv20) { $(this).find('#repu').append(repBlock); var next = 'MAX' }
$(this).find('#repu').attr('title','Reputacija ' + $(this).find('#rLv').length + '\n-Next: (' + next + ')');
});
}
else if (ver.phpbb2) {
$('td .postdetails.poster-profile').each(function() {
var rep = Number($(this).text().replace(reg,'$1'));
$(this).parent().find('.name').next().after('<div id="repu">');
if (rep >= repLv.lv1) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv2 }
if (rep >= repLv.lv2) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv3 }
if (rep >= repLv.lv3) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv4 }
if (rep >= repLv.lv4) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv5 }
if (rep >= repLv.lv5) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv6 }
if (rep >= repLv.lv6) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv7 }
if (rep >= repLv.lv7) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv8 }
if (rep >= repLv.lv8) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv9 }
if (rep >= repLv.lv9) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv10 }
if (rep >= repLv.lv10) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv11 }
if (rep >= repLv.lv11) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv12 }
if (rep >= repLv.lv12) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv13 }
if (rep >= repLv.lv13) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv14 }
if (rep >= repLv.lv14) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv15 }
if (rep >= repLv.lv15) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv16 }
if (rep >= repLv.lv16) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv17 }
if (rep >= repLv.lv17) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv18 }
if (rep >= repLv.lv18) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv19 }
if (rep >= repLv.lv19) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv20 }
if (rep >= repLv.lv20) { $(this).parent().find('#repu').append(repBlock); var next = 'MAX' }
$(this).parent().find('#repu').attr('title','Reputation level ' + $(this).parent().find('#rLv').length + '\nNext : (' + next + ')');
});
}
});
CSS:
- Code:
#repu { margin:2px 0; }
.repuBlock {
height:8px;
width:8px;
background:#0A0;
border:1px solid #080;
-webkit-border-radius:2px;
-moz-border-radius:2px;
border-radius:2px;
-webkit-box-shadow:0 3px 3px #0C0 inset;
-moz-box-shadow:0 3px 3px #0C0 inset;
box-shadow:0 3px 3px #0C0 inset;
display:inline-block;
margin:0 0.5px;
}
Reputation bar is not showing still.
Regards!
- smejker
- Gender :
Posts : 28
Points : 3873
Reputation : 8
Location : Macedonia
Language : Macedonian, Serbo-Croatia
Browser : Forum Version :
@smejker thank you
Try replacing your script with this one :
Try replacing your script with this one :
- Code:
$(document).ready(function() {
var version = 'phpbb3';
var settings = {
repName : 'Reputacija',
repStyle : 'block',
repImage : 'http://i57.servimg.com/u/f57/18/21/41/30/star12.png'
};
var repLv = {
lv1 : 0,
lv2 : 10,
lv3 : 50,
lv4 : 100,
lv5 : 200,
lv6 : 500,
lv7 : 1000,
lv8 : 2000,
lv9 : 5000,
lv10 : 7500,
lv11 : 10000,
lv12 : 12000,
lv13 : 15000,
lv14 : 18000,
lv15 : 22000,
lv16 : 26000,
lv17 : 30000,
lv18 : 35000,
lv19 : 40000,
lv20 : 50000
};
if (settings.repStyle.toLowerCase() == 'block') { var repBlock = '<span id="rLv" class="repuBlock">' }
else if (settings.repStyle.toLowerCase() == 'image') { var repBlock = '<img id="rLv" src="'+settings.repImage+'"/>' }
else { var repBlock = '<span id="rLv" class="repuBlock">' }
var ver = { phpbb2 : version.toLowerCase() == 'phpbb2', phpbb3 : version.toLowerCase() == 'phpbb3', punbb : version.toLowerCase() == 'punbb', invision : version.toLowerCase() == 'invision' };
var reg = new RegExp('.*'+settings.repName+'\\s+:\\s+(\\d+).*');
if (ver.phpbb3 || ver.punbb || ver.invision) {
if (ver.phpbb3 || ver.invision) { var profSel = '.postprofile'; var addRepu = $(this).find('dt').append('<div id="repu">'); }
else if (ver.punbb) { var profSel = '.user'; var addRepu = $(this).find('.user-ident').prepend('<div id="repu">'); }
$(profSel).each(function() {
var rep = Number($(this).text().replace(reg,'$1'));
addRepu;
if (rep >= repLv.lv1) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv2 }
if (rep >= repLv.lv2) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv3 }
if (rep >= repLv.lv3) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv4 }
if (rep >= repLv.lv4) {$(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv5 }
if (rep >= repLv.lv5) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv6 }
if (rep >= repLv.lv6) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv7 }
if (rep >= repLv.lv7) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv8 }
if (rep >= repLv.lv8) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv9 }
if (rep >= repLv.lv9) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv10 }
if (rep >= repLv.lv10) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv11 }
if (rep >= repLv.lv11) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv12 }
if (rep >= repLv.lv12) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv13 }
if (rep >= repLv.lv13) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv14 }
if (rep >= repLv.lv14) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv15 }
if (rep >= repLv.lv15) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv16 }
if (rep >= repLv.lv16) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv17 }
if (rep >= repLv.lv17) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv18 }
if (rep >= repLv.lv18) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv19 }
if (rep >= repLv.lv19) { $(this).find('#repu').append(repBlock); var next = rep + '/' + repLv.lv20 }
if (rep >= repLv.lv20) { $(this).find('#repu').append(repBlock); var next = 'MAX' }
$(this).find('#repu').attr('title','Reputacija ' + $(this).find('#rLv').length + '\n-Next: (' + next + ')');
});
}
else if (ver.phpbb2) {
$('td .postdetails.poster-profile').each(function() {
var rep = Number($(this).text().replace(reg,'$1'));
$(this).parent().find('.name').next().after('<div id="repu">');
if (rep >= repLv.lv1) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv2 }
if (rep >= repLv.lv2) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv3 }
if (rep >= repLv.lv3) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv4 }
if (rep >= repLv.lv4) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv5 }
if (rep >= repLv.lv5) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv6 }
if (rep >= repLv.lv6) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv7 }
if (rep >= repLv.lv7) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv8 }
if (rep >= repLv.lv8) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv9 }
if (rep >= repLv.lv9) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv10 }
if (rep >= repLv.lv10) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv11 }
if (rep >= repLv.lv11) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv12 }
if (rep >= repLv.lv12) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv13 }
if (rep >= repLv.lv13) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv14 }
if (rep >= repLv.lv14) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv15 }
if (rep >= repLv.lv15) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv16 }
if (rep >= repLv.lv16) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv17 }
if (rep >= repLv.lv17) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv18 }
if (rep >= repLv.lv18) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv19 }
if (rep >= repLv.lv19) { $(this).parent().find('#repu').append(repBlock); var next = rep + '/' + repLv.lv20 }
if (rep >= repLv.lv20) { $(this).parent().find('#repu').append(repBlock); var next = 'MAX' }
$(this).parent().find('#repu').attr('title','Reputation level ' + $(this).parent().find('#rLv').length + '\nNext : (' + next + ')');
});
}
});
- smejker
- Gender :
Posts : 28
Points : 3873
Reputation : 8
Location : Macedonia
Language : Macedonian, Serbo-Croatia
Browser : Forum Version :
You are king!!!
Now is OK.... :thanks:
:respect:
Now is OK.... :thanks:
:respect:
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum