|
Post by Bradley on Jul 4, 2005 0:26:35 GMT -5
This code wil disable custom avatars for all but the specified users.
Main Footers
<script type="text/javascript"> <!-- if(location.href.match(/action=modifyprofile&user=(\w+)/)) { if(RegExp.$1 != "admin"){ with(modifyForm){ avatarurl.value = "Custom avatars disabled"; avatarurl.disabled = true; avatarwidth.disabled = true; avatarheight.disabled = true; } } } //--> </script>
If you would like to allow userA and userB to also have custom avatrs repeat the underlined section inside the parenthese seperating each repition with || Example of the entire line:
if(RegExp.$1 != "admin" || RegExp.$1 != "userA" || RegExp.$1 != "userB"){
|
|