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
4 posters

    * Mouseover Profile Info

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved * Mouseover Profile Info

    Post by Van-Helsing October 23rd 2013, 8:35 pm

    Hi all,
    How can you help with scripts to make a member card(like IPB) displayed when the mouse is over the username in forum? Etc in Board Index on latest post. I have shaw that in a forumation forum and I need the scripts(CSS/Javascript) to make it on my forum. I saw member card here
    Spoiler:

    Guys I have a PHPBB2 forum version is it available for my version?
    Best Regards,
    Dark-Avenger.


    Last edited by Dark-Avenger on October 25th 2013, 9:49 am; edited 4 times in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 23rd 2013, 8:38 pm

    Hello Dark-Avenger,

    Can you link us to the forum you've seen this on?
    avatar
    Guest
    Guest


    Solved Re: * Mouseover Profile Info

    Post by Guest October 23rd 2013, 10:42 pm

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved Re: * Mouseover Profile Info

    Post by Van-Helsing October 24th 2013, 9:56 pm

    Bump? Please read again the original ,message I have added details about my forum.

    Best Regards,
    Dark-Avenger
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 4:07 am

    Follow the same steps from the tuto provided by Coolyou, but use this script for phpbb2:

    Code:
    jQuery(document).ready(function(){
     Â                   jQuery('td.row3.over a[href*="/u"]').mouseover(function(){
     Â                   jQuery(this).parents('strong').css('position', 'relative');
     Â                   jQuery('.perfilInfo').remove();
     Â                   jQuery(this).parents('td.row3.over').css('overflow', 'visible');
     Â                   jQuery(this).before('
     Â                   <div class="perfilInfo" style="position:absolute;">
     Â                   <span class="setPerfil">
     Â                   <span>
     Â                   <img class="PerfilInfoImg" src="http://forum.teamspeak.com.br/public/style_images/master/profile/default_large.png" />
     Â                   <h2>'+jQuery(this).html()+'</h2>
     Â                   <p><b>Rank:</b><span></span></p>
     Â                   <p><b>Posts:</b><span></span></p>
     Â                   <p><b>Joined:</b><span></span></p>
     Â                   <p><b>Points:</b><span></span></p>
     Â                   <span class="linkPrf"><a href="/privmsg?mode=post&u='+jQuery(this).attr('href').replace('/u', '')+'">Send PM</a></span>
     Â                   <span class="linkPrf"><a href="'+jQuery(this).attr('href')+'">View Profile</a></span>
     Â                   </span>
     Â                   </span>
     Â                   </span>
     Â                   </div>
     Â                   ');
     Â                   jQuery.get(jQuery(this).attr('href'), function(retornoMembro){
     Â                   var avtPrf = jQuery('td.row1.gensmall img:first', retornoMembro).attr('src');
     Â                   jQuery('.PerfilInfoImg').attr('src', avtPrf);
     Â                   var perfil_rank = jQuery('td table.forumline td.row1.gensmall  img:eq(1)', retornoMembro).attr('alt');
     Â                   var perfil_post = jQuery('#field_id-6 dd', retornoMembro).html();
     Â                   var perfil_cad = jQuery('#field_id-4 dd', retornoMembro).html();
     Â                   var perfil_lastV = jQuery('#field_id-13 dd', retornoMembro).html();
     Â                   jQuery('.setPerfil p:eq(0) span').html(perfil_rank);
     Â                   jQuery('.setPerfil p:eq(1) span').html(perfil_post);
     Â                   jQuery('.setPerfil p:eq(2) span').html(perfil_cad);
     Â                   jQuery('.setPerfil p:eq(3) span').html(perfil_lastV);
     Â                   });
     Â                   //get
     Â                   jQuery('.perfilInfo').mouseleave(function(){
     Â                   jQuery(this).remove();
     Â                   });//mouseleave
     Â                   });
     Â                   //mouseover
     Â                   });
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 4:32 am

    What's the script for phpBB 3? Smile
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 7:10 am

    JAN2XONLINE wrote:What's the script for phpBB 3? Smile
    This:
    Code:
    jQuery(document).ready(function(){
     Â                   jQuery('dd.lastpost a[href*="/u"]').mouseover(function(){
     Â                   jQuery(this).parents('strong').css('position', 'relative');
     Â                   jQuery('.perfilInfo').remove();
     Â                   jQuery(this).parents('dd.lastpost').css('overflow', 'visible');
     Â                   jQuery(this).before('
     Â                   <div class="perfilInfo" style="position:absolute;">
     Â                   <span class="setPerfil">
     Â                   <span>
     Â                   <img class="PerfilInfoImg" src="http://forum.teamspeak.com.br/public/style_images/master/profile/default_large.png" />
     Â                   <h2>'+jQuery(this).html()+'</h2>
     Â                   <p><b>Rank:</b><span></span></p>
     Â                   <p><b>Posts:</b><span></span></p>
     Â                   <p><b>Joined:</b><span></span></p>
     Â                   <p><b>Points:</b><span></span></p>
     Â                   <span class="linkPrf"><a href="/privmsg?mode=post&u='+jQuery(this).attr('href').replace('/u', '')+'">Send PM</a></span>
     Â                   <span class="linkPrf"><a href="'+jQuery(this).attr('href')+'">View Profile</a></span>
     Â                   </span>
     Â                   </span>
     Â                   </span>
     Â                   </div>
     Â                   ');
     Â                   jQuery.get(jQuery(this).attr('href'), function(retornoMembro){
     Â                   var avtPrf = jQuery('div#profile-advanced-right img:first', retornoMembro).attr('src');
     Â                   jQuery('.PerfilInfoImg').attr('src', avtPrf);
     Â                   var perfil_rank = jQuery('div#profile-advanced-right div.module img:eq(1)', retornoMembro).attr('alt');
     Â                   var perfil_post = jQuery('#field_id-6 dd', retornoMembro).html();
     Â                   var perfil_cad = jQuery('#field_id-4 dd', retornoMembro).html();
     Â                   var perfil_lastV = jQuery('#field_id-13 dd', retornoMembro).html();
     Â                   jQuery('.setPerfil p:eq(0) span').html(perfil_rank);
     Â                   jQuery('.setPerfil p:eq(1) span').html(perfil_post);
     Â                   jQuery('.setPerfil p:eq(2) span').html(perfil_cad);
     Â                   jQuery('.setPerfil p:eq(3) span').html(perfil_lastV);
     Â                   });
     Â                   //get
     Â                   jQuery('.perfilInfo').mouseleave(function(){
     Â                   jQuery(this).remove();
     Â                   });//mouseleave
     Â                   });
     Â                   //mouseover
     Â                   });
    You'll also need this CSS to fix the text alignment:
    Code:
    .setPerfil > span > p > span{
    display:inline-block;
    }
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 7:59 am

    Almost perfect. I got some problems here. As you can see here, my rank title is not in there. The box is messy too.
    BEFORE EDIT:

    EDIT*

    I managed to fix the messy box using css. The only problem left is the rank title. Why is it not showing up?
    And almost forgot, how do I change the size of the gray semi-transparent border?
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 8:37 am

    Ranks retrieved can only be text however, for them to be retrieved an image needs to be present. Place this in rank titles which do not currently have an image:
    Code:
    http://2img.net/i/fa/empty.gif
    You can change the positioning of the content box, and transparent border with this:
    Code:
       .setPerfil/*Transparent box*/ {
     Â   width:100%;
     Â   }
     Â   .setPerfil > span/*content box*/ {
     Â   margin-left:5px;
     Â   }
    For the height of the mouseover content you'll edit height:177px:
    Code:
    .perfilInfo {
     Â   background: url(http://i77.servimg.com/u/f77/16/58/45/96/bottom10.png) no-repeat 98% 0;
     Â   float: left;
     Â   height: 177px;
     Â   left: -40em;
     Â   padding: 16px 0 38px 5px;
     Â   top: 13px;
     Â   width: 510px;
     Â   z-index: 999;
     Â   }
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 8:42 am

    ^
    Thanks! About the rank, most of us have only text rank except me which I have an icon before my rank title. I think all of my members have only automatic and special ranks without images on it.

    * Mouseover Profile Info King10
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 8:48 am

    I am not sure, but it should work properly depending on how the image is applied. I've not fully experimented with the code to find out, but applying a blank image seems to act as a hook for retrieving the rank text.
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 8:53 am

    Oh, it's still not working for me even though I applied the blank image as you said.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 8:54 am

    You applied image here correct?
    * Mouseover Profile Info Captur50
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 8:57 am

    Damn, my bad. Now it's working. Thanks!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: * Mouseover Profile Info

    Post by Ange Tuteur October 25th 2013, 8:58 am

    Welcome, I should of included that earlier, but I forgot. Razz
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Solved Re: * Mouseover Profile Info

    Post by JAN2XONLINE October 25th 2013, 9:00 am

    It's okay. Very Happy Thanks again.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: * Mouseover Profile Info

    Post by SLGray October 25th 2013, 6:31 pm

    Topic Solved & Locked



    * Mouseover Profile Info Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 22nd 2024, 11:24 pm