Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Archived] Rank user in panel



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Jorgito

avatar
V.I.P. Member
V.I.P. Member
  • Description:
Hello wanted to know how I could get my rank in html:



Appears above the part where it says "send PM" "enviar mp"



If you can not do this no problem! thanks for everything


  • Information:
Forum:http://harek.foroac.org/Version:PUNBB
Type:Errors in codeTags:panel



the code js this effect is:

Code:
[panda=js]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>Rango:</b><span></span></p>
            <p><b>Temas:</b><span></span></p>
            <p><b>Registro:</b><span></span></p>
            <p><b>Puntos</b><span></span></p>
            <span class="linkPrf"><a href="/privmsg?mode=post&u='+jQuery(this).attr('href').replace('/u', '')+'">Enviar MP</a></span>
            <span class="linkPrf"><a href="'+jQuery(this).attr('href')+'">Ver perfil</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
            });



Powered by PunBB
Currently 0 users have thanked Jorgito for this post:

2
Offline

  Guest

avatar
Guest
Your rank must be a plain text if you use [ic]<span[/ic] or [ic]<div[/ic] tags, rank will not show up.

Code:
[panda=js]        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>Temas:</b><span></span></p>
                    <p><b>Registro:</b><span></span></p>
                    <p><b>Puntos</b><span></span></p>
<span class="linkPrf"><b>Rango:</b></span>
                    <span class="linkPrf"><a href="/privmsg?mode=post&u='+jQuery(this).attr('href').replace('/u', '')+'">Enviar MP</a></span>
                    <span class="linkPrf"><a href="'+jQuery(this).attr('href')+'">Ver perfil</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
                    });

Powered by PunBB
Currently 0 users have thanked Guest for this post:

3
Offline

  Jorgito

avatar
V.I.P. Member
V.I.P. Member
¿Cómo podría sacar la parte donde dice rango? porque no me anda el código que dejaste. Lo saco ..

How could you remove the part where it says rank? because he does not let me the code. It out ..

Powered by PunBB
Currently 0 users have thanked Jorgito for this post:

4
Offline

  Shadow

avatar
Administrator
Administrator
Please post a screenshot.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

5
Offline

  Jorgito

avatar
V.I.P. Member
V.I.P. Member
Shadow wrote:[link="/t614-rank-user-in-panel#3644"]Please post a screenshot.

http://i.imgur.com/b5a458D.png

esto?

Powered by PunBB
Currently 0 users have thanked Jorgito for this post:

6
Offline

  Shadow

avatar
Administrator
Administrator
With a code provided by Rapid also you are still using HTML in ranks.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

7
Offline

  Jorgito

avatar
V.I.P. Member
V.I.P. Member
I do not understand what you mean

Powered by PunBB
Currently 0 users have thanked Jorgito for this post:

8
Offline

  Guest

avatar
Guest
Jorgito wrote:[link="/t614-rank-user-in-panel#3657"]I do not understand what you mean
What he means is that you need to remove <span class from your ranks, just to have normal text like here on punbb.biz in order to display it when someone mouseover profile.
For example:


After that just put the code which i posted in #3638

Powered by PunBB
Currently 0 users have thanked Guest for this post:

9
Offline

  Guest

avatar
Guest
[aviso="Thread Archived"]Original poster seems to be inactive and didn't respond within 7 days in this thread. Because of this, the topic has been Archived.

If you have further questions, please open a new topic.[/aviso]

Powered by PunBB
Currently 0 users have thanked Guest for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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