Thanks Like Forumotion JavaScript Not working
3 posters
Page 1 of 1
Thanks Like Forumotion JavaScript Not working
Hello all was wondering do i need a new script for punbb for my thanks system? here is the code i was using on phpbb3
Forum link: TPSN
Edit i found a punbb JavaScript but still the same problem it's not showing when a member is thanked @Ange or @JScript for help on this you guys know Java like no other thanks again!
- Code:
$(function () {
var x = $('.post').get();
for (i = 0; i < x.length; i++) {
if (x[i].getAttribute('style') == "background-color:#ddebca;") {
x[i].style.backgroundColor = '';
x[i].firstChild.nextSibling.style.backgroundColor = '';
x[i].firstChild.nextSibling.firstChild.style.backgroundColor = '';
x[i].firstChild.nextSibling.firstChild.nextSibling.style.backgroundColor = '';
var stars = document.createElement('div');
stars.setAttribute('style', 'text-align: center;');
stars.innerHTML = '<hr><div style="padding-top:2px;height:32px;line-height:36px;color:#0000FF;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://i59.servimg.com/u/f59/18/83/30/50/imagee14.png"> The Topic Starter Thanks You! <img style="vertical-align:top" src="http://i59.servimg.com/u/f59/18/83/30/50/imagee14.png"></div>';
x[i].firstChild.nextSibling.firstChild.nextSibling.appendChild(stars);
}
}
});
Forum link: TPSN
Edit i found a punbb JavaScript but still the same problem it's not showing when a member is thanked @Ange or @JScript for help on this you guys know Java like no other thanks again!
Re: Thanks Like Forumotion JavaScript Not working
@FrOsTyXi
There is an error due to template viewtopic_body be out of date
Restore the original template, thus it will be updated by Forumotion!
JS
There is an error due to template viewtopic_body be out of date
Restore the original template, thus it will be updated by Forumotion!
JS
Similar topics
» Javascript not working..
» 'Copy Code' Javascript not working.
» Javascript not working
» JavaScript stops working.
» the forum Javascript isnt working
» 'Copy Code' Javascript not working.
» Javascript not working
» JavaScript stops working.
» the forum Javascript isnt working
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum