vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Remove mini profile. - View Topic
Topic Rating: *****
Printable View
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 34
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Remove mini profile. (17th Feb 11 at 8:52am UTC)
Hi. I'd like to be able to remove mini profiles from certain boards. Anyone have a script to do this?
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Remove mini profile. (19th Feb 11 at 2:27pm UTC)
Try this:

<style type="text/css">
<!--
.mini-profile{
display:none;
}
//-->
</style>

It goes in the Global Header, and it has been tested. {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Remove mini profile. (20th Feb 11 at 2:47am UTC)
Don't use that, as it doesn't take into account the colSpans of some of the cells...

You could use:

<script>
if(location.href.match(/view_topic/))
     for(d = get('mini-profile', 'class'), i = 0; i < d.length; i++){
          d[i].style.display = 'none';
          d[i].nextSibling.colSpan = '2';
     }
</script>


[Not tested] ...

Use in Board Footer.
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Remove mini profile. (20th Feb 11 at 3:33am UTC)
Tested it, doesn't work. Check thread I posted above.

edit:
But I do see what my code does, it also takes away the Signature too. {Unsure}
 Printable View

All times are GMT+0 :: The current time is 7:23pm
Page generated in 0.1901 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums