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.

Display both rank and group below username?

View previous topic View next topic Go down

Solved Display both rank and group below username?

Post by Manameh on 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
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 on January 25th 2014, 9:54 pm

Bump

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 on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

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

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

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 on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

Post by Manameh on 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)

And below is the post ranks set up for post counts.


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
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 on 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>

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Display both rank and group below username?

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

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

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 on January 25th 2014, 11:31 pm

You're welcome Smile

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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