Post by afsocr on Dec 23, 2015 20:53:26 GMT -8
So to increase profile picture I was told to use this code:
<script type="text/javascript">
<!--
/* Remove avatar size limits for everyone by california */
//Minor mod by Ty for Staff Members only
//Change these to your staff usernames:
//You'll need to continue this pattern to add more members
var allowed1 = username
var allowed2 = username
var allowed3 = username
var allowed4 = username
//If you need more than 4 then continue this pattern:
if (pb_username == allowed1 | allowed2 | allowed3 | allowed4) {
var img=document.getElementsByTagName("img");
if(location.href.match(/=(display|viewprofile|search2|pmview|recent)/)){
for(i=0;i<img.length;i++){
if(img.alt=="[avatar]"){
var t=img.parentNode;
var s=t.innerHTML.replace(/width=.?\d+?.?/i,'');
t.innerHTML=s.replace(/height=.?\d+?.?/i,'');
}
}
}
}
// -->
</script>
<script type="text/javascript">
<!--
/* avatar size limit by california */
//Minor mod by Ty for Staff Members only
var maxWidth=200;
var maxHeight=200;
//If you need more than 4 then continue this pattern:
if (pb_username == allowed1 | allowed2 | allowed3 | allowed4) {
var img=document.getElementsByTagName("img");
for(i=0;i<img.length;i++){
if(img.width>maxWidth && img.alt.match(/\[avatar\]/i)){
img.style.height=""+(img.height*maxWidth/img.width)+"px";
img.style.width=""+maxWidth+"px";
}
if(img.height>maxHeight && img.alt.match(/\[avatar\]/i)){
img.style.width=""+(img.width*maxHeight/img.height)+"px";
img.style.height=""+maxHeight+"px";
}
}
}
// -->
</script>
But nothing works I fill out the usernames and it doesn't change, what is wrong with it?
<script type="text/javascript">
<!--
/* Remove avatar size limits for everyone by california */
//Minor mod by Ty for Staff Members only
//Change these to your staff usernames:
//You'll need to continue this pattern to add more members
var allowed1 = username
var allowed2 = username
var allowed3 = username
var allowed4 = username
//If you need more than 4 then continue this pattern:
if (pb_username == allowed1 | allowed2 | allowed3 | allowed4) {
var img=document.getElementsByTagName("img");
if(location.href.match(/=(display|viewprofile|search2|pmview|recent)/)){
for(i=0;i<img.length;i++){
if(img.alt=="[avatar]"){
var t=img.parentNode;
var s=t.innerHTML.replace(/width=.?\d+?.?/i,'');
t.innerHTML=s.replace(/height=.?\d+?.?/i,'');
}
}
}
}
// -->
</script>
<script type="text/javascript">
<!--
/* avatar size limit by california */
//Minor mod by Ty for Staff Members only
var maxWidth=200;
var maxHeight=200;
//If you need more than 4 then continue this pattern:
if (pb_username == allowed1 | allowed2 | allowed3 | allowed4) {
var img=document.getElementsByTagName("img");
for(i=0;i<img.length;i++){
if(img.width>maxWidth && img.alt.match(/\[avatar\]/i)){
img.style.height=""+(img.height*maxWidth/img.width)+"px";
img.style.width=""+maxWidth+"px";
}
if(img.height>maxHeight && img.alt.match(/\[avatar\]/i)){
img.style.width=""+(img.width*maxHeight/img.height)+"px";
img.style.height=""+maxHeight+"px";
}
}
}
// -->
</script>
But nothing works I fill out the usernames and it doesn't change, what is wrong with it?