"Modify an SMF theme for Joomla and Mambo"

Started by M70, April 11, 2006, 11:24:39 PM

Previous topic - Next topic

M70

I've used the files from:

http://www.technoadvice.com/advanced/developer/modify_an_smf_theme_for_joomla_and_mambo.html

And also testing another "custom" version wrapped on Joomla I get the same effect, like the headers are wider than the posts. You can see the image:

http://img239.imageshack.us/img239/7876/board21fy.jpg

Any idea about how to solve this?

Setting the forum unwrapped doesn't work properly, as the CSS doesn't show at all. And the "hidden" stuff doesn't show up (like the Logo, news, etc.).

Thank you,

Bridge 1.1.3
Joomla 1.0.8
SMF 1.1 RC2 

chadness

I've run in to that before, I believe with the Amber theme?  What I had to do was add in a colspan statement to that table cell in that part of the theme:
QuoteOccasionally, you might want to do the opposite, and have something show up only when you have the forum wrapped - for instance, in one theme I was working on, I needed it to have a "colspan=2" only when wrapped, because of some things I removed. In that situation, you would use this code:

if (!empty($_REQUEST['option'])){
}


Basically, the same thing, but saying if it is NOT empty.

In the Amber theme, it would have that extra space on only one side.  What I had to do was take this part from the end of the template_main_above part of index.template.php:

echo '</div> </td>
<td valign="top" width="100%" id="bodyarea">';


And change it to look like this:

    echo ' <td ';
    // check to see if the forum is running wrapped in mambo or standalone...note this check is the opposite of the others
        if (!empty($_REQUEST['option'])){
            echo 'colspan="2" ';
        }
        // end of check to see if it's running wrapped
        echo 'valign="top" width="100%" id="bodyarea">';


Just to help clarify where this is in the theme - this is the cell that the entire main body of the forum is in.  What this is saying is if the forum is wrapped, that has to span two columns.  In your case, since it's both sides, you might to span 3 columns.

Give it a shot, see if that helps.

M70

I'm using this, the Default for SMF 1.1 RC2:

http://www.technoadvice.com/component/remository/Download/SMF/Themes/SMF-RC2-modified_default_theme.zip/

But the index.template.php says (on line 344):


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>';


So I've tried to use what you say but I get parse errors   :'(

I'll PM you the URL.

M70


M70

Changed on line 344, but it doesn't fix it.

// The main content should go here.
echo ' <div ';
// check to see if the forum is running wrapped in mambo or standalone...note this check is the opposite of the others
        if (!empty($_REQUEST['option'])){
            echo 'colspan="3" ';
        }
        // end of check to see if it's running wrapped
       
echo ' id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';

Advertisement: