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.

change the point post with reputation

Go down

Solved change the point post with reputation

Post by erchima on March 31st 2014, 4:39 am

how to replace the point post with reputation on mouse over profile?

javascript
Code:
jQuery(document).ready(function(){
            jQuery('.tcr a[href*="/u"]').mouseover(function(){
            jQuery(this).parents('strong').css('position', 'relative');
            jQuery('.perfilInfo').remove();
            jQuery(this).parents('.tcr').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>Group: <span></span></p></b>
            <p><b>Post: <span></span></p></b>
            <p><b>Joined: <span></span></p></b>
            <p><b>Points: <span></span></p></b>
            <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('#profile-advanced-right img:first', retornoMembro).attr('src');
            jQuery('.PerfilInfoImg').attr('src', avtPrf);
            var perfil_rank = jQuery('#profile-advanced-right .module .main-content 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
            });
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Solved Re: change the point post with reputation

Post by Pizza Boi on March 31st 2014, 4:44 am

Hi Very Happy

Please replace your script with this:

Code:
jQuery(document).ready(function(){
            jQuery('.tcr a[href*="/u"]').mouseover(function(){
            jQuery(this).parents('strong').css('position', 'relative');
            jQuery('.perfilInfo').remove();
            jQuery(this).parents('.tcr').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>Group: <span></span></p></b>
            <p><b>Post: <span></span></p></b>
            <p><b>Joined: <span></span></p></b>
            <p><b>Reputation: <span></span></p></b>
            <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('#profile-advanced-right img:first', retornoMembro).attr('src');
            jQuery('.PerfilInfoImg').attr('src', avtPrf);
            var perfil_rank = jQuery('#profile-advanced-right .module .main-content 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
            });

Regards,
Pizza Boi
avatar
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: change the point post with reputation

Post by erchima on March 31st 2014, 6:51 am

@Pizza Boi wrote:Hi Very Happy

Please replace your script with this:

Code:
jQuery(document).ready(function(){
            jQuery('.tcr a[href*="/u"]').mouseover(function(){
            jQuery(this).parents('strong').css('position', 'relative');
            jQuery('.perfilInfo').remove();
            jQuery(this).parents('.tcr').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>Group: <span></span></p></b>
            <p><b>Post: <span></span></p></b>
            <p><b>Joined: <span></span></p></b>
            <p><b>Reputation: <span></span></p></b>
            <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('#profile-advanced-right img:first', retornoMembro).attr('src');
            jQuery('.PerfilInfoImg').attr('src', avtPrf);
            var perfil_rank = jQuery('#profile-advanced-right .module .main-content 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
            });

Regards,
Pizza Boi
-_-"
if only writing REPUTATION course, I also can, but after writing it must be a reputable reputation point, not the post points
edit here
Code:
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);
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Solved Re: change the point post with reputation

Post by Ange Tuteur on March 31st 2014, 7:05 am

You would most likely need to change the field ID retrieved, try this :
Code:
    jQuery(document).ready(function(){
                jQuery('.tcr a[href*="/u"]').mouseover(function(){
                jQuery(this).parents('strong').css('position', 'relative');
                jQuery('.perfilInfo').remove();
                jQuery(this).parents('.tcr').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>Group: <span></span></p></b>
                <p><b>Post: <span></span></p></b>
                <p><b>Joined: <span></span></p></b>
                <p><b>Reputation: <span></span></p></b>
                <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('#profile-advanced-right img:first', retornoMembro).attr('src');
                jQuery('.PerfilInfoImg').attr('src', avtPrf);
                var perfil_rank = jQuery('#profile-advanced-right .module .main-content 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-14 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
                });

If I remembered correctly, it should be 14
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: change the point post with reputation

Post by erchima on March 31st 2014, 11:01 am

i already change to 14 but doesn't work

I think it should edit this part but I can not
Code:
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);


EDIT:
its work, I mistakenly wrote 15
im sorry
and thank you very much  :wouhou:  kiss
avatar
erchima
Forumember

Female Posts : 629
Reputation : 15
Language : INDONESIAN | Lua Script | Visual Basic | and Coding
Location : Under your bed xD

http://erchimacute.forumid.net

Back to top Go down

Solved Re: change the point post with reputation

Post by Ange Tuteur on March 31st 2014, 11:12 am

You're welcome :rose:

Topic solved and archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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