|
Post by SpielMeisterKev! on Apr 10, 2017 14:55:38 GMT
Howdy, I have solicited some assistance form support.proboards.com and have got the following from them. Hopefully one of the admins can implement this fix. $('div.mini-profile').find('a.user-link').attr('class').split('user-link user-')[1].split(' group-')[0] to get the user id but that no longer works This seems to be because proboards added some classes to the user link such as js-user-link So basically the mini-profile code needs an update. This plugin most likely no longer works on any forum it's currently installed on for the mini-profile. Installing this as a header or footer code in your global header/footer in admin should fix this issue $( document ).ready(function() {setTimeout(function(){ $('a.addUserKarma').unbind("click");$('a.takeUserKarma').unbind("click");$('a.addUserKarma').click(function(){shorty_karma_system.givetakeKarma($(this).parents('div.mini-profile').find('a.user-link').attr('class').split(' user-link user-')[1].split(' group-')[0] , $(this).parents('div.mini-profile').find('a.user-link').text(), 'gave');});
$('a.takeUserKarma').click(function() {shorty_karma_system.givetakeKarma($(this).parents('div.mini-profile').find('a.user-link').attr('class').split(' user-link user-')[1].split(' group-')[0] , $(this).parents('div.mini-profile').find('a.user-link').text(), 'took');}); }, 1000); }) Please advise, Kev!
|
|
|
Post by drwillsdc on Apr 11, 2017 12:36:20 GMT
You might as well be speaking Mandarin. 😳
|
|
guppy
Paint Manipulator
Posts: 202
|
Post by guppy on Apr 11, 2017 12:52:03 GMT
You might as well be speaking Mandarin. 😳 It's jQuery - by comparison far more people will be able to understand Mandarin
|
|