Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
DRC - HeadUrz (Custom headers per forum and per thread) Details »»
DRC - HeadUrz (Custom headers per forum and per thread)
Version: 1.0.0, by Dr.CustUmz Dr.CustUmz is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.11 Rating:
Released: 02-23-2022 Last Update: 02-23-2022 Installs: 1
Supported DB Changes Uses Plugins Template Edits Auto-Templates
 

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.

Download Now

File Type: xml DRC - HeadUrz.xml (11.9 KB, 9 views)

Show Your Support

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

Comments
  #2  
Old 02-24-2022, 07:14 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 08:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05385 seconds
  • Memory Usage 2,213KB
  • Queries Executed 16 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete