The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Thanks Like Forumotion JavaScript Not working

3 posters

Go down

Solved Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi December 19th 2014, 12:16 am

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!
FrOsTyXi
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 December 19th 2014, 10:19 pm

Any ideas on this here? @JScript or @Ange
FrOsTyXi
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 December 20th 2014, 1:39 am

Hello @FrOsTyXi,

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

Thanks
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

Post by FrOsTyXi December 20th 2014, 1:44 am

Sure here your go!

Thanked post
FrOsTyXi
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 December 20th 2014, 2:08 am

@FrOsTyXi

There is an error due to template viewtopic_body be out of date
Thanks Like Forumotion JavaScript Not working BOEpTjS

Restore the original template, thus it will be updated by Forumotion!

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
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 December 20th 2014, 2:24 am

All fixed thank you guys 

Regards
FrOsTyXi
FrOsTyXi
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 December 20th 2014, 2:28 am

Thanks for the help, JScript.

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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