Jump to content


Tutorial info Visit support topic

  • Added on: Aug 25 2010 07:06 PM
  • Date Updated: Aug 26 2010 07:11 AM
  • Views: 1745
 


Collapsible Blocks Wrapper for IP.Content

Posted by glorify on Aug 25 2010 07:06 PM
How to do a collapsible block for IP.Content that is remembered via cookie with IPB's default js.

First go to My Apps, IP.Content, Page Templates. Edit the default Page Template.

Find :
</head>
Add Above (replacing PATHTOFORUM):

<script src="PATHTOFORUM/public/js/ips.board.js" type="text/javascript"<img src='http://www.codersrefuge.com/public/style_emoticons/<#EMO_DIR#>/pinch.gif' class='bbc_emoticon' alt='><' />/script>

Then wrap all your blocks with this code. You will have to edit out the default block wrapper. Make a back up of your original blocks!
<div class='category_block block_wrap'>
        <h3 id='category_{$title}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}{$title}</a>{$title}</h3>
                <table class='ipb_table' summary="{$title}">
                        <tr>
                                <td>

YOUR BLOCK CONTENT HERE
        
                                </td>
                        </tr>
                </table>
</div>

I am in the process of switching all my blocks to this, but as of now to see a demo, check out the Next Game block (Top Left) on my site.

Powered by Tutorials 1.5.1 © 2013, by Michael McCune