Problem changing color post for forum staff
3 posters
Page 1 of 1
Problem changing color post for forum staff
Hi
So I've browsed through to figure out how I can change staff's background color (image), like the staffs have it here on FM. I tried the methods I've found in here, but the closest I got, was 100% color change. I want to have the color to fade from left to right.
Please note that I have phpbb2 installed, and are very happy with the template I've got. Thank you.
Edit: the method I tried was from Rideem at http://www.malware-site.www/t17p30-how-to-modify-the-post-background-of-a-specific-user
So I've browsed through to figure out how I can change staff's background color (image), like the staffs have it here on FM. I tried the methods I've found in here, but the closest I got, was 100% color change. I want to have the color to fade from left to right.
Please note that I have phpbb2 installed, and are very happy with the template I've got. Thank you.
Edit: the method I tried was from Rideem at http://www.malware-site.www/t17p30-how-to-modify-the-post-background-of-a-specific-user
Last edited by mrgates12 on September 22nd 2012, 2:02 pm; edited 1 time in total
mrgates12- Forumember
- Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway
Re: Problem changing color post for forum staff
Hello.
I've found a decent bb3 skin, that I like. How do I proceed from here?
I've found a decent bb3 skin, that I like. How do I proceed from here?
mrgates12- Forumember
- Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway
Re: Problem changing color post for forum staff
How could i get this to work for phpbb2? in any sort of way? such as a background image or something. There has to be a way to make it work
Re: Problem changing color post for forum staff
Thanks for replying. I'le followed all your steps, but no luck just yet. To make a summary of everything I've done,
I started off adding js:
Then, I added the CSS, like so:
That's pretty much everything I've done. In case you need to have a look yourself, here's my forum adress;
I started off adding js:
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(b){return b.replace(a,"\\$&")}})();var postbg={add:function(a,c){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=$(".postprofile").get();for(i=0;i<b.length;i++)RegExp("^"+a+"$","g").test($(b[i].getElementsByTagName("a")[1]).text())&&$(b[i]).closest(".post").addClass(c)})}};postbg.add('CoolDesign, Deathstreem'', 'specialposts');
Then, I added the CSS, like so:
- Code:
/* Staff background-----------------------------------------*/
.specialposts {
background: url("http://i48.servimg.com/u/f48/17/48/49/15/photo10.png") repeat-y scroll left top #E5F1F9;
}
That's pretty much everything I've done. In case you need to have a look yourself, here's my forum adress;
- Code:
http://excentric.all-up.com/forum
mrgates12- Forumember
- Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway
Re: Problem changing color post for forum staff
- Code:
)})}};postbg.add('CoolDesign, Deathstreem'', 'specialposts');
not sure if this effecting your js file mrgates, but after deathstreem you have two '', it should be as so
- Code:
postbg.add('CoolDesign, Deathstreem','specialposts');
let me know after you have fixed this what occurs, if still not correct ill take a closer look into your website
Re: Problem changing color post for forum staff
Didn't make any difference.
mrgates12- Forumember
- Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway
Re: Problem changing color post for forum staff
ok so lets start off from step 1 then, if you can give me about 30 minutes ill check everything out on your site. Do you have a login for guest/help? If so just pm and ill get down to some of it.
I checked up on some things, i see 3 js files loaded;
I know one is for the new like system phpbb3
other one is navbar by dion
and other one is Fancybox
------
point being the js file you need is not loading in topics. Did you tick IN TOPICS?
Also sometimes fancybox will overpower other codes, so what i do is generate the css for other js on top of the css for fancy.
Let me know about your js file in topics, and what number it is i.e. 14988.js 99829.js 15653.js what is this ones number.
ONE MORE THING
for some reason your source calls two jQuery lib
You only need one if you added one just delete. Sorry for all the edits
I checked up on some things, i see 3 js files loaded;
- Code:
<script type="text/javascript" src="/99829.js"></script>
<script type="text/javascript" src="/14988.js"></script>
<script type="text/javascript" src="/15653.js"></script>
I know one is for the new like system phpbb3
other one is navbar by dion
and other one is Fancybox
------
point being the js file you need is not loading in topics. Did you tick IN TOPICS?
Also sometimes fancybox will overpower other codes, so what i do is generate the css for other js on top of the css for fancy.
Let me know about your js file in topics, and what number it is i.e. 14988.js 99829.js 15653.js what is this ones number.
ONE MORE THING
for some reason your source calls two jQuery lib
- Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
- Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
You only need one if you added one just delete. Sorry for all the edits
Last edited by nextlevelgaming on September 22nd 2012, 1:42 am; edited 1 time in total (Reason for editing : Added more information, twice :))
Re: Problem changing color post for forum staff
Hello, and thanks for replying!
If you registered to my forum, we could discuss on the forum chat box there. Besides, I could give you permissions to edit the CSS and JS?
EDIT: Problem solved, it's now working.
If you registered to my forum, we could discuss on the forum chat box there. Besides, I could give you permissions to edit the CSS and JS?
EDIT: Problem solved, it's now working.
mrgates12- Forumember
- Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway
Re: Problem changing color post for forum staff
AHHH Mrgates I'm So glad it is working now haha. How did it all of sudden work? just randomly? I will sign up, its no problem to me I cant promise to be on all the time
Re: Problem changing color post for forum staff
Topic Solved & Locked |
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum