Back to vBulletin 3.6 Add-ons

Custom forum CSS per Forum, using the Forum Admin
Mod Version: 1.00, by Adult SEO

This modification is in the archives.
vB Version: 3.6.3 Rating: (1 vote - 4.00 average) Installs: 23
Released: 11 Nov 2006 Last Update: 11 Nov 2006 Downloads: 80
Not Supported DB Changes Uses Plugins Template Edits  

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.
  1. Upload css_install.php to your forum root (e.g. / or /forum/)
  2. Run the script, it will return an confirmation message that the instalation is completed. It will add one field to the forum table ("css"/TEXT).
  3. Import the included product (product-custom_forum_css.xml)
  4. Edit the "header" template and put the folowing code on very top of the template:
    1. <style type="text/css">
      $forum_css_code
      </style>
Now you will be able to aply CSS code per forum via the Forum Adminpanel, there is a new CSS textarea input on the bottom of the edit and add forum forms.

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 email for more information.

Have Fun!
Jan Jaap

Download

This modification is archived, downloads are still allowed.

File Type: %1$s css_install.php (1.4 KB, 104 downloads)
File Type: %1$s product-custom_forum_css.xml (1.9 KB, 101 downloads)

Supporters / CoAuthors

  • Adult SEO

Screenshots

Click image for larger version
Name:	css_mod_admin_screencapture.jpg
Views:	288
Size:	71.7 KB
ID:	55850   Click image for larger version
Name:	css_mod_forum_screencapture_1.jpg
Views:	366
Size:	94.9 KB
ID:	55851   Click image for larger version
Name:	css_mod_forum_screencapture_2.jpg
Views:	272
Size:	99.2 KB
ID:	55852   Click image for larger version
Name:	css_mod_forum_screencapture_4.jpg
Views:	234
Size:	102.8 KB
ID:	55853  

Click image for larger version
Name:	css_mod_forum_screencapture_5.jpg
Views:	189
Size:	91.1 KB
ID:	55854  


vblts.ru supports vBulletin®, 2022-2025