vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Sideblock header colour option. (https://vborg.vbsupport.ru/showthread.php?t=307178)

Davey-UK 01-18-2014 07:49 AM

Sideblock header colour option.
 
1 Attachment(s)
Hello all,

Does anyone have an idea as to how i would create another option for the header colour of forum blocks.

Ie: In my forum sidebar, the colour of the custom_html header is by default the same colour as my forum categories header.

I want to create a block for the sidebar with a different colour header for more important blocks.
When selecting the type of block on creation, maybe another option of "custom html red" or something like.
Please reply if you have any idea how to do this.
I have added a couple of screenshots to highlight what i mean.
Thanks.

ozzy47 01-18-2014 09:51 AM

What you could do is for the Template to Use you are choosing, is copy that template, rename it and add it as a new template, add your markup in the code, then save it and choose the new template for that block.

Davey-UK 01-18-2014 10:09 AM

Thanks ozzy. I tried that, but how to get it in the list is the problem.
What i have done is copy the code of block_html and create a template called blueblock_html.

What would i do now for that to appear in the list of "template to use"??
Thanks for getting involved. :)

ozzy47 01-18-2014 10:30 AM

I would not worry about it showing up in the list, can't you just manually type it in, and it works?

Davey-UK 01-18-2014 10:33 AM

Quote:

Originally Posted by ozzy47 (Post 2475123)
I would not worry about it showing up in the list, can't you just manually type it in, and it works?

God i'm a dumb ass. Brilliant thankyou. Works!!

ozzy47 01-18-2014 10:47 AM

LOL, no problem, sometimes the simple stuff is the hardest to figure out. :)


All times are GMT. The time now is 11:38 AM.

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.00981 seconds
  • Memory Usage 1,719KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete