Welcome, Guest. Please Login or Register.
March 19, 2025, 06:38:31 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1] Only Admins can register new members « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.4.1] Only Admins can register new members  (Read 2840 times)
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
[Done 1.4.1] Only Admins can register new members
« on: August 28, 2002, 01:09:55 PM »
Reply with quote

This mod makes it so that only admins can see the register button and register new members.

<file>
Sources/Subs.php
</file>

<search>
if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>";
</search>

<replace>
if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</replace>

<search>
if($username == "Guest") { $yymenu .= $menusep."<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</search>

<replace>
if($username == "Guest") { $yymenu .= $menusep."<a href=\"$cgi;action=login\">$img[login]</a>";
</replace>

<file>
Sources/Register.php
</file>

<search>
function Register (){
</search>

<add before>
is_admin();
</add before>

<file>
SSI.php
</file>

<search>
if($settings[7] == 'Administrator') { $yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>"; }
</search>

<replace>
if($settings[7] == 'Administrator') { $yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>"; }
</replace>

<search>
if($username == "Guest") { $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</search>

<replace>
if($username == "Guest") { $yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>";
</replace>

Copy that into notepad then save it as a .mod file.
« Last Edit: August 28, 2002, 01:10:26 PM by Tom B » Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
rfo00457
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.1] Only Admins can register new members
« Reply #1 on: September 18, 2002, 12:34:18 PM »
Reply with quote

How is this done?

I can not find the setting to activate

"only Administrators can register new members"

in 1.4.1
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.4.1] Only Admins can register new members
« Reply #2 on: September 18, 2002, 01:17:53 PM »
Reply with quote

It doesn't look like there is a setting, or an option for it.

Once you apply the above mod, it's forced that Admins can register people, and ONLY admins. No chocie around it.

If you don't forsee a use for this mod, which I do, then I'd suggest not using it. ;D

Cool mod though, I've been waiting around for something similar to this :)
Logged
rfo00457
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.1] Only Admins can register new members
« Reply #3 on: September 18, 2002, 01:26:37 PM »
Reply with quote

I definitely have a use for this.

I understood that the mod was for another version and the subject says this mod is included in 1.4.1 (because of DONE 1.4.1.)

So you say I have to mod my board according to this code and then I have this setting changed?
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.4.1] Only Admins can register new members
« Reply #4 on: September 18, 2002, 01:46:58 PM »
Reply with quote

Yup. The settings are automatically changed, and the only way to "fix" it, is to uninstall the mod ;D
Logged
rfo00457
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.1] Only Admins can register new members
« Reply #5 on: September 18, 2002, 01:53:02 PM »
Reply with quote

Thanks, it works.

Now I only have to change some text, so that the new users understand what happens.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Only Admins can register new members
« Reply #6 on: October 05, 2002, 02:58:43 AM »
Reply with quote

is there any way to show the agreement notice the first time the new person logins or mail him the agreement with the account info?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
the_creator
Noobie
*
Posts: 16


Aya..that hurts1

WWW
Re:[Done 1.4.1 and 1.5.1RC1 ] Only Admins can register new members
« Reply #7 on: January 26, 2003, 10:32:44 AM »
Reply with quote

ok seems that works too with 1.5.1RC1, with some position changes... or not ,but i have tested in my 1.5.1RC1 and worked.

fits mor less this way

<file>
Sources/Subs.php
</file>

<search>
if ($settings[7] == 'Administrator')
$yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>";
</search>

<replace>
if ($settings[7] == 'Administrator')
$yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</replace>

<search>
($username == 'Guest')
$yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</search>

<replace>
($username == 'Guest')
$yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>";
</replace>

<file>
Sources/Register.php
</file>

<search>
function Register ()
</search>

<add before>
is_admin();
</add before>

<file>
SSI.php
</file>

<search>
if ($settings[7] == 'Administrator')
$yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>"; }
</search>

<replace>
if ($settings[7] == 'Administrator')
$yymenu .= "$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</replace>

<search>
if ($username == "Guest")
$yymenu .= "$menusep ."<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
</search>

<replace>
if ($username == "Guest")
$yymenu .= "$menusep."<a href=\"$cgi;action=login\">$img[login]</a>";
</replace>

TheJkWhoSaysNi can you test,worked for me but since u made the original :)
i made this running its possible that i hade copy wrong sumething or not..


« Last Edit: January 26, 2003, 03:29:31 PM by the_creator » Logged
dumbfatguy
Noobie
*
Posts: 40


Inspiration moves me brightly

Re:[Done 1.4.1] Only Admins can register new members
« Reply #8 on: February 04, 2003, 04:54:33 PM »
Reply with quote

please help me I really need this mod for
1.5.1
but I keep getting the error

Parse error: parse error, unexpected T_VARIABLE in /home/ryanwyman/www/boards/Sources/Subs.php on line 167

Fatal error: Call to undefined function: clicklog() in /home/ryanwyman/www/boards/index.php on line 58
Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.4.1] Only Admins can register new members
« Reply #9 on: February 09, 2003, 11:52:46 PM »
Reply with quote

Quote from: dumbfatguy on February 04, 2003, 04:54:33 PM
please help me I really need this mod for
1.5.1
but I keep getting the error

Parse error: parse error, unexpected T_VARIABLE in /home/ryanwyman/www/boards/Sources/Subs.php on line 167

Fatal error: Call to undefined function: clicklog() in /home/ryanwyman/www/boards/index.php on line 58

I've got the same error.. I need this mod...  :-\
Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.4.1] Only Admins can register new members
« Reply #10 on: February 11, 2003, 08:33:35 PM »
Reply with quote

please  :'(
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1] Only Admins can register new members
« Reply #11 on: February 11, 2003, 08:41:24 PM »
Reply with quote

There'll be still changes in 1.5.1 RC, so be patient and wait until it is released... ::)
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1] Only Admins can register new members « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.048 seconds with 21 queries.