Topic: Anti Guest Profiles
##
##
## Mod title: Anti-Guest Profile
##
## Mod version: 2.0
## Works on PunBB: 1.0
## Release date: 2003-08-20
## Author: Andrew West A.KA. Kriptonic
##
## Description: This mod gives guest the error message "You do not have
## permission to access this page." When trying to view
## profiles.
##
## Affected files: lang/en/en_common.php
## profile.php
##
## Affects DB: No
##
## Notes: This mod has been completely rewritten due to a suggestion
## made by Kennel and works the same.
##
## Generated with ModGenerator (http://modgen.cactuz.nu/)
## on: 2003-08-16 08:54:55
##
## DISCLAIMER: Please note that modifications are not officially
## supported by PunBB. Installation of this modification
## is
## done at your own risk. Backup your forum database and
## any and all applicable files before proceeding.
##
##
#
#---------[ 1. OPEN ]---------------------------------------------------------
#
profile.php
#
#---------[ 2. FIND (line: 27) ]----------------------------------------------
#
require 'include/common.php';
#
#---------[ 3. AFTER, ADD ]---------------------------------------------------
#
// Begin Anti Guest Profiles Mod
if ($cookie['is_guest'])
message($lang_common['No Guests Reading'].' <a href="login.php">'.$lang_common['Login'].'</a> '.$lang_common['or'].' <a href="register.php">'.$lang_common['register'].'</a>.');
// Begin Anti Guest Profiles Mod
#
#---------[4. Open]------------------------------------------------------------
#
lang/en/en_common.php
#
#---------[4. Find (line : 8)]------------------------------------------------------------
#
'lang_encoding' => 'iso-8859-1',
#
#---------[5. AFTER, ADD]------------------------------------------------------
#
'No Guests Reading' => 'Only logged in users are allowed to read profiles.',
#
#---------[ 4. SAVE/UPLOAD ]--------------------------------------------------
#
I hope this works out nicely. A small hack, but keeps bandwidth down, I mean what guest needs to read profiles?