The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Changing the poster's background based on their rank

View previous topic View next topic Go down

Changing the poster's background based on their rank

Post by sunside on Wed 01 Jan 2014, 10:35

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?

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 Wed 01 Jan 2014, 12:49

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

And what is your forum version?

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

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

Post by sunside on Sat 04 Jan 2014, 22:18

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
New Member

Female Posts : 10
Reputation : 0
Language : Bulgarian

Back to top Go down

View previous topic View next topic Back to top


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