Custom bg code
3 posters
Page 1 of 1
Custom bg code
So, I am trying to allow custom backgrounds for admins and mods. I remember reading a thread that had a code
Now, I entered this in the CSS under the Colours and backgrounds for common.css
Thing is, it never worked. Is there supposed to be an extra add on and stuff?
Forum here:
http://narutobuddy.forumotion.com/
Thanks!
-FrostByte-
- Code:
$(function(e) {
$('.post:contains(Admin or Mod)').css('background-color','red');
});
Now, I entered this in the CSS under the Colours and backgrounds for common.css
Thing is, it never worked. Is there supposed to be an extra add on and stuff?
Forum here:
http://narutobuddy.forumotion.com/
Thanks!
-FrostByte-
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
Use this code instead:
Also when you add it make sure you check the box that says in all pages.
Now
If you use this code make sure in Rank Administration the Rank title is
You can also give this a read.
https://help.forumotion.com/t123317-change-the-post-background-color-of-a-specific-user
Look for the post by sir chavis.
- Code:
$(function() {
$('div.post:has(".admin1")').css('background','#F00 url(http://i.imgur.com/BVlbi.png) repeat-y');
});
Also when you add it make sure you check the box that says in all pages.
Now
If you use this code make sure in Rank Administration the Rank title is
- Code:
<span class="admin1">Rank Title Here</span>
You can also give this a read.
https://help.forumotion.com/t123317-change-the-post-background-color-of-a-specific-user
Look for the post by sir chavis.
Re: Custom bg code
Here's what happened.... this is the code for the CSS total
I changed the rank administrator the that:
Yet it still doesn't work. I thought I got close though.
- Code:
/*
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */
$(function() {
$('div.post:has(".admin1")').css('background','#F00 url(http://i.imgur.com/BVlbi.png) repeat-y');
});
}
html, body {
color: #536482;
background-color: #373737;
}
h1 {
color: #FFFFFF;
}
h2 {
color: #28313F;
}
h3 {
border-bottom-color: #CCCCCC;
color: #115098;
}
hr {
border-color: #FFFFFF;
border-top-color: #CCCCCC;
}
hr.dashed {
border-top-color: #CCCCCC;
}
I changed the rank administrator the that:
- Code:
<span class="admin1">Administrator</span>
Yet it still doesn't work. I thought I got close though.
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
Ok so i found out how to do it;
FrostByte wrote:Here's what happened.... this is the code for the CSS total
- Code:
/*
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */
$(function() {
$('div.post:has(".admin1")').css('background','#F00 url(http://i.imgur.com/BVlbi.png) repeat-y');
});
}
html, body {
color: #536482;
background-color: #373737;
}
h1 {
color: #FFFFFF;
}
h2 {
color: #28313F;
}
h3 {
border-bottom-color: #CCCCCC;
color: #115098;
}
hr {
border-color: #FFFFFF;
border-top-color: #CCCCCC;
}
hr.dashed {
border-top-color: #CCCCCC;
}
I changed the rank administrator the that:
- Code:
<span class="admin1">Administrator</span>
Yet it still doesn't work. I thought I got close though.
Remove all of that form your forum
Now in Rank Administration set the Rank title to
- Code:
<span class="Administrator">Administrator</span>
Then add this to Java script management
- Code:
$(function() {
$('.Administrator').Administrator('.post').addClass('Administrator-answer');
});
And now add this to your CSS style sheet:
- Code:
.post.online.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top, url("http://2img.net/i/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top #E5F1F9;
}
I Modfied it from a nother post to fit your needs hope i did it right.
This is where i got the code to modify for you:
https://help.forumotion.com/t112318-helpgroup-backgrounds#736903
Re: Custom bg code
Or just the add on and leave the original stuff there?
- Code:
/*
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */
$(function() {
$('div.post:has(".admin1")').css('background','#F00 url(http://i.imgur.com/BVlbi.png) repeat-y');
}); < Remove just this?
}
html, body {
color: #536482;
background-color: #373737;
}
h1 {
color: #FFFFFF;
}
h2 {
color: #28313F;
}
h3 {
border-bottom-color: #CCCCCC;
color: #115098;
}
hr {
border-color: #FFFFFF;
border-top-color: #CCCCCC;
}
hr.dashed {
border-top-color: #CCCCCC;
}
Ok, so I did that. Here is the current CSS.
- Code:
/*
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */
html, body {
color: #536482;
background-color: #373737;
}
h1 {
color: #FFFFFF;
}
h2 {
color: #28313F;
}
h3 {
border-bottom-color: #CCCCCC;
color: #115098;
}
hr {
border-color: #FFFFFF;
border-top-color: #CCCCCC;
}
hr.dashed {
border-top-color: #CCCCCC;
}
.post.online.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top, url("http://2img.net/i/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top #E5F1F9;
}
I don't know if I am supposed to remove EVERYTHING else besides that code? It still didn't show up, and it's set to all pages o.o
Last edited by FrostByte on 01.06.13 0:02; edited 1 time in total
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
remove just this:
So yes remove the add on and leave the orginal stuff.
i also had to tweak the code again so re read it i had to edit in a part i missed
- Code:
$(function() {
$('div.post:has(".admin1")').css('background','#F00 url(http://i.imgur.com/BVlbi.png) repeat-y');
});
So yes remove the add on and leave the orginal stuff.
i also had to tweak the code again so re read it i had to edit in a part i missed
Re: Custom bg code
Ok, here is the current code for the CSS
JS page managerment(Named Custom bg)
Rank title is:
Still isn't showing up. It's still showing the plain white bg.
- Code:
/*
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */
html, body {
color: #536482;
background-color: #373737;
}
h1 {
color: #FFFFFF;
}
h2 {
color: #28313F;
}
h3 {
border-bottom-color: #CCCCCC;
color: #115098;
}
hr {
border-color: #FFFFFF;
border-top-color: #CCCCCC;
}
hr.dashed {
border-top-color: #CCCCCC;
}
.post.online.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top, url("http://2img.net/i/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top #E5F1F9;
}
JS page managerment(Named Custom bg)
- Code:
$(function() {
$('.Administrator').Administrator('.post').addClass('Administrator-answer');
});
Rank title is:
- Code:
<span class="Administrator">Administrator</span>
Still isn't showing up. It's still showing the plain white bg.
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
Then try removeing everything from CSS.
and leaving just
.
And replace this in the java management page:
But if it does not, Then The only other thing i can think of is when i altered it i messeed it up so follow the exact way its written here:help.forumotion.com/t112318-helpgroup-backgrounds#736903
and leaving just
.
- Code:
post.online.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top, url("http://2img.net/i/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.Administrator-answer {
background: url("http://i.imgur.com/BVlbi.png") repeat-y scroll left top #E5F1F9;
}
And replace this in the java management page:
- Code:
$(function() {
$('.Administrator').closest('.post').addClass('Administrator-answer');
});
But if it does not, Then The only other thing i can think of is when i altered it i messeed it up so follow the exact way its written here:help.forumotion.com/t112318-helpgroup-backgrounds#736903
Last edited by Sir. Mayo on 01.06.13 0:46; edited 1 time in total
Re: Custom bg code
Tis my mistake. I forgot to enable it.
Thanks a lot! It works xD
*Mark as solved*
Thanks a lot! It works xD
*Mark as solved*
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
Ok Good what Code did you end yup Using, that way i can Mark at as this one to use, So others will know
Re: Custom bg code
CSS code:
Js manager code:
Rank title:
I changed the CSS picture to my own pic. But it worked. Thanks!
- Code:
.post.online.Administrator-answer {
background: url("http://i.imgur.com/kFOpiqv.jpg") repeat-y scroll left top, url("http://2img.net/i/fa/prosilver/icon_user_online_en.png") no-repeat scroll right top #E5F1F9;
}
.post.Administrator-answer {
background: url("http://i.imgur.com/kFOpiqv.jpg") repeat-y scroll left top #E5F1F9;
}
Js manager code:
- Code:
$(function() {
$('.Administrator').closest('.post').addClass('Administrator-answer');
});
Rank title:
- Code:
<span class="Administrator">Administrator</span>
I changed the CSS picture to my own pic. But it worked. Thanks!
FrostByte- New Member
- Posts : 9
Reputation : 1
Language : English
Re: Custom bg code
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Custom BB CODE!
» progress bar custom bb code
» Help needed with Custom Footer code
» I want to add a custom kotlin code BBcode
» Custom profile field direct code
» progress bar custom bb code
» Help needed with Custom Footer code
» I want to add a custom kotlin code BBcode
» Custom profile field direct code
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum