Hack Name: Hide Thread-Content For Guests Description: This hack will do the following: - Allows Guests to see forum names and thread titles, but not read the actual thread / see the thread content. Compatibility: XMB 1.9.11 Version: 1.1 Author: Mouser Release Date: 2011-05-16 License Note: This mod is released under the GPL License. Give credit where credit is due. Note: For your own safety, backup the effected PHP file and template before proceeding with this hack. Note: To make this fast and easy, there will be no options for this hack in the Administration Panel. The forums you wish to exclue from this (meaning: Guests can read the content) have to be specified inside the config.php Note: When is this hack of use to you? When you want Guests to not be able to READ mosts of your threads. But only allow them to READ threads in a few forums, or no forums. Edit PHP File: header.php Find: ---------------------------------------------------------------------- /* Set Up HTML Templates and Themes */ ---------------------------------------------------------------------- Add Above: ---------------------------------------------------------------------- //Hide Thread-Content For Guests if (!isset($lang['guestnocontent'])) { require_once(ROOT.'include/translation.inc.php'); setNewLangValue('guestnocontent', 'Guests are not allowd to read threads in this forum.'); loadLang($langfile); } ---------------------------------------------------------------------- Edit PHP File: config.php Find: ---------------------------------------------------------------------- $show_full_info = TRUE; ---------------------------------------------------------------------- Add Below: ---------------------------------------------------------------------- // Specify the Forum-ID's of the forums where GUESTS are allowed to read the content of the threads. // Example: array( 1 , 5 , 11 ); $AllowGuestReadContent = array( ); ---------------------------------------------------------------------- Edit PHP File: viewthread.php Find: ---------------------------------------------------------------------- $perms = checkForumPermissions($forum); if (!$perms[X_PERMS_VIEW]) { if (X_GUEST) { redirect("{$full_url}misc.php?action=login", 0); exit; } else { error($lang['privforummsg']); } } else if (!$perms[X_PERMS_PASSWORD]) { handlePasswordDialog($fid); } ---------------------------------------------------------------------- Add Below: ---------------------------------------------------------------------- if (X_GUEST And !in_array($forum['fid'], $AllowGuestReadContent) ) { error($lang['guestnocontent']); } ---------------------------------------------------------------------- Edit PHP File: files.php Find: ---------------------------------------------------------------------- loadtemplates(''); ---------------------------------------------------------------------- Add ABove: ---------------------------------------------------------------------- if (X_GUEST And !in_array($forum['fid'], $AllowGuestReadContent) ) { error($lang['guestnocontent']); } ---------------------------------------------------------------------- Administration Panel -> Settings; Allow only registered users to view boards? : Off Private forums hidden to unauthorized users? : Off Administration Panel -> Forums -> More Options... Guest -> View : v