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.

Changing the poster's background based on their rank

2 posters

Go down

Changing the poster's background based on their rank Empty Changing the poster's background based on their rank

Post by sunside 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:
Changing the poster's background based on their rank 6908003E
(Where there's black, it should have been pink.)



Any ideas how to fix that?
sunside
sunside
New Member

Female Posts : 10
Reputation : 0
Language : Bulgarian

Back to top Go down

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

Post by Ikerepc 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?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

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

Post by sunside 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.
sunside
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