Post Background Toggle

Go down

In progress Post Background Toggle

Post by viper8421 on Thu Mar 14, 2013 3:37 am

So I have been using this code to change the background of the posts my mods make. Though they want it to be possible to toggle the function on or off. Would it be possible to work with the Java and make it so if they have something on it will change the background, but if not they can just leave it normal?

CODE:
Spoiler:
CSS
Code:
/*Color posts*/
.background_post{
background-image: url('http://illiweb.com/fa/pbucket.gif');
 background-repeat: repeat-y;
}

JAVASCRIPT
Code:
$(document).ready(function(){
$('.post:has(".backgpost")').addClass('background_post');
});

Ranks
Code:
<div class="backgpost">Moderator</div>


Last edited by viper8421 on Tue Mar 19, 2013 10:15 am; edited 1 time in total

viper8421
New Member

Posts : 13
Reputation : 1
Language : English

http://justdubsrefuge.omgforum.net

Back to top Go down

In progress Re: Post Background Toggle

Post by Sir Chivas™ on Thu Mar 14, 2013 3:46 am

You can create a rank without the tags. I don't think there isn't anyother way. Sorry.




Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please y it as solved.


avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Post Background Toggle

Post by viper8421 on Thu Mar 14, 2013 4:28 am

Hmm i was thinking maybe if an "if" statement is in the JS, where if you had something selected in the Profile fields, or on the post bar kinda like the ", , and ", to get it to show.

viper8421
New Member

Posts : 13
Reputation : 1
Language : English

http://justdubsrefuge.omgforum.net

Back to top Go down

In progress Re: Post Background Toggle

Post by viper8421 on Mon Mar 18, 2013 9:24 am

Bump just for hope. if it can't be done I understand.

viper8421
New Member

Posts : 13
Reputation : 1
Language : English

http://justdubsrefuge.omgforum.net

Back to top Go down

Back to top


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