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.

"Moderator's Comment" Text On Topic's Msgs?

View previous topic View next topic Go down

Solved "Moderator's Comment" Text On Topic's Msgs?

Post by J0k3R^ on April 29th 2014, 4:24 pm

HelloHi, how can i make a small area on right-top side of the topic msgs saying "Moderator's Comment" if a moderator post there? This is what i would like to have on my forum if its possible plz. i think its little hard code to be written but if someone knows how to make this possible i'd appreciate it Smile

something similar to this: (its from forumotion forum, dont remember link :/)



Something like my edited image:



Last edited by J0k3R^ on April 30th 2014, 2:48 pm; edited 1 time in total

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: "Moderator's Comment" Text On Topic's Msgs?

Post by Ange Tuteur on April 30th 2014, 2:29 pm

Hello J0k3R^,

First go to Administration panel > users and groups > rank administration

Edit or create a rank which wraps the text with the following tags :
Code:
<span id="staffPost"></span>

Result should be :
Code:
<span id="staffPost">Rank title</span>

Next apply this rank to a staff member and save.

Lastly add this to your javascripts :
Administration panel > modules > javascript codes management > create a new script

Title : what you wish
Placement : in the topics
Paste the code below and submit :
Code:
$(function() {
  $('.post:has(#staffPost)').find('.post-entry').css('background','url(http://i56.servimg.com/u/f56/18/21/60/73/icon_u16.png) no-repeat top right');
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: "Moderator's Comment" Text On Topic's Msgs?

Post by J0k3R^ on April 30th 2014, 2:40 pm

you are so amazing!! Very Happy

thank u !:wouhou:

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: "Moderator's Comment" Text On Topic's Msgs?

Post by Ange Tuteur on April 30th 2014, 3:18 pm

You're welcome :rose:

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
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