Display both rank and group below username? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
2 posters

    Display both rank and group below username?

    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Display both rank and group below username?

    Post by Manameh January 25th 2014, 12:23 pm

    Is there anyway to display both the non special rank icons and the group icons (displayed in the forum group legend) under the avatar of a member's post?

    I don't know if there is any script/HTML/java script but if there is to make this work, please post.

    Sorry for the wrong section if this is.
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Re: Display both rank and group below username?

    Post by Manameh January 25th 2014, 9:54 pm

    Bump
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Display both rank and group below username?

    Post by Ange Tuteur January 25th 2014, 10:09 pm

    Hello,

    Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!

    Please remember to read the rules

    Thank you !


    For phpbb3 if you want it to be automatic, you could do it through javascript.
    Administration panel > Modules > Javascript codes management > Create a new script

    Title : what you wish
    Placement : In the topics
    Code:
    $(document).ready(function() {

    // Group 1
    $('.postprofile dt:has(span[style="color:#C26400"])').after('<dd>Group text</dd>');

    // Group 2
    $('.postprofile dt:has(span[style="color:#0000FF"])').after('<dd>Group text 2</dd>');

    // ect..

    });

    For each group you have to change the hex color of this selector to a different groups color :
    Code:
    span[style="color:#0000FF"]

    Changing 0000FF to the color of your group will append a new field to the members of that group in the topics. The text content should be changed between the dd tags.

    If you don't know the hex color of your group you can see it here :
    Users and groups > group administration > edit your group

    Look for color of group members and copy the hex.
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Re: Display both rank and group below username?

    Post by Manameh January 25th 2014, 10:28 pm

    What do I place between the dd tags? I don't quite understand group text. Thanks!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Display both rank and group below username?

    Post by Ange Tuteur January 25th 2014, 10:32 pm

    Your text is currently 'Group text'
    Code:
    <dd>Group text</dd>

    The text between the dd tags above can be erased and changed to any texts you wish. Don't delete the dd tags though.
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Re: Display both rank and group below username?

    Post by Manameh January 25th 2014, 10:48 pm

    I think this is not what I wanted. Sorry. Sorry if I explained it wrong, it's close though. Here is an example of what I wanted.

    This is the special group. (Just an example)
    Display both rank and group below username? V7vz
    And below is the post ranks set up for post counts.
    Display both rank and group below username? Worldanimatedranks2

    I want the special group icon over the post count icons.
    And I only want the special group icon group text to be displayed.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Display both rank and group below username?

    Post by Ange Tuteur January 25th 2014, 11:06 pm

    It would have to be done like this then :
    Code:
    $(document).ready(function() {

        // Group 1
        $('.postprofile dt:has(span[style="color:#0000FF"])').after('<dd><img src="http://img842.imageshack.us/img842/1231/v7vz.png" /></dd>');
        
    });

    It's the same deal since we're using the group color again. You can change the image by editing the src url :
    Code:
    <dd><img src="http://img842.imageshack.us/img842/1231/v7vz.png" /></dd>

    If you want also text you can write :
    Code:
    <dd>Moderator<br/><img src="http://img842.imageshack.us/img842/1231/v7vz.png" /></dd>
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Re: Display both rank and group below username?

    Post by Manameh January 25th 2014, 11:26 pm

    Thanks a lot for your time. Much appreciated.
    Solved.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Display both rank and group below username?

    Post by Ange Tuteur January 25th 2014, 11:31 pm

    You're welcome Smile

    Topic solved and archived