Hide Mini Profile contact information by default

View previous topic View next topic Go down

avatar
Kaynil
Member
Member
Forum Posts : 14
Member Since : 2011-12-31
View user profile http://roczuz.com/-c2

PostKaynil on 1/1/2012, 4:09 pm

Well, I just changed to punBB, and I suppose it is a simple code, but I have little practice so I decided to ask here, hopefully I can make myself understood.

When you post a message, in your mini profile appears your contact field in the same "line" (yet not the same cell) as "quote", "edit" etc buttons... Since I have a lot of fields, the information takes more space and open an unneeded gap I want to solve.

I have seen some profiles having a "click here to see more" type of button or text, that displays pretty much the same way a spoiler tag works. I would like to implement one in my forums, the only thing to keep in mind it is not for the usual "location, zodiac, etc" type of information but "PM, Email, website, MSN, Skype..etc

This is our current look:


Thank you very much.
avatar
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
View user profile http://www.codinghelp.org

PostMike on 1/1/2012, 6:03 pm

I'd suggest to use smaller icons instead. It's more organized.
avatar
Kaynil
Member
Member
Forum Posts : 14
Member Since : 2011-12-31
View user profile http://roczuz.com/-c2

PostKaynil on 5/7/2012, 7:26 am

Thank you for the suggestion, but I still would like a code for hiding them inside a button.
Is there a way to achieve this in punBB?
avatar
LGforum
Moderator
Forum Posts : 77
Member Since : 2011-11-12
View user profile

PostLGforum on 5/7/2012, 9:38 am

Do you have this in your viewtopic_body template:
Code:
<div class="user-contact">

If so swap it for this:
Code:
<span onclick="jQuery(this.nextSibling).toggle()">Contact Info</span><div class="user-contact" style="display:none">
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum