inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Mar 7, 2011 10:03:48 GMT -8
Change Join Dates for Certain Users by SubDevoTested in IE, FF, Opera, Safari and Chrome. This code allows you to change the Join date (in the mini-profile and on the profile page) for certain users. And yes, there is a similar code here at PBS, but that code does not match the EXACT username and so other users were changed that were not supposed to be. This code solves that issue. Enjoy!!! SubDevo Variables:uI["admin"]=["Jan 1970", "Jan 1, 1970, 1:00am"];Copy/paste this line to add more users. Enter the username (NOT display name). In the Maroon parts, enter the replacement for the mini-profile and the replacement on the profile page. You may use ANY text or even HTML for the replacements! Location: Global Footer (Above any mini-profile mod/remodel codes.) <script type="text/javascript"> /* Change Join Dates for Certain Users by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.com or lsdp.proboards.com */
var uI=[]; // DO NOT TOUCH uI["admin"]=["Jan 1970", "Jan 1, 1970, 1:00am"];
if(/(calendar|pm|pre)view|viewprofile|search2|display/i.test(pb_action)){ var td=document.getElementsByTagName("td"),n,x=-1,pU; while(td[++x]){ n=td[x].innerHTML; if(td[x].width=="20%"&&/user=(.+?)\"/i.test(n)){ pU=RegExp.$1; if(uI[pU]){ td[x].innerHTML=n.replace(/Joined:(.+?)</,"Joined: "+uI[pU][0]+"<"); }}}} td=document.getElementsByTagName("font"); if(pb_action=="viewprofile"){ pU=location.href.split(/&user=/i)[1]; pU=(pU)?pU:pb_username; if(uI[pU]){x=-1; while(td[++x]){ if(td[x].innerHTML=="Date Registered:"){ td[x+1].innerHTML=uI[pU][1]; break; }}}} </script>
|
|