Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: visualweb on December 01, 2005, 11:19:03 AM

Title: How 2 disable wrapped header/footer in Joomla/SMF1.0.5
Post by: visualweb on December 01, 2005, 11:19:03 AM
What is the practice for disabling the "complete" xhtml theme from SMF?
I've installed SMF1.0.5 (default theme) along with Cowboy's Joomla/SMF bridge.

All loads and displays properly -EXCEPT- SMF renders complete e.g.

xhtml declaration
head/head
meta
etc.etc.

Obviously, for W3c compliance I don't want this as my Joomla template calls these.

I've ticked the "wrapped" checkbox option (which appears to work as intended) but I still get SMF header calls.

appreciate the guidance

vis
Title: Re: How 2 disable wrapped header/footer in Joomla/SMF1.0.5
Post by: Kindred on December 01, 2005, 12:04:22 PM
I don't know for sure what cowboy's bridge does...   but the standard way of removing the header information from the smf theme is listed in about a dozen threads around here.

first, you have to take the important information and put it into your mambo template, so that smf HAS the info when it is eventually called.

then you have to open the smf theme's index.template.php and "if" out the heading sections using
// remove if forum is wrapped
if (empty($_REQUEST['option'])){
...

// end of remove if forum is wrapped
}
Title: Re: How 2 disable wrapped header/footer in Joomla/SMF1.0.5
Post by: chadness on December 01, 2005, 12:08:38 PM
Check out this theme (http://www.technoadvice.com/component/remository/Download/SMF/Themes/AiM-Custom-SMF-theme-for-SMF-1.1-RC1/) that I modified to do that if you want an example.
Title: Re: How 2 disable wrapped header/footer in Joomla/SMF1.0.5
Post by: visualweb on December 01, 2005, 08:57:30 PM
Thanks to you both *(Chadness and Kindred).  I wound up tearing apart one of the themes and purged the unwanted head declarations and a few other unessentials. PITA, but well worth the effort. Appreciate you taking a `no0b by the hand.

regards

vis.