Bruce Banner Head Coder
      Click Click Boom member is offline
![[avatar] [avatar]](http://sz-ex.com/chris/ava/bhh8b7.png)
Joined: Nov 2006 Gender: Male  Posts: 17,332 Location: Nebraska Karma: 311 |  | Add Content to End of Miniprofile « Thread Started on Dec 7, 2007, 4:13am » | |
Code:<script type="text/Javascript"> // Add Content to End of Miniprofile by Chris // Do not redistribute without permission of the creator
var aTD = document.getElementsByTagName("td"); function addContent(un, da){ if(location.href.match(/action=(display|(calendar|pm)?view)/i) || document.title.match(/\s-\s(Preview|Search\sResults)/i)){ for(a=0;a<aTD.length;a++){ if(aTD[a].width == "20%" && aTD[a].innerHTML.match(new RegExp("user="+un+"[\"'\\s>]", "i"))){ aTD[a].innerHTML += da; } } } }
// SYNTAX: addContent("username_of_the_user", "HTML here to be added. Make sure to use <br /> to add line breaks."); // Repeat line as necessary. addContent("username", "Data here."); </script> |
|
Global footers. Main footers if you want it only in the main profile.
This code allows you to add HTML to the end of a user's miniprofile. This can be useful for adding awards for a user.
|
![[image] [image]](http://sz-ex.com/misc/sigs/staff/style4/admin_chris.png) ![[image] [image]](http://apocalypse.hstr.me/StudioZero/projectapocalypsechris.png) Coming soon(er or later) to SZ: - [user] and [pmuser] UBBC tags - Houdini - CIv4 - Project Apocalypse - Minimizer |
|