Firefox PHP

Module: Ignore Forums

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date 4.7 KB open | download Joe Curia 07/31/2008 Read message
Module: Ignore Forums
July 31, 2008 11:41AM
This module allows a user to ignore forums that were previously viewed. This will suppress the new message flags on the index page. The module supports selection of the ignored forums both from the Control Center under Forum Settings and also from the index page. However, the link for the index page will need to be added to each respective template. Instructions for doing so can be found below. All links and headers can be customized for any language by following the language customization instructions below

Installation and Usage:
After copying the module files and enabling the module, users will be able to select ignored forums by going to their Control Center -> Forum Settings page. If you would like to enable the "Ignore Forum" link you will need to add some code to your template's index_new.tpl and index_classic.tpl. The simplest way to do this is to copy the "Mark Read" sections of code and duplicate them, changing MARK_READ to IGNORE_FORUM, and LANG->MarkForumRead to LANG->phorum_mod_ignore_forums->AddToIgnores. For the Emerald template and others based off of it, you will also want to remove the class="icon icon-tag-green" from the anchor to avoid duplicating the Mark Read icon.

So, if you are using the Emerald template, your index_new.tpl will look something like this:
{IF FORUMS->URL->MARK_READ}<a class="icon icon-tag-green" href="{FORUMS->URL->MARK_READ}">{LANG->MarkForumRead}</a>&nbsp;&nbsp;&nbsp;{/IF}
<!-- Added for Ignore Forums mod -->
{IF FORUMS->URL->IGNORE_FORUM}<a href="{FORUMS->URL->IGNORE_FORUM}">{LANG->phorum_mod_ignore_forums->AddToIgnores}</a>{/IF}

To customize the links and headers for your language, copy the english.php in this mods "lang" folder and rename it so that it has the same name as your main language file (found in the "include/lang" folder). Then edit the new language file with the appropriate translations. If you do create a custom language file, please considering uploading it to this module's thread on the Phorum website for others to use.

- Add support for the Tabbed Emerald template

- Add features as they are requested and fix bugs as they are reported.

Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
open | download - (4.7 KB)
Sorry, only registered users may post in this forum.

Click here to login