Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Check if forum have a subforum
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #1
Check if forum have a subforum
how to use this?

<if $subforums then>
this forum contains subforums, then show them
<else>
no subforums detect, hide
</if>

i want to show the content if the forum has a subforum only
03-22-2018 04:44 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Check if forum have a subforum
In which template?

03-23-2018 01:18 AM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #3
RE: Check if forum have a subforum
in forumdisplay
inside threadlist, can we?
03-23-2018 08:17 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Check if forum have a subforum
(03-23-2018 08:17 AM)bekti Wrote:  in forumdisplay
(03-23-2018 08:17 AM)bekti Wrote:  inside threadlist

Assuming it is forumdisplay template, then your code should works.

(This post was last modified: 03-23-2018 11:57 PM by RateU.)
03-23-2018 10:03 PM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #5
RE: Check if forum have a subforum
Yes but in fact is not,
The code always show to in forum type sub category inside the category
03-24-2018 09:21 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Check if forum have a subforum
(03-24-2018 09:21 AM)bekti Wrote:  Yes but in fact is not,
The code always show to in forum type sub category inside the category

Did you try it in a fresh and clean MyBB installation?
What's your forum URL and the page where it doesn't work?

03-25-2018 03:03 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: