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.

I need a code to make admin posts colored

View previous topic View next topic Go down

In progress I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 2:28 pm

Any one have a code to make admin posts colored:?: Question Question Question Question Question Question Question Question

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by Ikerepc on October 26th 2013, 3:05 pm

Hello

1. What forum version you have
2. Are you want color or image, like staff on this forum have? (That orange gradient is image)

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 8:04 pm

phpbb3
And i want theorange gradient

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 26th 2013, 8:42 pm



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 9:17 pm

I did noT get what to do SLGRAY

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 26th 2013, 9:25 pm

Administration Panel > Users & Usergroups > Ranks
Add this to the titles of the ranks you want to have the background.
Code:
    <span class="st-rang">RANK TITLE HERE</span>
Administration Panel > Modules > HTML?JavaScript > JavaScript Management
Create a new JavaScript and mark in topics/messages.
Code:
$(function() {
$('.st-rang').closest('.post').addClass('st-answer');
});
Administration Panel > Display > Colors & Pictures > Colors
CSS Stylesheet Tab
Add this to your CSS:
Code:
        .post.online.st-answer {
        background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top, url("http://illiweb.com/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
        }
        .post.st-answer {
        background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top #E5F1F9;
This is the same code we use.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 9:34 pm

not working

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by Ikerepc on October 26th 2013, 10:00 pm

Are your JavaScript On?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 10:07 pm

please tell me how to turn it on

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 26th 2013, 11:05 pm

At the top where the JavaScripts are listed is the on and off option.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 26th 2013, 11:07 pm

its onSmile

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 26th 2013, 11:13 pm

Did you add the rank titles in the code?

For example: For administrators
Code:
 <span class="st-rang">Administrator</span>


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 27th 2013, 12:54 am

still not working =(

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by Ange Tuteur on October 27th 2013, 1:29 am

I checked your stylesheet, but I did not find st-answer. Please add this to your stylesheet. It will not display if you don't add it.

@SLGray wrote:Administration Panel > Display > Colors & Pictures > Colors
CSS Stylesheet Tab
Add this to your CSS:
Code:
  .post.online.st-answer {
  background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top, url("http://illiweb.com/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
  }
  .post.st-answer {
  background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top #E5F1F9;
This is the same code we use.

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by levy on October 27th 2013, 1:34 am

He want to change the color not to add a gradiend , replace the old javascript with this one :

Code:
$(function() {
$('.st-rang').closest('.postbody .content').addClass('st-answer');
});
And now , go in administration Panel -> Display -> Colors -> CSS Stylesheet
Code:
.st-answer {
color:red;
}
You need to have the rank as :

Code:
<span class="st-rank">YOUR RANK TITLE</span>

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 27th 2013, 2:45 am

candy_fear wrote:He want to change the color not to add a gradiend , replace the old javascript with this one :

Code:
$(function() {
$('.st-rang').closest('.postbody .content').addClass('st-answer');
});
And now , go in administration Panel -> Display -> Colors -> CSS Stylesheet
Code:
.st-answer {
color:red;
}
You need to have the rank as :

Code:
<span class="st-rank">YOUR RANK TITLE</span>
He said that he wants the orange gradiant, which is an image.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 27th 2013, 2:47 pm

So now what? I don't know what to do! But thanks to ZYON,SLGRAY,candy_fear and seth for trying to help me


Last edited by ddoesmc on October 27th 2013, 9:41 pm; edited 1 time in total

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 27th 2013, 5:37 pm

Add the CSS code to the top of your CSS stylesheet.

Please don't use bold or color. Please keep to the default text. This is reserved for the staff for moderation.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by ddoesmc on October 27th 2013, 10:01 pm

i am so dumb but...

where is the css

ddoesmc
Forumember

Male Posts : 283
Reputation : 10
Language : Mainly english
Location : New Jersey

http://www.officialmc.forumotion.com

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by SLGray on October 27th 2013, 10:02 pm

Administration Panel > Display > Colors & Pictures > Colors
CSS Styelsheet Tab


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: I need a code to make admin posts colored

Post by Ikerepc on October 27th 2013, 10:09 pm

It need work. When you are put code in css save it, in javascript, save it, in members rank, and it need to be all.

If I can give you that link, here is orange gradient of staff on this forum: https://i48.servimg.com/u/f48/17/48/49/15/photo10.png

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.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