vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - DRC - HeadUrz (Custom headers per forum and per thread) (https://vborg.vbsupport.ru/showthread.php?t=329160)

Dr.CustUmz 02-23-2022 10:00 PM

DRC - HeadUrz (Custom headers per forum and per thread)
 
1 Attachment(s)
This could come in useful for a rules thread, a updates thread or any other threads you may find could use it's own custom header.

I would not recommend on a big site at the moment, I have yet to add permissions, but you could use it in a forum that only admins and mods can post new threads.

This will not use auto template edits because headers can vary on a per site basis, i could make this replace the header template entirely, and your custom code would need to include the ENTIRE header, but I know for the needs I made this I only need portion of my header replaced, since my navigation is very custom and within my header., and I feel those who will use this would know a little coding anyhow.

Sooo to make it work this is how I apply it, in header template the section I want to replace with custom templates i wrap with:
Code:

<if condition="$threadinfo[headurz]">
$threadinfo[headurz]
<else />
<if condition="$forum_header_code">
$forum_header_code
<else />
MY HEADER CODE
</if></if>

If you aren't seeing the text area when creating or editing a thread be sure to check forum manager and enable the option.

Dr.CustUmz 02-24-2022 07:14 AM

Updated with support for per forums as well as per thread.

Explanation of how it works:
You set a custom header for a section within the forum manager.
All child forums will also get this header UNLESS you define one for them specifically for a child forum. If a thread within those forums has a custom header, it will override any previous set headers.

Modify forum headers via the forum manager, modify thread headers pretty much anywhere you edit a thread (new thread, edit 1st post, admin edit thread).

TO DO:
usergroup permissions to be able to apply custom headers.
header editor on forumdisplay pages.


All times are GMT. The time now is 11:24 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.00947 seconds
  • Memory Usage 1,710KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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