![]() |
|
#1
|
|||
|
|||
|
badcompany2.com
I am trying to create a module that has a placement just like the "headlines" slideshow on this site.. I do not know where to paste my module code however.. Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml"> <head> <if condition="$pages['name'] == 'home'"> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> </if> <title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title> $headinclude <if condition="$pages[name]=='home'"> <script type="text/javascript" src="$vboptions[bburl]/vbcover/vbslideshow/vbslideshow.js"></script> </if> </head> <body> $header $navbar <if condition="$show['customizepagelink']"> <div align="$stylevar[right]" style="padding-top: $stylevar[cellpadding]px; padding-bottom: $stylevar[cellpadding]px"> <if condition="$show['customizepage']"> <a href="$show[customizepagelink]">$vbphrase[exit_customization_mode]</a> <else /> <a href="$show[customizepagelink]">$vbphrase[customize_this_page]</a> </if> </div> </if> <table align="center" class="page" cellspacing="0" cellpadding="0" width="100%"> <tr valign="top"> <if condition="$show['top_column']"> <td valign="top"> $home[topblocks] </td> </if> </tr> </table> <table align="center" class="page" cellspacing="0" cellpadding="0" width="100%"> <tr valign="top"> <if condition="$show['left_column']"> <td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>> $home[leftblocks] </td> </if> <if condition="$show['center_column']"> <td valign="top"> $home[centerblocks] </td> </if> <if condition="$show['right_column']"> <td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>> $home[rightblocks] </td> </if> </tr> </table> $footer </body> </html>
__________________
RUOFFICIAL? www.RUOFFICIAL.com COAST 2 COAST ENTERTAINMENT! RATE MY VBADVANCED WEBSITE!!
|
|
#2
|
|||
|
|||
|
First add the locations in vbadvanced after that add the following code after $navbar and before the if condition. I hardcoded my random image box into the second column, you can simply put another conditional in there though. Also the conditional is around the entire table as I want the entire table to vanish the I don't show the block. Also the width is hardcoded, obviously you can change this to %'s
Code:
<if condition="$show['topleft_column']"><table align="center" class="page" border="0" cellspacing="0" cellpadding="0" width="950px">
<tr valign="top">
<td width="750">
<div class="topleftblock">
$home[topleftblocks]
</div>
</td>
<td width="387"></td>
</tr>
</table></if>
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about module placement... | pcoskat | Pre-Installation Questions | 1 | 06-04-2008 11:15 AM |
| Allow Specific Usergroup To Add Categories & Links To Specific Category Only | VTWeb | "How Do I..." Questions | 3 | 03-24-2008 10:43 AM |
| Help with banner placement. | chkdg8 | "How Do I..." Questions | 3 | 08-17-2006 06:19 AM |
| Php module messing up module placement. | DonLKSAB | "How Do I..." Questions | 2 | 06-27-2006 10:50 AM |
| Change Module Placement on differ pages | allhandl | Troubleshooting / "How do I..." Questions | 1 | 05-25-2004 01:47 PM |