Customizing SMF > Modifications and Packages

View Single Category

(1/23) > >>

SleePy:
Link to Mod
Rate this Mod

This Mod Enables you to view all Boards in a Single Category.
When You view a board clicking the category name brings you to view the boards in the category or by URL
http://yoursite.com/forum/index.php?f=#
As Well when you are on the BoardIndex clicking the Category Name will take you view the Category. To Collapse You Use the Image that appears on the left of the Category name.
This mod respects which boards users can see and does not show them.

Latest Post:
As a Notice this mod uses the BoardIndex.php to utilize its function. If you have a Category with no posts in it and a user is viewing the latest post will show up blank. As well if there is posts it will only show the latest post from the category.

Mark ALL messages as read:
This Mod does not touch this Feature. When clicking this while viewing a category will mark messages read in all categories and not just the viewing category.

The 1.0.x line is NOT Supported by This mod. This mod will not be backported to the 1.0.x line.

If you wish to view this in action you may visit my site and test this out.

ChangeLog
! Fixes
+ Additions


Version 1.5
! No More Multiple Packages. Keep it simple.
! Tinyportal Can be installed at any time and function correctly.

Version 1.4C
! Corrected a Typo in BoardIndex.template.php

Version 1.4B
! Updated to 1.1. Only installs for 1.1

Version 1.4
+ JumpTo While Viewing Single Category
+ Fixed JumpTo While Viewing MessageIndex
+ Fixed JumpTo While Viewing Posts (Display)
! Fixed Uninstall Error.

Version 1.3
! BoardOrder was ignored when viewing a Category.

Version 1.2 Fix TP Only
! Fixes 2 Install Bugs In TinyPortal Version.

Version 1.2
+ Clicking CatName on BoardIndex now takes you to View that Category. Collapsible Categories are handled by the Image on the Left of text.

Version 1.1
! Make sure Input is an interger

Version 1.0
! Release..

codenaught:
Nice mod. :)

A couple of things you may want to address at some point:

There is a file .DS_Store included in the package that isn't needed.
When viewing a category alone, the boards are no longer in the same order as the order they are assigned in Manage Boards.

SleePy:
akabugeyes,

The .DS_Store just came from my mac when I made the .tar.gz file. I fixed my stuffit preferences so it shouldn't do that anymore.. But no harm done with it. Just a index file like thums_db file you get on windows for thumbnails.

I will have to investigate why the order gets changed. Nothing the mod changes should affect this, But I see it now that you pointed this out.

**Edit**
Found the Bug.
Some Reason SMF wants to ignore the boardorder when viewing a Category, But not when Viewing BoardIndex.
Updated to 1.3

If you Don't want to update just do this..

Edit: /Sources/BoardIndex.php

Find:

--- Code: --- . (isset($_REQUEST['f']) ? "
AND c.ID_CAT = ".$_REQUEST['f'] : ''), __FILE__, __LINE__);
--- End code ---

Replace:

--- Code: --- . (isset($_REQUEST['f']) ? "
AND c.ID_CAT = ".$_REQUEST['f']."
ORDER BY boardOrder ASC" : ''), __FILE__, __LINE__);
--- End code ---

And that sets the boards to be ordered how they should be.
Also The 1.3 Doesn't have .DS_Store. Even though its not a worry.

fiver:
Thanks SleePy,

When I first started using smf a year ago, I thought the category was 'malfunction' when it didn't go into a single category.  ::)

Thanks for making this mod.

Just some notes for user...

1. When in single category and you click "Mark ALL messages as read", it still marks all messages of the whole forum, not just this category. This is convenient as I guess no user would want to have to mark each category separately.

2. After clicking "Mark ALL messages as read", it will bring user back to the forum home page, not the single category page.

 :)

fiver:
I have just browsed through my website again and felt that something is missing.... ie. a way for user to jump to other categories.

Is it possible to add a "jump to" selector somewhere in the single category please?

Thanks ;)

Navigation

[0] Message Index

[#] Next page

Go to full version