PDA

View Full Version : Basic Module (My Version)


ashly
06-04-2004, 10:04 AM
This is my collapse module version.

You will find in the template 4 Times this word TEMPALTENAMEHERE.
So If your template for your module is called adv_portal_Test Thane you have to replace TEMPALTENAMEHERE with Test Thats all.

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('TEMPALTENAMEHERE')"><img id="collapseimg_TEMPALTENAMEHERE" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_TEMPALTENAMEHERE.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] Custom Module 1</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_TEMPALTENAMEHERE" style="$collapseobj_TEMPALTENAMEHERE">
<tr>
<td class="$getbgrow">
<!-- Begin custom code -->
Your custom code comes here.
<!-- End custom code -->
</td>
</tr>
</tbody>
</table>
<br />

Please tell what you think of it...;)

cLord
06-04-2004, 11:12 AM
Can you please tell me the difference between "yours" and the one documented here (http://www.vbadvanced.com/forum/showthread.php?t=1011) besides the fact that "your" module will not remember it's collapsible status after leaving the page?

cLord :rolleyes:

Our Sponsors
 

ashly
06-04-2004, 11:17 AM
this one (http://www.vbadvanced.com/forum/showthread.php?t=1011) hase no collapse button on it and my one hase that. :p
So you dont nied to make a file called custom_1.php And it will work the same.:)

cLord
06-04-2004, 11:21 AM
Is that so?

Please take a few minutes and read the FULL thread or click here (http://www.vbadvanced.com/forum/showpost.php?p=5059&postcount=8) ;)
And... "your" collapse button isn't working 100% (the module state isn't cached! Meaning if you close a module and you leave the page you will have to close the module again when you come back to your page...)

cLord ;)

Our Sponsors
 

ashly
06-04-2004, 11:29 AM
Ok but can is use that costum_1.php thing on more than one module and if yes do i nied to make another file called custum_2.php. Can you tell my it.

cLord
06-04-2004, 11:32 AM
You need to create a different .php file for each module.... ;)

ashly
06-04-2004, 11:37 AM
Woud this not by easyer if this code thing woud by addit to the portal system.

And i thought so about that making ne .php file for every module.