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.

Special bg color for forum saffs

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

In progress Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 7:46 am

This is the java sprict code $(document).ready(function(){
$('.post').has('.backgpost').addClass('background_post');
});


Last edited by MAX-S on March 7th 2013, 2:39 pm; edited 1 time in total (Reason for editing : rename)

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Sanket on March 5th 2013, 7:56 am

Sorry, but you can check back for the codes when you are on your computer.

The thread with the solution is already given to you.
http://help.forumotion.com/t121306-how-to-set-image-for-forums#800674
http://help.forumotion.com/t121042-custom-post-background-for-groups#800697

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 9:52 am

Ok but if i want different bg color for admin, co admin, Supermoderator and moderator then i need different code for it?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 5th 2013, 9:55 am

You will need to add a different background for each rank, yes. Simply repeat the steps given here but change it accordingly so it's different for each rank.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 10:28 am

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
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 5th 2013, 11:43 am

I realise that, which is why you need to create different classes for each rank. Example:

Code:
<div class="backgpost">Admin</div>

Code:
<div class="backgpost2">Moderator</div>

Notice how the class is different in each case. Then, simply apply that class to the CSS. Follow the steps required if you are not sure.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 12:53 pm

Please clear it....where i will put those above codes?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 5th 2013, 4:36 pm

Those will be your rank titles. The rest of steps can be found in the topic I've given you in one of my previous posts.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 4:40 pm

Yes but SGSS posted code for CSS. I opened my CSS stylelist but where i will put that code for CSS?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 5th 2013, 4:43 pm

Post it at the top of your CSS. But make sure the classes are changed for each rank.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 5:17 pm

you gave me 2 example codes for admin and moderator rank tittles but if i make more ranks. For example, Supermoderator and Top user then what can i do? And for every ranks i need to post same code for CSS?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 5th 2013, 5:33 pm

You change the 'backgpost' part in:

Code:
<div class="backgpost">Admin</div>

...to something else. You can change it to anything you want.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 7:49 pm

i can change backpost part in to something else. Please for example?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by SLGray on March 5th 2013, 7:52 pm

Code:
    <div class="backgpost">Admin</div>
In the above, you will change this part for each rank: BACKGPOST.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 5th 2013, 7:58 pm

If i want moderator bg color is green then backpost will be?? What? And if i want supermoderator bg color is yellow then back post will be??

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by SLGray on March 5th 2013, 10:07 pm

You said that you had 5 ranks:

First:
Code:
    <div class="backgpost">Rank 1</div>
Second:
Code:
  <div class="backgpost2">Rank 2</div>
Third:
Code:
      <div class="backgpost3">Rank 3 </div>
Fourth:
Code:
<div class="backgpost4">Rank 4</div>
Fifth:
Code:

        <div class="backgpost5">Rank 5</div>
Notice that each rank has a different class. You will need to add CSS for each different rank.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 3:30 am

Ok you mean i need to add 5 CSS code for 5 ranks? And css code will be same for 5 ranks?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 8:16 am

I need to add different CSS for this 5 ranks? Please clear it

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by SLGray on March 6th 2013, 8:39 am

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!

Since this is you third reminder, you have received a warning.
The five codes I posted will go in the ranks' titles. Then you will use the class in your CSS to create the backgrounds for the five ranks.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36673
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 9:15 am

Main problem, What is the classes of 5 ranks? Please post codes for classes and i need to put java scripts code for changing bg color?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 6th 2013, 9:23 am

Okay, I will explain it for you step by step. This is an example rank:

Code:
<div class="backgpost">Rank</div>
You will need to add this to your rank title in the rank administration section. Next, you will need to add this to your Javascript code management:

Code:
$(document).ready(function(){
$('.post').has('.backgpost').addClass('background_post');
});
Set the placement to topics. Lastly, please add this to your CSS:

Code:
.background_post{
background-image: url('http://i73.servimg.com/u/f73/18/02/55/91/12311.jpg');
background-repeat: repeat-x;
}

If you want to repeat this for different ranks, then you will need to change the 'backgpost' and 'background_post' something else. I hope this has been explained clear enough.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 10:42 am

ok but if i want my personal choice bg color for it? I mean if i want orange bg color for admin and green bg color for moderators then what should i need to do?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 6th 2013, 10:47 am

Modify the CSS element:

Code:
.background_post{
    background-color: YOUR COLOUR;
}

Replace 'YOUR COLOUR' with your own colour.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 11:21 am

@Base wrote:Modify the CSS element:

Code:
.background_post{
    background-color: YOUR COLOUR;
}

Replace 'YOUR COLOUR' with your own colour.
but you provide me css code for image above i mean after background-post it is Background image . So i neead make it background color with html color code?

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 6th 2013, 11:46 am

You can use either 'background-image' or 'background-color'

You said:
personal choice bg color
So, if you want a background colour then you'll need to use the correct one.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 1:38 pm

its not working. Please see my forum http://avacs.pforum.biz and this forum theme version phpbb2(subsilver) i am trying all codes above but not working...so whats the problem?


Last edited by MAX-S on March 6th 2013, 2:14 pm; edited 1 time in total (Reason for editing : change)

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 6th 2013, 3:45 pm

Please post all the codes that you have added. This includes the rank titles, CSS and Javascript.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 4:11 pm

Can you please post above tittle, css and java scpripts code in my forum http://avacs.pforum.biz i can not copy code here properly so please post above code in my forum i will edit code from your post. Thanks

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by Base on March 6th 2013, 4:14 pm

You have asked this before and the answer was no. Support is given here. There is no reason for it to be posted on your forum.

I don't understand what the problem is.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

In progress Re: Special bg color for forum saffs

Post by MAX-S on March 6th 2013, 4:20 pm

ok bro please check your pm. And please reply me

MAX-S
Forumember

Male Posts : 136
Reputation : 2
Language : English, Bengali, Hindi
Location : Bangladesh

http://avacs.pforum.biz

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


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