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

    Post Profile Appear On Hover

    Castiel
    Castiel
    Forumember


    Male Posts : 155
    Reputation : 0
    Language : English

    Solved Post Profile Appear On Hover

    Post by Castiel Fri 6 Feb - 17:27

    Technical Details

    Forum version : PunBB
    Position : Founder
    Concerned browser(s) : Mozilla Firefox
    Who the problem concerns : All members
    Forum link :  

    Description of problem

    Greetings,

    I'm using PunBB and have currently added quite a lot of fields to the profiles of my members. Unfortunately, this stretches out posts longer than necessary. I believe there was a CSS or Javascript code out there which made it possible to hide the profiles of users in posts and show it upon hovering over the profile picture. Could someone please provide this code to me? It would help me out quite a bit.

    Regards,

    Castiel


    Last edited by Castiel on Sun 8 Feb - 16:12; edited 1 time in total
    Amber Sweet
    Amber Sweet
    New Member


    Posts : 20
    Reputation : 1
    Language : English

    Solved Re: Post Profile Appear On Hover

    Post by Amber Sweet Sat 7 Feb - 17:16

    I have a code that involves CSS, templates, and javascript although it's for phpbb3 if you want it since there are a variety of different hovers one could use for that effect.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Post Profile Appear On Hover

    Post by Ange Tuteur Sun 8 Feb - 0:58

    Hi @Castiel,

    Add the following code to your stylesheet.
    Administration Panel > Display > Colors > CSS stylesheet
    Code:
    .user .user-info {
      max-height:0;
      overflow:hidden;
      transition:500ms;
    }
    .user:hover .user-info { max-height:300px }

    transition:500ms; // adjusts the smoothness of the transition

    .user:hover .user-info { max-height:300px } // the maximum height of the profile fields on hover, increase this if your fields are LONG in height
    Castiel
    Castiel
    Forumember


    Male Posts : 155
    Reputation : 0
    Language : English

    Solved Re: Post Profile Appear On Hover

    Post by Castiel Sun 8 Feb - 16:11

    Thanks, that's exactly what I was looking for. This topic is solved.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Post Profile Appear On Hover

    Post by Ange Tuteur Mon 9 Feb - 0:07

    Topic archived

      Current date/time is Sun 22 Sep - 19:25