![]() |
Custom forum CSS per Forum, using the Forum Admin
Hi!
I am developping a new forum on http://www.papegaaienforum.com/ (meaning: parrotforum.com in dutch) and I needed to be able to change the header for each specific parrot via CSS and might also need to change other CSS for each specific forum so I wrote this small mod wich is optimized (fast, using variables already made available by vbulletin so no extra queries) and enables to configure CSS via the vBulletin admin as if it's available by default. It contains 1 phrase ("CSS") and requires 1 template mod to insert the new styles just below the <body> tag via the "header" template. It might be better to place the styles just above the </head> tag on each seperate forum and threadview template but this requires more work so I provide instructions for the most easy and simple way.
Btw, if you use subforums without CSS specified on a parrent that does have CSS specified it will use the CSS of the parrent (unlimited, so also if you have 100 levels of subforums). I am developping more mods btw, PM or contact me for more information. Have Fun! Jan Jaap |
Thanks for this hack....First to install! :) ;)
|
Hi!
Sorry to tell you this, but there is a cache bug. When you navigate from the homepage into a forum with difrent CSS it isn't loaded at first, but if you navigate further into a subforum or back to the mainpage, the CSS is suddenly loaded! I am working on a solution for it and let you know! If anyone has any idear as of why this happens, please let me know! Best Regards, Jan Jaap |
any demo?
|
Fixed!
I used the "session-cache" information and needed to combine the information with a difrent variable. Now it works perfectly! You can see an example here: http://www.papegaaienforum.com/forumdisplay.php?f=2 and then simply navigate to the root, it will load a difrent header image with parrots top right (200k+). Have Fun! Jan Jaap |
adult seo this is a realy nice mod. i was searching for a mod like this. Let me clear, with this mod i can change the header images per forum am i right?
|
Yes, you can make changes to any design on the forum, like colors, font types, width of the forum, background colors and images etc.
|
very nice...I am waiting for mod like that
|
I cant wait for this one
Quote:
|
Hi!
Yes, I will release it for free but I will probably demand a returnlink (small icon linking to http://www.publiceren.net/) as this mod costs a bit more time to do it verry well than the CSS mod. I will post it in a few days. Best Regards, Jan Jaap |
Isn't this a default feature in VB?
You can set vb to display different skins per forum already... |
Quote:
|
Thanks!
|
Hi.
Run css_install.php. I got this error. Quote:
|
Hi!
The error you received is from a difrent mod wich is probably trigered by "global_start" as the install script uses the global.php file to obtain a MySQL connection. It might be that this error occurs on all pages of your forum but that it isn't visible. As the result also stated "MySQL database updated, added field "css" to the forum table. " it means the CSS mod MySQL updated has been succesfull since you would otherwise receive a message stating it didn't work. What you could do to test wich product is causing the error is commenting the folowing line in the install script: PHP Code:
PHP Code:
You then simply enable/disable each product to see wich product is causing the error. Best Regards, Jan Jaap |
Hi,
Looks quite interesting. Would you be able to post a few screenshots of what the Forum Adminpanel looks like with this modification? Also, in your top post you don't have checked what gets changed with this mod. Quote:
|
Hi!
I've added screen captures and set the configuration options. Best Regards, Jan Jaap |
Seems to be working pretty darn well so far.
|
Where's the damn install button?
Edit: Never mind. Could have sworn there use to be an install button plus a text link. Must be losing it. |
<a href="https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=1312 75" target="_blank">https://vborg.vbsupport.ru/vborg...hreadid=131275</a>
|
Possible to have more flexibility with this? Like maybe the header and footer templates?
|
smoothie stop flooding!
|
Quote:
This mod will enable you to change everything that is styleable via CSS. Since almost everything on the forum is styled via CSS you can change the look of for example the footer or header easily. Best Regards, Jan Jaap |
A question - does this offer anything that the default 'Choose style for viewing this forum' option in Forum Manager does not?
|
Quote:
It will just save a lot of time and alow to easily change the CSS of a forum without the need to create templates, styles etc. and managing them all together. This will work based on 1 design, wich will make it easyer to update all forums and making minor changes to the CSS to for example just change the header image. It's just more simple and faster and saves a lot of work if you just want to change the header image or backgroundcolor for example. It's not meant for advanced style changes, just for minor CSS changes. Best Regards, Jan Jaap |
I thought that was the general idea but confused myself when I tried to work out how to change the header/header image and footer using CSS only, without making major changes to the vB core files. How do you manage to change the logo using css?
|
Well, you could remove the header image and put for example a div with the class "header_image".
You will then be able to format it as folowing: PHP Code:
Best Regards, Jan Jaap |
Quote:
|
hmmm, after your example adult seo, there is a question stuck in my mind. you gave a css code that only control the header part. i want to change my forums only header too but i dont understand one part: am i have to use only the header part of css code or the entire css code with the modified header part ?
|
With this MOD you just need to use the CSS code you want to change or aply as new. As this CSS code will be served to the browser after the original CSS code, it will override the original CSS code, it does not replace the original CSS code.
|
Does it include uninstall function?
|
Hi!
There is no uninstall function, but I don't think this would be demanded as the plugin is really simple and you can always disable it by turning the product off or uninstalling the product. If you uninstall the product then the database remains modified with the field "css" in the forum table. You could delete this field manualy. The code to do it is: PHP Code:
Jan Jaap |
Nice one, I can really use this for my hosted forums. Time to fire up Photoshop and create some custom headers. Thanks!
|
It works. Just add the desired amount of CSS you wish to change per forum.
|
I uninstalled as the header template edit caused a W3C validation error on my site...
|
Hi!
I've offered a solution for this in the description. It would be best to add the CSS code in the actual head of the page as this is also actualy required according to standards aldough it works fine if you place style code anywhere else on the site. So, to make it easy to install you can just put the styles just below the <body> tag via the header template but if you would like to make it W3C valid you should edit all main templates manualy and add the style tag between the <head> tags of each page. Best Regards, Jan Jaap |
I just spoke to Crist from Any Media, the number 1 media mod for vBulletin 3.5.x and we agreed that I will continue with Any Media and make it availabe for vBulletin 3.6.x.
The new version of Any Media will be called Any Media 3.6.x and will be official linked to from Any Media 3.5.x. I don't know yet if it will remain the same and if all features of the old version will remain and what new featured will be added but I will try to make it as perfect, stable, optimum and fast as possible. The mod will be free but will require a icon/link on the video display wich can be removed by paying a small fee. Best Regards, Jan Jaap |
Quote:
|
Hi Adult SEO,
is ist possible to tweak your add-on so that I can control CSS menu (Will use it for different sections of my forum). What I want is that I want match certain menu item with certain forum tree so that menu will stay "active" in all tree. CSS menu I want to use for it is here: http://unraveled.com/projects/css_tabs/ www.vbhackers.com use the menu the way I want it too. I mean menu: Home, Vbulletin hacks, Vbulletin templates etc. Thanks .-) |
can you make the same module for user profiles? i mean custom forum css per user profile.
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|