The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Show hide information on post profiles

View previous topic View next topic Go down

Solved Show hide information on post profiles

Post by Luffy on April 21st 2014, 2:43 pm

Hello. I want to have an image and as soon as you press the image, to show the information of the user that posted that post and if you press it again to hide, Is it possible?

Forum V. PunBB
Forum L.http://informationforumgr.forumgreek.com/forum


Last edited by Marios94 on April 21st 2014, 6:36 pm; edited 1 time in total

Luffy
Manager
Manager

Male Posts : 4239
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Show hide information on post profiles

Post by J0k3R^ on April 21st 2014, 3:04 pm

1. find inviewtopic_body:

Code:
<div class="user-info">
{postrow.displayed.ONLINE_IMG}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</div>

2. before that, add:

Code:
<div style="text-align: center;" onclick="this.firstChild.value=(this.firstChild.value=='Ver perfil')?'Ocultar perfil':'Ver perfil';this.lastChild.style.display=(this.firstChild.value=='Ver perfil')?'none':'block';" class="profilmasque"><input type="button" class="profil1" value="Ver perfil">
<div style="display: none; text-align: left;">


after the code in 2. add this:

Code:
</div>

3. put in css:

Code:
input {
background: url("http://i66.servimg.com/u/f66/11/96/49/61/input11.png") repeat scroll 0 0 white;
border: 1px solid lightgrey;
border-radius: 5px 5px 5px 5px;
padding: 2px;
text-shadow: 1px 1px 1 #666666;
}

4. result




J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Show hide information on post profiles

Post by Luffy on April 21st 2014, 5:49 pm

Can that button be presented by an image? I mean, how can i change it from button to put it as an image and click on it and show and click on it to hide again?
Solved!

Luffy
Manager
Manager

Male Posts : 4239
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Show hide information on post profiles

Post by Ange Tuteur on April 21st 2014, 10:53 pm

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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