View Full Version : How do I relocate the Forum disabled warning?
chrisbjax
10-27-2011, 04:14 PM
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, 02:50 PM
crickets? anyone? bueler? bueler?? :(
Zachery
10-28-2011, 03: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, 10: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?
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, 11:57 AM
Enjoy the crickets.
chrisbjax
11-01-2011, 12: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, 02: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, 03: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, 07: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, 10:45 PM
The board offline messages are directly injected into the header/footer, around line 540 of includes/class_bootstrap.php
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:
$header = $warning . $header;
to
$navbar .= $warning;
BirdOPrey5
11-01-2011, 10:46 PM
This brings it below the navbar for me:
Change board_inactive_warning template to:
<div class="forum_disabled" style="position:absolute; margin-top:100px;">{vb:rawphrase alert_board_off}</div>
BirdOPrey5
11-01-2011, 10:50 PM
Actually the edit above will cause the bottom warning to be out of alignment too. Not sure if that will bug you or not.
No easy way to do this right.
chrisbjax
11-02-2011, 10:52 AM
This gives me a very good starting reference. I will tinker now guys.
Thank you so much for your help! :D
--------------- Added 1320247176 at 1320247176 ---------------
I tried Zachery's suggestion first, and couldn't get it to render navbar.
I'm assuming I have to define it so I can render it?
$navbar = templater->render();
$navbar = $warning;
however, I couldn't get that to work. and I was uncertain how to continue registering components without having negative repercussions, so the page simply remains blank.
In the effort of simplicity, I went back and adjusted the board_inactive_warning template and simply added:
<div class="forum_disabled" style="position:absolute; left:300px; top:auto; z-index:1000;">{vb:rawphrase alert_board_off}</div>
Thanks for all your help guys.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.