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.

Display both rank and group below username?

2 posters

Go down

Solved Display both rank and group below username?

Post by Manameh January 25th 2014, 4: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

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Manameh January 26th 2014, 1:54 am

Bump
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Ange Tuteur January 26th 2014, 2:09 am

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Manameh January 26th 2014, 2:28 am

What do I place between the dd tags? I don't quite understand group text. Thanks!
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Ange Tuteur January 26th 2014, 2:32 am

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Manameh January 26th 2014, 2:48 am

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.
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Ange Tuteur January 26th 2014, 3:06 am

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>
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Manameh January 26th 2014, 3:26 am

Thanks a lot for your time. Much appreciated.
Solved.
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Ange Tuteur January 26th 2014, 3:31 am

You're welcome Smile

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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