News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Removing global header from the registration page

Started by wynnyelle, August 21, 2013, 12:16:43 AM

Previous topic - Next topic

wynnyelle

I use a global header and footer, and it is really screwing up our registration page. It works well elsewhere on the site, though.

I'd like to cancel it so it doesn't load on that one page. How would I do this?

Matthew K.


if ($context['current_action'] != 'register' && $context['current_action'] != 'register2') {
// Global Headers and Footers mod "injection" code here...
}

Matthew K.

//-- Start of Typical Support Rant
This post probably should have been made in either the modifications support topic, or at the very least SMF Coding Discussion.
// End of Typical Support Rant --//

wynnyelle

#3
Wow, thank you! :)

What file do I insert that into and what part of that file?

I am interested in doing this on profiles as well.

...Should I restart this in the coding board and lock this? I'm sorry if it was misplaced.

Matthew K.

You're welcome! Whatever file Global Headers and Footers modifies to add the code..which should be Subs.php if I'm recalling correctly.

A better alternative may be in the modifications own file so that you modify one place that would stop the function from returning the headers / footers.

Advertisement: