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: 32
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,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
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,008
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
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 9:08am
Page generated in 0.2126 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums