vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Custom forum CSS per Forum, using the Forum Admin (https://vborg.vbsupport.ru/showthread.php?t=131275)

Adult SEO 11-10-2006 10:00 PM

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.
  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

Ajavas 11-11-2006 04:55 PM

Thanks for this hack....First to install! :) ;)

Adult SEO 11-11-2006 05:09 PM

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

abramelin 11-11-2006 05:11 PM

any demo?

Adult SEO 11-11-2006 05:30 PM

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

abramelin 11-11-2006 05:50 PM

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?

Adult SEO 11-11-2006 06:28 PM

Yes, you can make changes to any design on the forum, like colors, font types, width of the forum, background colors and images etc.

letsjoy 11-11-2006 06:45 PM

very nice...I am waiting for mod like that

Ntfu2 11-11-2006 07:24 PM

I cant wait for this one

Quote:

I am developping more mods btw, for example the reciprocal link system wich you can see on the example forum. It will display a toplist of pages that send traffic to your forum. Inactive links that don't send traffic for 7 days will be deleted, and there is a simple admin to ban pages. And, referrer affiliate spammers get detected by parsing the spamming page and verifying if the page contains a redirect or redirection header (301). Actualy, also links comming from secure pages like webmail pages will be banned.
And this one is a awesome hack. I'll be upgrading to 3.6.3 tonight, and this will be installed at the same time

Adult SEO 11-11-2006 08:00 PM

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


All times are GMT. The time now is 04:55 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.01102 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete