- 1 Ağu 2007
- 5,470
- 41
Kod:
##############################################################
## MOD Title: Disable search for guests
## MOD Author: kber < [email protected] > (kber) http://www.phpbbegypt.com
## MOD Description: Disable search for Guest with erorr message that ( he /she ) has to log in to search
## MOD Version: 1.0.1
##
## Installation Level: easy
## Installation Time: 1 minute
## Files To Edit: search.php
##
## language/lang_english/lang_main.php
##
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: this is my first ever mod . i know it ,s an old idea , but let me try my self
##############################################################
## MOD History:
##2006-11-07 - Version 1.1.0
## - change mod history, and language code look (thnks evil<3)
## 2006-11-07 - Version 1.0.0
## - add a register link to the erorr msg
##
##
## 2006-11-07 - Version 0.1.0
## - It works!
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
//
// Start session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
// start disable guest search hack ( phpbbegypt.com)
if ( !( $userdata['session_logged_in'] ))
{
message_die (GENERAL_MESSAGE, $lang['login_search']);
}
//end disable guest search hack ( phpbbegypt.com)
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// başlar turkish by cupra ( phpbbmod.com) ( phpbbmod.com)
$lang['login_search'] = 'Üzgünüz . Arama yapabilmek için giriş yapmalısınız </br> Yada <a href="profile.php?mode=register">kayıt</a> olabilirsiniz';
// biter turkish by cupra ( phpbbmod.com)
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM