PDA

View Full Version : Block Hack


dave6901_2000
09-12-2004, 12:54 PM
I have installed the hack over at vb.org called " [vB 3.0.0] - Left Sidebar on all pages. ". Installed it no problem, But when i create a box in forum it shows on the portal page also. Notice it only does that with vbadvance. Anyone know howto only put blocks in forum and not to show in portal.

Thx

Brian
09-12-2004, 01:04 PM
It sounds like that hack adds the sidebars through the header template. Your best bet would probably be to copy your header template (minus the code for the sideblocks), and paste it over the $header variable in your 'adv_portal' template.

Our Sponsors
 

dave6901_2000
09-12-2004, 01:18 PM
Heres what the hack does

I edit header template ( i put that at the end )


<!-- Sidebar -->
<table width="$stylevar[tablewidth]" cellpadding="0" cellspacing="7" border="0">
<tr>
<td style="width:150px" valign="top">$sidebar</td>
<td valign="top">
<!-- Update -->
<table width="$stylevar[tablewidth]" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width:100%">
<!-- /Update -->
<!-- /Sidebar -->


Then footer
( put that at the top )


<!-- Sidebar -->
<!-- Update -->
</td>
</tr>
</table>
<!-- /Update -->
</td>
</tr>
</table>
<!-- /Sidebar -->


Then edit global

eval('$sidebar = "' . fetch_template('sidebar') . '";');


Then i create a new template called sidebar, Then it creates a box in forum but shows in the portal page :confused:

Brian
09-12-2004, 01:37 PM
Add this code around the code you added for the sidebar in both your header and footer:

<if condition="THIS_SCRIPT != 'adv_index'">

Code Here

</if>

Our Sponsors
 

dave6901_2000
09-12-2004, 01:43 PM
Try that and still shows

Any way u can have a look at it ?