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.

Post Background Toggle

View previous topic View next topic Go down

In progress Post Background Toggle

Post by viper8421 on March 13th 2013, 8:37 pm

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://i1096.photobucket.com/albums/g330/viper8421/CM_zps8dfb9075.png');
 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 March 19th 2013, 3: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 March 13th 2013, 8:46 pm

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 mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: Post Background Toggle

Post by viper8421 on March 13th 2013, 9:28 pm

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 March 18th 2013, 2: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

View previous topic View next topic Back to top


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