MyBB Community Forums

Full Version: MyBB portal hide block (collapse and show blocks)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can i make the portal blocks work the same way the forums can be collapsed? So i want it to be like ProPortal blocks which is the same as the forum sections
[Image: hGeGG.png]
[Image: 6u8Ey.png]

like that ^^^
Smile you posted that today. i love all your little guides on your site. thanks. i will try it soon.

Will this work for the side blocks? i presume it will.
Nope, they need to edit separately. However its the same method.
ok i meant for my custom blocks.

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Current Projects</strong></td>
</tr>
<tr>
<td class="trow1" align="center">
<table border="0" cellpadding="5" cellspacing="0" style="border-radius: 5px;">
<tr>
        <td><a href="/forumdisplay.php?fid=10">SACNR KeyBinder</a></td>
        <td>V1.4B</td>
    </tr>
    <tr>
       <td><a href="/forumdisplay.php?fid=8">RA3 Map Manager</a></td>
        <td>V1.0</td>
    </tr>
    <tr>
       <td><a href="/forumdisplay.php?fid=14">Lock Me Evolution</a></td>
        <td>V1.0</td>
    </tr>
    <tr>
        <td><a href="/forumdisplay.php?fid=18">FC Browser</a></td>
        <td>V1.1</td>
    </tr>
    <tr>
        <td colspan="2" style="text-align:center;"><a href="/projects.php">More Detailed Information</a></td>
    </tr>
</table>
</td>
</tr>
</table>

thats my custom block its in the portal template how would i add that? i think i understand most of it but i dont want to mess it up.
Replace complete code with this;
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Current Projects</strong>
<div class="expcolimage"><img src="images/collapse.gif" id="custom_1_img" class="expander" alt="[-]" title="[-]" /></div>
</td>
</tr>
<tbody style="" id="custom_1_e">
<tr>
<td class="trow1" align="center">
<table border="0" cellpadding="5" cellspacing="0" style="border-radius: 5px;">
<tr>
        <td><a href="/forumdisplay.php?fid=10">SACNR KeyBinder</a></td>
        <td>V1.4B</td>
    </tr>
    <tr>
       <td><a href="/forumdisplay.php?fid=8">RA3 Map Manager</a></td>
        <td>V1.0</td>
    </tr>
    <tr>
       <td><a href="/forumdisplay.php?fid=14">Lock Me Evolution</a></td>
        <td>V1.0</td>
    </tr>
    <tr>
        <td><a href="/forumdisplay.php?fid=18">FC Browser</a></td>
        <td>V1.1</td>
    </tr>
    <tr>
        <td colspan="2" style="text-align:center;"><a href="/projects.php">More Detailed Information</a></td>
    </tr>
</table>
</td>
</tr>
</tbody>
</table>
thanks it works. now i understand how to do it i think Smile. +rep.
I'm glad you now know about the edit Smile
[Image: ObE4P.png]

Smile
Here I would like to suggest to test the closing and opening the collapse button as well. Since if the </tbody> tag is placed anywhere across the right tag then it would push down the other tables or do something messy.
Pages: 1 2