The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Thanks Like Forumotion JavaScript Not working

Go down

Solved Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi on Thu Dec 18, 2014 5:16 pm

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

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!
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi on Fri Dec 19, 2014 3:19 pm

Any ideas on this here? @JScript or @Ange
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by Ange Tuteur on Fri Dec 19, 2014 6:39 pm

Hello @FrOsTyXi,

Could you post a link to a post that has been thanked on your forum ?

Thanks
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi on Fri Dec 19, 2014 6:44 pm

Sure here your go!

Thanked post
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by JScript on Fri Dec 19, 2014 7:08 pm

@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
avatar
JScript
Forumember

Male Posts : 741
Reputation : 172
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi on Fri Dec 19, 2014 7:24 pm

All fixed thank you guys 

Regards
FrOsTyXi
avatar
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by Ange Tuteur on Fri Dec 19, 2014 7:28 pm

Thanks for the help, JScript.

Topic archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum