Home arrow Developers arrow Developer arrow Modify an SMF theme for Joomla and Mambo
 
Modify an SMF theme for Joomla and Mambo - Intro Print E-mail
Article Index
Intro
Removing excess tags
Removing extra theme info
Removing conflicting CSS
Conclusion

Conclusion

Hopefully, at this point, you have a fully functioning theme that does not conflict at all with Joomla or Mambo when wrapped, and looks exactly like the original when unwrapped! Let's review the steps taken.

First, we remove anything from the theme we don't want to show up when wrapped using this code:
Code:
if (empty($_REQUEST['option'])){
}

If we want something to show up only when it is wrapped, we would use the following code:
Code:
if (!empty($_REQUEST['option'])){
}

First we use that code to remove excess <html> and <body> tage, and the <head> section. Then we remove unwanted theme elements (headers, logos, etc.) Then we remove existing CSS, and put it in a separate file that is loaded only when accessed unwrapped.

If you would like copies of the files I edited while working on this tutorial, you can download the index.template.php, style.css, and style-unwrapped.css files here.

 
 
© 2008 technoadvice.com
Joomla! is Free Software released under the GNU/GPL License.