Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Custom forum CSS per Forum, using the Forum Admin Details »»
Custom forum CSS per Forum, using the Forum Admin
Version: 1.00, by Adult SEO Adult SEO is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.3 Rating:
Released: 11-10-2006 Last Update: 11-10-2006 Installs: 23
DB Changes Uses Plugins Template Edits
 
No support by the author.

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

Have Fun!
Jan Jaap

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 11-14-2006, 10:31 AM
edenx edenx is offline
 
Join Date: Nov 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it include uninstall function?
Reply With Quote
  #33  
Old 11-14-2006, 11:06 AM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
ALTER TABLE `PREFIXforumDROP `css
Best Regards,
Jan Jaap
Reply With Quote
  #34  
Old 11-14-2006, 11:20 AM
Metal-R-US's Avatar
Metal-R-US Metal-R-US is offline
 
Join Date: Oct 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one, I can really use this for my hosted forums. Time to fire up Photoshop and create some custom headers. Thanks!
Reply With Quote
  #35  
Old 11-15-2006, 01:46 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works. Just add the desired amount of CSS you wish to change per forum.
Reply With Quote
  #36  
Old 11-16-2006, 09:08 AM
Metal-R-US's Avatar
Metal-R-US Metal-R-US is offline
 
Join Date: Oct 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uninstalled as the header template edit caused a W3C validation error on my site...
Reply With Quote
  #37  
Old 11-16-2006, 07:50 PM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 11-17-2006, 06:19 AM
Adult SEO's Avatar
Adult SEO Adult SEO is offline
 
Join Date: May 2006
Location: The Netherlands
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #39  
Old 11-17-2006, 08:46 AM
Metal-R-US's Avatar
Metal-R-US Metal-R-US is offline
 
Join Date: Oct 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adult SEO View Post
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
Thanks, I'll try it on my test forum first.
Reply With Quote
  #40  
Old 11-19-2006, 03:15 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .-)
Reply With Quote
  #41  
Old 11-24-2006, 02:14 PM
abramelin abramelin is offline
 
Join Date: Mar 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you make the same module for user profiles? i mean custom forum css per user profile.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:04 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
  • Page Generation 0.09116 seconds
  • Memory Usage 2,297KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete