Changing the poster's background based on their rank

Go down

Changing the poster's background based on their rank

Post by sunside on January 1st 2014, 10:35 am

Hello! So, for some time I've been trying to put a different color background depending on the user's rank in messages.

I edited the java script for the post background depending if you're boy or girl, and it works. For example, admin:

Code:
$(function() { 
      $(".postdetails img[title='Admin']").closest('.postdetails').parent('td').addClass("poster_admin").next('td');
 
});

But there's one problem. When I put a border and border radius, there are some "cut out" parts that are not supposed to be there. Here's a pic:

(Where there's black, it should have been pink.)



Any ideas how to fix that?
avatar
sunside
New Member

Female Posts : 10
Reputation : 0
Language : Bulgarian

Back to top Go down

Re: Changing the poster's background based on their rank

Post by Ikerepc on January 1st 2014, 12:49 pm

hello.
What is your forum adress? I think it is because of background...

And what is your forum version?
avatar
Ikerepc
Active Poster

Male Posts : 1150
Reputation : 155
Language : Croatian, HTML, HTML5, CSS, CSS3, jQuery, PHP, SQL, Bascom, Python, C, C++, FBD & LAD for PLC and more... Little English :D
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Re: Changing the poster's background based on their rank

Post by sunside on January 4th 2014, 10:18 pm

http://hushhush.bulgarianforum.net/ it's phpBB2.
It's not from the BG. I managed to figure out (after I read the forum template a few times) that tha JavaScript makes the new class around the poster column so that's why there're black... places?
I tried multiple times to find a way to create the new class just around the poster-profile (cause that's what I need), but I cant't.
avatar
sunside
New Member

Female Posts : 10
Reputation : 0
Language : Bulgarian

Back to top Go down

Back to top


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