The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem changing color post for forum staff

3 posters

Go down

Solved Problem changing color post for forum staff

Post by mrgates12 September 16th 2012, 3:51 am

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


Last edited by mrgates12 on September 22nd 2012, 2:02 pm; edited 1 time in total
avatar
mrgates12
Forumember

Male Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by mrgates12 September 18th 2012, 3:00 pm

Hello.

I've found a decent bb3 skin, that I like. How do I proceed from here? Razz
avatar
mrgates12
Forumember

Male Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by nextlevelgaming September 19th 2012, 12:09 am

why would this only work for phpbb3? its css so???
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by nextlevelgaming September 19th 2012, 7:33 pm

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
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by mrgates12 September 21st 2012, 2:39 pm

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:
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');
Also, I did just like your tutorial, except replacing usernames.

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
avatar
mrgates12
Forumember

Male Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by nextlevelgaming September 21st 2012, 11:51 pm

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
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by mrgates12 September 22nd 2012, 12:40 am

Didn't make any difference. Sad
avatar
mrgates12
Forumember

Male Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by nextlevelgaming September 22nd 2012, 1:33 am

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;

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 Smile
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">
and
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 Mad


Last edited by nextlevelgaming on September 22nd 2012, 1:42 am; edited 1 time in total (Reason for editing : Added more information, twice :))
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by mrgates12 September 22nd 2012, 11:06 am

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? Smile

EDIT: Problem solved, it's now working. :wouhou:
avatar
mrgates12
Forumember

Male Posts : 41
Reputation : 1
Language : JS; CSS, HTML, BB :D
Location : Norway

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by nextlevelgaming September 22nd 2012, 2:16 pm

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 Smile I cant promise to be on all the time Smile
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Problem changing color post for forum staff

Post by Jophy September 22nd 2012, 2:16 pm

Topic Solved & Locked
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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