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 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!
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 December 19th 2014, 10: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 December 20th 2014, 1:39 am

Hello @FrOsTyXi,

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

Thanks
avatar
Ange Tuteur
Forumaster

Male Posts : 13187
Reputation : 2895
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Thanks Like Forumotion JavaScript Not working

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

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

@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 December 20th 2014, 2:24 am

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

Thanks for the help, JScript.

Topic archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13187
Reputation : 2895
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Back to top


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