Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
different background on different page
john_hrangkhol
New
Is it possible in vanillaforums to have a different background for each page, like if we view dog category page i want to used dog background image and cat category page then a cat background
0
Comments
easily with this plugin..
download the category image header plugin
http://vanillaforums.org/addon/categoryimageheader-plugin
doing this will replace the image header routine with your individualized .css for each category.
replace lines 108-128
with these lines.
comment out line 160-162 (the if statement)
create the one.css, two.css, etc. each with a different background image
in plugins/CategoryImageHeader/design
probably a million other ways - the way above should work for you.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
sorry, i'm confused now. i don't know how to used / how this categoryimageheader plugin work?
please guide me in detail
((vanilla version: 2.0.18.4 and categoryimageheader : v1.1))
step 1 -
replace the entire class.categoryimageheader.plugin.php in
/plugins/CategoryImageHeader
with this:
You can assign six different categories to six different css.
1) replace the
if you have a category named "cat" - go into settings for the plugin and add
e.g.
cat Add the NAME of the first Category
dog Add the NAME of the second Category
mouse Add the NAME of the third Category
rat Add the NAME of the fourth Category
snake Add the NAME of the fifth Category
monkey Add the NAME of the sixth Category
create
CategoryImageHeader/design/one.css
CategoryImageHeader/design/two.css
CategoryImageHeader/design/three.css
..
..
one.css refers to first category or cat in this case
two.css refers to second category or dog in this case.
in the file one.css
you could put elements like this.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
i was able to change only background image of content, but not the page background :-( . i don't know where i did mistake...!!!
when i view page info (firefox browser) >> media >> it doesn't show the path of the image
but it show the path of the content background image
i think we missed something.
well, now you know how to change things.
ok. I can't see your browser or what you did, I'm no mind-reader.
great - is that what you wanted.
We???
You will have to experiment, I gave you a start.
If you provide links, to your site, images you want showing, a mockup of what you want. Perhaps someone can help you further.
in this case the image has to be in the design directory of the plugin.
background-image:url('cat.jpg');
body {
background-image:url('cat.jpg'); !important
}
.Mine {
background-image:url('cat.jpg'); !important
}
div#Content div.DiscussionsTabs div.SubTab {
background-image:url('cat.jpg'); !important
}
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
ok i understood and thanks for helping, that help me alot in understanding its function.
I'm tryin but what i want is to change the website background image and not the Content background
and sorry for poor English
It probably is highly dependent on your theme, and since you haven't mentioned what your theme is, or provided a link, there ain't much to suggest.
However, e.g. with the Noise theme and the Traditional Chocolate theme
if you put this in one.css - the "external areas" will have the background image. You will probably need to to adjust your css to get exactly what you want.
#Frame {
background-image:url('cat.jpg'); !important
}
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
thanks again,
it is working now , and i'm using noise theme
i couldn't give a link because my site is not online now(testing).
it will be cool if you made this plugin for vanilla community
great.
I did - it is right up above.
download categoryimageheader.php
http://vanillaforums.org/discussion/comment/168476/#Comment_168476
and replace the above code. I don't think it is one of those must-have items.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.