![]() |
Forum Block in single Forum
Hi all,
I am trying to add a forum block that I want to display only in one of my subforums. I am using it to create a menu that relates only to that single sub forum. Any advice on how I could achieve this? Thank you all for your usual helpfulness. |
anyone got any infor on doing this please?
|
have you done a search for a plugin for it
|
Are you creating a "Custom HTML/PHP" forum block? You can try this: Go to the style manager and copy the code of the "block_html" template, then create a new template and paste the code and surround it with an if, like this:
Code:
<vb:if condition="$GLOBALS['forumid'] == X"> Then at the bottom of forum block configuration page there's a "Template to Use" field. You can put the name of your new template there. |
Quote:
Quote:
Thanks again ;) |
ok so I tried this, but when I save the new template i get this error...
Code:
The following error occurred when attempting to evaluate this template: Here is the template that im trying to save... Code:
<vb:if contents="$GLOBALS['forumid'] == 156'> |
That's my fault, there's a mistake in the code I posted. The first line should be:
Code:
<vb:if condition="$GLOBALS['forumid'] == 156"> Sorry. |
appreciate the help buddy,
I'll go try it out and let you know how it goes :) --------------- Added [DATE]1350831890[/DATE] at [TIME]1350831890[/TIME] --------------- same issue Code:
<vb:if contents="$GLOBALS['forumid'] == 156"> |
Oh, yeah - it's "condition", not "contents":
Code:
<vb:if condition="$GLOBALS['forumid'] == 156"> I have no idea what I was thinking that day. |
well it has accepted it now, but nothing shows up in my forumid 156
|
All times are GMT. The time now is 04:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|