The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Show hide information on post profiles

3 posters

Go down

Solved Show hide information on post profiles

Post by TheCrow April 21st 2014, 8: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 22nd 2014, 12:36 am; edited 1 time in total
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Show hide information on post profiles

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

1. find in viewtopic_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


Show hide information on post profiles Perfoc10
J0k3R^
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 TheCrow April 21st 2014, 11: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!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Show hide information on post profiles

Post by Ange Tuteur April 22nd 2014, 4:53 am

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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