Hi Michelle,
I know you're always looking for good ideas, so I figured I would pass this on.
I am working on a forum that has a lot of sub-forums. Having them all displayed on the forum listing is very over whelming. I used $forum->depth to limit the forum to only display parent forums.
Anyhow, it's an easy enough bit of code, which I have attached. I figure it might be easy for you to work something like this into the adv forum config page, so no one has to edit the template.
I modified Bluee_Lagoon, my changes are on lines 50 and 102. I know enough PHP to be dangerous, so I'm not sure if there is a better way to do this, but it seems to work for me. Hopefully you can think of a more elegant way to include this concept. If not, maybe this will help someone else.
| Comment | File | Size | Author |
|---|---|---|---|
| advf-forum-list.tpl_.php_.txt | 4.66 KB | Kirk |
Comments
Comment #1
michelleMerging with #219549: Add options for dealing with subforum display
Thanks,
Michelle
Comment #2
NeoID commentedIs there a way to print the forums that are removed as links?
Like.. instead of having a subforum shown on the forum index, we can use that code of yours, and then try to make the subforums display like phpBB3:
http://www.phpbb.com/community/ (Subforums are displayed as links underneath the parent forums description)...
I'm trying to find a solution to this in order to add this feature to my phpBB3 theme for advanced forum, based on prosilver... :)
Comment #3
Kirk commentedI'm sure there is, but the easy, no code way would be to simply include the links in the forum descriptions.
Comment #4
michellePlease don't keep adding onto this issue or your posts will be lost as this is marked duplicate.
Michelle
Comment #5
ronnie482 commentedYou can easily do this without hacking the core file using pre-process function
I know the post is very old but still it may help.