PDA

View Full Version : Moving $notices from Navbar Template to Header Template


vaskies
01-11-2010, 01:44 PM
This is very similar to a previous thread I made, but the goal has changed considerably (and has since become clearer), and I think it makes more sense to keep this separate. Here's what I have so far:

Hook Location: forumhome_complete

$var1 = array('notices' => $notices);
vB_Template::preRegister('HEADER', $var1);

It shouldn't be much more complicated than this, right? :o

Paul M
01-11-2010, 08:47 PM
It shouldn't be much more complicated than this, right? :o
Have you tried it ?

vaskies
01-12-2010, 06:18 AM
Oh sorry, I thought that was implied. Yeah I've tried it, and it didn't work unfortunately.

Edit: Doh! $notices was already available to me. The plugin wasn't even required. The problem had to do with a condition set in the notices manager. Man I feel stupid!

Edit2: I was going to ask a hypothetical question, but instead of taking up people's time here with that, I'll cross that bridge if or when I come to it. Thanks.