REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimize table - help
#1
Hi . How can I add minimize feature to this code :

PHP Code:
<table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">

<
tr><td class="thead"><strong>Promotions</strong></td></tr>

<
tr><td class="trow1">

Content 

</td></tr>

</
table><br

Also what need I to do to display this on index page .
I have seen things like :
PHP Code:
{$forums}
{
$boardstats
In tempelates if I whpuld save it as a tempelate named promotions and I whould insert {$promotions} to a tempelate it whould show this ?
If no how can I make it to work .
Thanks for help and sorry but I don`t understand PHP .
Reply
#2
Please help me Sad
Reply
#3
Minimize Table:
Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['promotions']}.gif" id="promotions_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>Promotions</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['promotions_e']}" id="promotions_e">
<tr><td class="trow1">
CONTENT
</td></tr>
</tbody>
</table>

And if you want to use {$promotions} in your template you need to define it first in a PHP File.
If you want to use it in your Index page; i suggest to write a simple plugin with as hook
Code:
$plugins->add_hook('index_start', 'do_promo');
Reply
#4
Thanks for help Big Grin
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Get rid of your session table crashing labrocca 19 20,627 Apr 19, 2017, 12:43 AM
Last Post: Barbarjreusser
Question Problem with ficons ( table spacing ) chris1 4 1,959 May 31, 2013, 02:57 PM
Last Post: Xronize
  Hide table from Guests? Oliver Evans 0 814 Jan 05, 2011, 10:05 AM
Last Post: Oliver Evans
  Database Table question JoeChaz 2 1,478 Apr 02, 2009, 08:29 AM
Last Post: MattR
  Changing the sessions table for mybb to optimize. labrocca 0 1,748 Jul 29, 2007, 03:49 PM
Last Post: labrocca

Forum Jump:


Users browsing this thread: 1 Guest(s)