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.
The forum of the forums
3 posters

    Show hide information on post profiles

    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Show hide information on post profiles

    Post by TheCrow 22/4/2014, 01:43

    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 22/4/2014, 05:36; edited 1 time in total
    J0k3R^
    J0k3R^
    Forumember


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

    Solved Re: Show hide information on post profiles

    Post by J0k3R^ 22/4/2014, 02:04

    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
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Show hide information on post profiles

    Post by TheCrow 22/4/2014, 04:49

    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!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Show hide information on post profiles

    Post by Ange Tuteur 22/4/2014, 09:53

    Topic solved and archived

      Current date/time is 23/9/2024, 02:15