small other question
I did find this to hide links from guest is that also opening links in a new page ?
Mod title: Hide Links From Guests
##
## Mod version: 1.0
## Works on PunBB: 1.2.15
## Release date: 2007-09-10
## Author: Natanzuelo (http://gritalo.wordpress.com)
##
## Description: This Mod hides links from guests, and displays
## any text or image you want instead of it.
## You can put a link to the register page instead
## of the real link.
##
##
## Affected files: include/parser.php
##
## Affects DB: No
##
##
## DISCLAIMER: Please note that "mods" 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 ]-----------------------------------------------------------
#
parser.php
#
#---------[ 2. FIND ]-----------------------------------------------------------
#
return '<a href="'.$full_url.'">'.$link.'</a>';
#
#---------[ 3. REPLACE WITH ]---------------------------------------------------
#
// Hide Links From Guests 1.0
if ($pun_user['is_guest'] )
return ' <span class="members-only">REPLACE THIS</span>';
else
return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
// End of Hide Links From Guests 1.0
*Note: You have the replace the words "REPLACE THIS" with whatever you want to show instead of the links.
You can use HTML to put a link to the register.php page if you want.
#
#---------[ 4. SAVE AND UPLOAD ]------------------------------------------------
#