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.

Poster background code

2 posters

Go down

Solved Poster background code

Post by felicity4us2 February 12th 2014, 9:44 pm

http://www.igdid.com/forum

Hi, I got a tutorial here - used it - worked great - changed a few name, and lost it.  

Can you help me?  The code put a nice background in the posting profile of all admins.

This is the javascript (invision)

Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(b){return b.replace(a,"\\£panda_string_1371310363416_2_panda£amp;")}})();var postbg={add:function(c,b){c=escapeRegExp(c);c=c.replace(/\s?,\s?/g,"|");$(function(){var a=$(".post").get();for(i=0;i<a.length;i++)RegExp("^"+c+"$","g").test($(a[i].getElementsByTagName("a")[0]).text())&&($(a[i]).find(".postprofile").addClass(b))})}};
      

postbg.add('felicity, Shadowetal, BoyyM, Patchesmany, mysticmirror, bluedreamwoman' '.admin');

This is css:
Code:
.admins {
  background:  url('http://i216.photobucket.com/albums/cc148/felicity4us2/admins_zps4de0f974.png'); repeat scroll 0 0 !important;  border: 5px solid #0000;
  }

I think something is wrong with the javascript - If you could direct me to this tutorial or help.  I have looked and looked - I'll keep a copy this time, because I really like it - thanks so much.

Found it finally - thanks.
felicity4us2
felicity4us2
Forumember

Posts : 345
Reputation : 9
Language : english

http://igdid.com

Back to top Go down

Solved Re: Poster background code

Post by Jophy February 15th 2014, 5:31 am

Garbaged since no solution was posted.
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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