2014-01-09, 02:26 PM
Hi guys,
I'm currently making a forum for a gaming clan.
I wanted to edit the portal to add custom boxes. I already found plenty of exemples to do it on the forum but not the way I want to.
I don't want to add the code directly in the portal template buf I want to create a global template and just add {$my_template} where i want to put my box instead of put my html code directly in portal template.
But here is my problem :
if I put my code directly in the portal template like this :
It will work, like that, BUT if I add many boxes the portal template will be very messy... So i wanted to create a Global template (let's call it "my_template")
and just add in my portal_template :
And so just put this in my global template "my_template"
But My template is not integrated ! It seems to be ignored and I don't Know why
If anyone could help me with that, it would be awesome because it'll be easier for me to keep up to date like that.
Thanks in advance guys, Hope you understood what I wanted since English is not my native language.
Cheers !
I'm currently making a forum for a gaming clan.
I wanted to edit the portal to add custom boxes. I already found plenty of exemples to do it on the forum but not the way I want to.
I don't want to add the code directly in the portal template buf I want to create a global template and just add {$my_template} where i want to put my box instead of put my html code directly in portal template.
But here is my problem :
if I put my code directly in the portal template like this :
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" cellspacing="0" cellpadding="5px" border="0" align="center">
<tr>
<td valign="top">
{$announcements}
</td>
<td valign="top" width="325">
<!--
Start Progression PVE
-->
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead_portal"><strong>Kill List PVE</strong></td>
</tr>
<tr>
<td class="trow1" style="border-color:#000000">
<div style="padding:2px 0px;"></div>
<div style="padding:2px 0px;"><img src="images/vGarroshHm.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vParagons.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vBlackfuse.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vThok.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vSpoils.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vMalkorok.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vNazgrim.png" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vChamans.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vMastodonte.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vGalakras.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vShaOrgeuil.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vNorushen.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vProtectors.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vImmerseus.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vRADEN.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vLEISHEN.jpg" alt="" /></div>
</td>
</tr>
</table>
<!--
Fin Progression PVE
-->
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}
</td>
</tr>
</table>
{$footer}
</body>
</html>
It will work, like that, BUT if I add many boxes the portal template will be very messy... So i wanted to create a Global template (let's call it "my_template")
and just add in my portal_template :
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" cellspacing="0" cellpadding="5px" border="0" align="center">
<tr>
<td valign="top">
{$announcements}
</td>
<td valign="top" width="325">
{$my_template} <!-- Like that ! Cleaner :) -->
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}
</td>
</tr>
</table>
{$footer}
</body>
</html>
And so just put this in my global template "my_template"
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead_portal"><strong>Kill List PVE</strong></td>
</tr>
<tr>
<td class="trow1" style="border-color:#000000">
<div style="padding:2px 0px;"></div>
<div style="padding:2px 0px;"><img src="images/vGarroshHm.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vParagons.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vBlackfuse.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vThok.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vSpoils.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vMalkorok.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vNazgrim.png" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vChamans.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vMastodonte.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vGalakras.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vShaOrgeuil.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vNorushen.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vProtectors.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vImmerseus.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vRADEN.jpg" alt="" /></div>
<div style="padding:2px 0px;"><img src="images/vLEISHEN.jpg" alt="" /></div>
</td>
</tr>
</table>
But My template is not integrated ! It seems to be ignored and I don't Know why
If anyone could help me with that, it would be awesome because it'll be easier for me to keep up to date like that.
Thanks in advance guys, Hope you understood what I wanted since English is not my native language.
Cheers !