PDA


View Full Version : "Pages" header messed up using BBcode


Morwyn
06-30-2005, 09:52 AM
Hello,

Here is the problem I have (at cms-gratuit.com) when I display a "page" and not a "module" created with BBcode :

(can test it live by going to : http://www.cms-gratuit.com/index.php?page=definitionblog )


http://www.cms-gratuit.com/prob.gif


As you can see the header is f*cked up. I don't really understand the reason why. Does it depend only on the adv_portal_module_shell template ? ("page" created using BBcode with VbA 2)

Here's the code I get for my template:

$mods[formcode]



<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td style="background-image: url(http://www.cms-gratuit.com/forums/aria/misc/top_bg.gif);" align="left" height="31" valign="top" width="21"><img src="http://www.cms-gratuit.com/forums/aria/misc/top_left.gif" alt="" border="0" height="31" width="21"></td>
<td style="background-image: url(http://www.cms-gratuit.com/forums/aria/misc/top_bg.gif);" align="left" height="31" valign="middle"><div style="color: rgb(73, 102, 144); font-weight: bold; padding-top: 6px; font-family: Tahoma;"><b>$vba_options[portal_blockbullet] $mods[title]</b></div></td>
<td align="left" valign="middle" width="19"><img src="http://www.cms-gratuit.com/forums/aria/misc/top_end.gif" alt="" border="0" height="31" width="19"></td>
<td style="background-image: url(http://www.cms-gratuit.com/forums/aria/misc/top_center.gif);" align="right" valign="top" width="10%"></td>

<td align="right" height="31" valign="top" width="14"><img src="http://www.cms-gratuit.com/forums/aria/misc/top_right.gif" alt="" border="0" height="31" width="14"></td>
</tr>
</tbody></table>




<table style="border: 1px solid rgb(137, 149, 155);" align="center" border="0" cellpadding="6" cellspacing="0" width="100%">
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</table>



<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td align="left" valign="top" width="12"><img title=" " src="http://www.cms-gratuit.com/forums/aria/misc/blc.gif" alt=" " border="0" height="13" width="12"></td>
<td style="background-image: url(http://www.cms-gratuit.com/forums/aria/misc/bottom.gif);" width="100%"><img title=" " src="http://www.cms-gratuit.com/forums/aria/misc/clear.gif" alt=" " border="0" height="13" width="100%"></td>
<td align="right" valign="top" width="12"><img title=" " src="http://www.cms-gratuit.com/forums/aria/misc/brc.gif" alt=" " border="0" height="13" width="12"></td>
</tr>
</tbody></table>




<if condition="$mods['formcode']"></form></if>
<br>


Finally, how can we have pages created using BBcode not display the same header we have for modules ?

Thanks in advance.

Brian
06-30-2005, 09:35 PM
If you set the 'Use Module Shell Template' option to yes then the module/page is going to use that template. For your problem with the module, it looks like the problem is that nothing is set for the module title. It appears that you're not using the module shell template though since it's not automatically adding the title of the module, so I would suggest adding something where the "$vba_options[portal_blockbullet] $mods[title]" code is and that should take care of the problem.

Morwyn
07-03-2005, 11:05 AM
If you set the 'Use Module Shell Template' option to yes then the module/page is going to use that template.

Do'h, I did not see this option. That took care of the problem, since I prefere not having the template for the pages. Thank you very much.