Disable Registration Link

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

Disable Registration Link

İleti CeNK 23.12.2005, 12:13

Admin panelden Register alanını kapatabilirsiniz.
Eklentiler
Disable Registration Link.zip
(1.94 KiB) 760 defa indirildi
Kullanıcı avatarı
CeNK
Üye
Üye
 
İleti: 584
Kayıt: 01.11.2005, 15:21
Konum: İstanbul

İleti Emexci 23.12.2005, 12:25

#################################################################
## MOD Title: Disable Registration mod
## MOD Author: Phydeaux <no@public.email> (Phydeaux) http://www.phpbbhacks.com
## MOD Author email: Phydeaux@zhq2.com // please use the forum at phpbbhacks
## MOD Description:
## This mod simply *Toggles* User Registration from the ACP. If you disable registration,
## the registration icon and link stay hidden permanently. Allowing registration
## returns the icon and link. Of course it has no effect when the user is logged in,
## and it has no effect on registered user logon.
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit (4):
## /admin/admin_board.php
## /includes/page_header.php
## /language/*/lang_admin.php {/lang_english/ included}
## /templates/*/admin/board_config_body.tpl {subSilver tested... but no worries}
##
## Included Files (0):
##
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## If you've ever admin'd a private board and been frustrated with unwanted registrations...
## "This Mod's For You!" Some may find it helpful when they need to simply slow down or
## temp-halt registration. If this helps you, I'm happy...
##
## Phydeaux
##
##
## /***************************************************************************
## *
## * This program is free software; you can redistribute it and/or modify
## * it under the terms of the GNU General Public License as published by
## * the Free Software Foundation; either version 2 of the License, or
## * (at your option) any later version.
## *
## ***************************************************************************/
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD!!!
##############################################################

#-----[ SQL ]--------------------------------------------
#
# Your table prefix may be different... edit this accordingly
# I have used the default table prefix
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('register_disable',0);

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
$disable_registration_yes = ( $new['register_disable'] ) ? "checked=\"checked\"" : "";
$disable_registration_no = ( !$new['register_disable'] ) ? "checked=\"checked\"" : "";
// End Disable Registration Mod

#
#-----[ FIND ]------------------------------------------
#
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
"L_DISABLE_REGISTRATION" => $lang['Registration_disable'],
"L_DISABLE_REGISTRATION_EXPLAIN" => $lang['Registration_disable_explain'],
// End Disable Registration Mod

#
#-----[ FIND ]------------------------------------------
#
"S_DISABLE_BOARD_NO" => $disable_board_no,

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
"S_DISABLE_REGISTRATION_YES" => $disable_registration_yes,
"S_DISABLE_REGISTRATION_NO" => $disable_registration_no,
//End Disable Registration Mod

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_user_logged_out', array());

#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Do we allow registration?
// Disable Registration Mod
if ( !$board_config['disable_register'] )
{
$template->assign_block_vars('switch_user_logged_out', array());
}
//End Disable Registration Mod

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Disable Registration Mod
$lang['Registration_disable'] = 'Disable User Registration';
$lang['Registration_disable_explain'] = 'This will remove the Register icon and link from the board. It is useful for private boards and where Admins prefer to pre-register their users.';
//End Disable Registration

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
# this line is looong... this is the end of the line
name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>

#
#-----[ FIND ]------------------------------------------
# this is the following line
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_REGISTRATION}<br /><span class="gensmall">{L_DISABLE_REGISTRATION_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="register_disable" value="1" {S_DISABLE_REGISTRATION_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="register_disable" value="0" {S_DISABLE_REGISTRATION_NO} /> {L_NO}</td>
</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kullanıcı avatarı
Emexci
Üye
Üye
 
İleti: 833
Kayıt: 28.11.2005, 01:07

İleti murtaza 02.02.2006, 13:45

bu modülü kurmama ragmen hala üye olunabilir forumuma?
nedeni nedir acaba tahmin edebilen varmi

ayarlar aynen dogru yönetim panelinden


Disable User Registration
This will remove the Register icon and link from the board. It is useful for private boards and where Admins prefer to pre-register their users. Evet xEVET HAYIR


Hesap aktivasyonu Kapalı Kullanıcı xAdmin

xEvet Hayır

xEvet Hayır
Ögretmenim canim benim , canim benim...
Seni ben pek cok , pek cok severim.
Sen bir anaaaa , sen bir baabaaaaaa
Kalani neyyydiii yaaa unuttum , bu siirin sözlerini ariyorum...
Kullanıcı avatarı
murtaza
Üye
Üye
 
İleti: 1187
Kayıt: 15.11.2005, 17:15
Konum: Yurt Dışı

İleti emre1905 15.03.2006, 17:42

bu nedir dostum *???
emre1905
Üye
Üye
 
İleti: 19
Kayıt: 07.03.2006, 16:09

İleti sabri ünal 15.03.2006, 17:59

ustalarım, bu sadece linkini kapatıyorum diyor...


kayıt kapalıysa, linki kapatıyor, kayıt açıksa linki açıyor...


http://www.benimsite.net/forum/profile. ... e=register derse yine register sayfasına gidebilir.
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron