Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to detect if forum is "category" without posts or normal forum with posts??
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #1
How to detect if forum is "category" without posts or normal forum with posts??
How to detect if forum is "category" without posts or normal forum with posts??

How can i detect it in the templates thanks

How can i detect it in the templates thanks, what is the conditional?
09-21-2015 05:39 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,325
Joined: Mar 2010
Post: #2
RE: How to detect if forum is "category" without posts or normal forum with posts??
In which template? If it is in forumdisplay template, you can use $foruminfo['type']
c means category type, f means forum type

If it is for index, (not quite sure what you want), forumbit_depth1_cat is template for parent category, forumbit_depth2_cat is template for a category (not forum) inside a category.

09-21-2015 06:36 AM
Find all posts by this user Quote this message in a reply
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #3
RE: How to detect if forum is "category" without posts or normal forum with posts??
i need it in forumdisplay_subforums

thanks working well
(This post was last modified: 09-21-2015 09:51 AM by ollie2015.)
09-21-2015 09:35 AM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #4
RE: How to detect if forum is "category" without posts or normal forum with posts??
so how to add this to forumdisplay?

<if $foruminfo['type'] == "f" then>
</if>

like this?
it work
(This post was last modified: 06-17-2017 06:18 PM by bekti.)
06-17-2017 06:17 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #5
RE: How to detect if forum is "category" without posts or normal forum with posts??
You can't add that to the forumdisplay template because that refers to the entire page.

My Blog
02-10-2018 10:25 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: