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)
-   -   How do I relocate the Forum disabled warning? (https://vborg.vbsupport.ru/showthread.php?t=272925)

chrisbjax 10-27-2011 05:14 PM

How do I relocate the Forum disabled warning?
 
1 Attachment(s)
Attachment 134100


When I disable the forums for maintenance, the Alert shows at the very top of the page. I would like to relocate the warning to below the navbar, however, I cannot seem to find a value for the board_inactive_warning template?

Could someone help show me how I can move this element.:erm:

Thank you all for your help!
Chris

chrisbjax 10-28-2011 03:50 PM

crickets? anyone? bueler? bueler?? :(

Zachery 10-28-2011 04:29 PM

You know the only person who sees that is you right?
Everyone else sees a gaint closed message, nothing more.

chrisbjax 11-01-2011 11:58 AM

Well, since I never received a reply, I would say it doesn't make much of a difference..
Did I ask the question wrong? or put it in the wrong forum?

Quote:

Originally Posted by Zachery (Post 2262368)
You know the only person who sees that is you right?
Everyone else sees a gaint closed message, nothing more.


blind-eddie 11-01-2011 12:57 PM

Enjoy the crickets.

chrisbjax 11-01-2011 01:24 PM

you know, I would have expected to have been trolled by a member, telling me how I screwed up, but not by support staff or a designer.. I am a little disappointed.
I thought I was concise in my explanation, I posted a picture of my issue, with an arrow, as outlined by by Paul's sticky. I tried to explain my objective.
I understand I probably shouldn't have bumped my thread, but Zachery, could come have come and said, "heh - this is a busy forum, be a little more patient", instead of the answer I received, which was a little rude, and condescending..

what rule did I break? other then being impatient, that has earned me this harsh response? if I was wrong, or violated a rule, please tell me where, so that I may correct myself, and I offer my sincere apology.

BirdOPrey5 11-01-2011 03:33 PM

I think there may be a failure to communicate here. Zachery was simply asking if you are aware only Admins see the message- regular users don't see that so it is a very unusual request for someone to ask how to move something the users don't see.

Also Designers/Coders/Contributors are not forum staff, they are regular users like you who have contributed styles, mods, or other content in the past. I cannot speculate on what blind-eddie meant.

As for your original question since this is such a low-level function it is controlled in the php files, not the templates.

chrisbjax 11-01-2011 04:32 PM

Hi Bird,
I would agree there was a misunderstanding. I didn't read his post like that, and thought he was referring to my post being done incorrectly or poorly, or that I had bumped it..

Things posted here are not always conveyed very well. I do apologize for the "pot stirring"

I am aware of it, and I do understand it may be unusual, however it does bother my fine sensibilities. :)
Would there be a way for my to simply adjust the float, so it just goes over the top, or can I move it down below the banner? What php file should I look at? Simply a nudge in the right direction would be sufficient. or is this something I really shouldn't modify?

It's somewhat a learning thing - I'm trying to teach myself some of the finer ascetic tweaking items related to Vb, and this seemed like a good start.. Something that other people don't really notice, but drive me mad, and I can tinker with :)

Thank you for your time and help!

BirdOPrey5 11-01-2011 08:12 PM

You can try adjusting the float in the board_inactive_warning template... Now that I think about it you may be able to move it if you add an "absolute" position to the <div> in that template... Styling issues aren't my strong point but you can google "absolute positioning css" for some info on it.

As for the php files I really don't know, I'd imagine it's probably in global... You should get a text editor like Notepad++ that lets you search whole directories for text. Look for the text:
$vbulletin->options['bbactive']

That would be near the code dealing with this.

Zachery 11-01-2011 11:45 PM

The board offline messages are directly injected into the header/footer, around line 540 of includes/class_bootstrap.php

PHP Code:

  if (!$vbulletin->options['bbactive'] AND
   (
$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
  {
   
// show the board disabled warning message so that admins don't leave the board turned off by accident
   
$warning vB_Template::create('board_inactive_warning')->render();
   
$header $warning $header;
   
$footer .= $warning;
  } 

You might be able to get tricky and change:
PHP Code:

 $header $warning $header

to
PHP Code:

  $navbar .= $warning



All times are GMT. The time now is 05:28 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.01030 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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