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.

Custom post background for groups

+2
Cassius Dio
Landshark
6 posters

Go down

Custom post background for groups Empty Custom post background for groups

Post by Landshark February 27th 2013, 3:25 am

I looked for a topic like this one, but I only found one for just regular post backgrounds..if I somehow missed it (which, I have a bad feeling I did.) then I apologize.

Spoiler:

This is the code I have now, but its only for a regular post background. I want different groups to have their own post background on topics. How do I do that?



Last edited by Landshark on February 27th 2013, 10:10 pm; edited 1 time in total
Landshark
Landshark
Forumember

Posts : 59
Reputation : 2
Language : English, Spanish

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Cassius Dio February 27th 2013, 5:43 am

Hi! Very Happy

1. Go to:
Administration Panel ~> Users & Groups ~> Ranks ~> Rank Administration. Edit the ranks you want to have a special background - Custom post background for groups Editer. Add to Rank Title :
Code:
<div class="backgpost">Moderator</div>

2. Go to:
Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes mangement. Create a new code, and add:
Code:
$(document).ready(function(){
$('.post').has('.backgpost').addClass('background_post');
});
Placement: Topics.

3. Go to:
Administration Panel ~> Display ~> Pictures and colors ~> Colors ~> CSS Stylesheet. Add this code:
Code:
.background_post{
background-image: url('http://i73.servimg.com/u/f73/18/02/55/91/12311.jpg');
background-repeat: repeat-x;
}
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Landshark February 27th 2013, 9:49 pm

I tried doing the steps, but it didn't show. Here's a topic my friend made as a "test" to try this:
http://sscfh.forumotion.com/t1-test#2

Landshark
Landshark
Forumember

Posts : 59
Reputation : 2
Language : English, Spanish

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Cassius Dio February 28th 2013, 6:43 am

Try to replace the JavaScript code I gaved you above with this one:
Code:
$(document).ready(function(){
$('.post:has(".backgpost")').addClass('background_post');
});
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Rhino.Freak February 28th 2013, 9:54 am

what exactly will it do? can anyone tell me?
Rhino.Freak
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 104
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Cassius Dio February 28th 2013, 6:14 pm

Hi, rhino.freak.

The codes above will set automatically a special background for staff memeber's posts. Like here:
https://help.forumotion.com/t121115-how-can-i-add-a-viewer-counter-for-the-topic-index#798987 - the left part is orange. Wink
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Cassius Dio March 5th 2013, 7:42 am

MAX-S wrote:Hi SSGS please post above code in my forum http://avacs.pforum.biz and i will try it for my forum staff members. Thanks
I'm sorry but as CJ11™️ said, this is considered as spam. You can always find this topic here, because it will not disappear. Shocked
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Base March 5th 2013, 9:53 am

@MAX-S: Please use a computer if you cannot copy and paste on your mobile. By posting solutions on your forum, it will only be helpful to you and not other members. If it is posted here in the support forum, other users can benefit too. Hence, we will not allow solutions to be posted elsewhere when it can be posted here.
Base
Base
Forumaster

Male Posts : 10386
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Sir Chivas™ March 5th 2013, 4:04 pm

MAX-S wrote:Your link is about only moderator bg color not for Admin, Co-admin and SuperModerator. I wanna say that Dark orange bg color for Admin, Light orange bg color for Co-admin, Golden yellow bg color for Top user, Dark Yellow bg color for SuperModerator and Dark green bg color for Moderators. So how to make it? Check my forum http://avacs.pforum.biz and i have 5 special users or legends as Admin, co-admin, top user, Supermoderator and moderator. So i want above bg colors for this legends or special members. Thanks

MAX-S wrote:Help Cool

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! This is your second reminder.


Please do not hijack other user's topics! Open your own topic(Second Reminder)
Sir Chivas™
Sir Chivas™
Helper
Helper

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

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Sanket March 5th 2013, 4:40 pm

No one is making new rules.
Please read the rules here.
https://help.forumotion.com/t93820-general-rules

About your problem, he is asking you to post in another thread so that its better to be noticed & could be easily answered.

Please follow the rules & respect the staff members.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Sir Chivas™ March 5th 2013, 4:41 pm

Sanket, he has a thread open related to his issues:
https://help.forumotion.com/t121309-special-bg-color-for-forum-saffs#800872


Thank you. Hope you understand.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

Back to top Go down

Custom post background for groups Empty Re: Custom post background for groups

Post by Sir Chivas™ March 5th 2013, 4:57 pm

Please refrain from posting here, that's all. It may be confusing to the creator of this thread. If you have any issues, please make sure to PM me. This doesn't need a response.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

Back to top Go down

Back to top


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