Welcome, Guest. Please Login or Register.
November 17, 2024, 08:47:20 AM
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  |  Mod Ideas and Creation  |  Registration: Administrators only « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Registration: Administrators only  (Read 1373 times)
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Registration: Administrators only
« on: March 05, 2002, 09:10:32 AM »
Reply with quote

This would be a great mod to use and also to be able to disable the registrations all together or to have to approve registrations.
Logged

marcribe
Noobie
*
Posts: 7


I'm a llama!

Re:Registration: Administrators only
« Reply #1 on: March 06, 2002, 05:15:57 PM »
Reply with quote

I've made a mod that you can cancel  registration of new members.

you can see it at:

www.ocbrasil.com.br/forum

and try to register  ;)
Logged
DiabloRex
Full Member
***
Posts: 103


ICQ - 11560069 WWW
Re:Registration: Administrators only
« Reply #2 on: March 06, 2002, 06:31:06 PM »
Reply with quote

Wonderful idea, this will make private forums much more secure :)
Logged
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Re:Registration: Administrators only
« Reply #3 on: March 07, 2002, 06:06:51 AM »
Reply with quote

thanx dude... but still looking for a script that only allows for admins to register new users.
Logged

thedeeve
Jr. Member
**
Posts: 83


The Diva Is In!

ICQ - 148969237thedeeve330@hotmail.com WWW
Re:Registration: Administrators only
« Reply #4 on: March 23, 2002, 03:47:22 PM »
Reply with quote

Me TOO!!! I'm looking at other Message board programs because of this issue.  :-[
Logged
klumy
Sr. Member
****
Posts: 432


Re:Registration: Administrators only
« Reply #5 on: March 23, 2002, 04:06:05 PM »
Reply with quote

this would be a great mod ;)
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


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

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Registration: Administrators only
« Reply #6 on: March 23, 2002, 06:59:50 PM »
Reply with quote

well i could give u the code to make it so only admins can see the register screen and make new users.

(from there you could put the persons email in and make it generate a random pass)

however i'm not sure if thats what you want...
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Re:Registration: Administrators only
« Reply #7 on: March 23, 2002, 09:11:01 PM »
Reply with quote

i do think this is what people are after...
Logged

TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


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

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Registration: Administrators only
« Reply #8 on: March 23, 2002, 09:44:09 PM »
Reply with quote

ok, in subs.php line 132

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

   if($username == "Guest") { $yymenu .= $menusep."<a href=\"$cgi;action=login\">$img[login]</a>";
then line 31
   if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>"; }
change to
   if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>"; }
then on line 170:
   $yyuname = ($username == 'Guest') ? "$txt[248] <b>$txt[28]</b>. $txt[249] <a href=\"$cgi;action=login\">$txt[34]</a> $txt[377] <a href=\"$cgi;action=register\">$txt[97]</a>." : "$txt[247] <b>$tmp</b>, ";
change to:
   $yyuname = ($username == 'Guest') ? "$txt[248] <b>$txt[28]</b>. $txt[249] <a href=\"$cgi;action=login\">$txt[34]</a>" : "$txt[247] <b>$tmp</b>, ";
(making it so only admins can see the register button and guests cant)

Now, to make it more secure so people cant go to
index.php?action=register
and register open up register.php
search for
$registerplver="YaBB SE";and add after:
is_admin();

and you are done!

(i did not test this, so if you have any problems, or something is wrong just reply here and i'll fix it in this post)

[Edit: Updated: 25th march - line 132 changed, it should work properly now]
« Last Edit: March 25, 2002, 08:18:47 PM by Tom B » Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Re:Registration: Administrators only
« Reply #9 on: March 25, 2002, 08:57:33 AM »
Reply with quote

thanx, I tried what you said above but it didnt seem to work for 1.1.0 and there were a few slight changes in the code...

however considering just about every other forum software has this feature if the developers had time it would be nice to have this installed... im sorta sick of re uploading the register.php file all the time lol.
Logged

TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


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

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Registration: Administrators only
« Reply #10 on: March 26, 2002, 07:49:27 PM »
Reply with quote

I'll have a look at getting it to work in 1.1.
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Re:Registration: Administrators only
« Reply #11 on: March 26, 2002, 08:13:19 PM »
Reply with quote

thanx so much.
Logged

TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


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

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Registration: Administrators only
« Reply #12 on: March 26, 2002, 08:30:23 PM »
Reply with quote

ok, its only the last step thats having problems, get Boardmod se and then download this:

http://www.ud.2ya.com/yabbse/admin-register.mod

that works with 1.1.0 and 1.0.0 :)
Logged

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


need some help with mods :P

Re:Registration: Administrators only
« Reply #13 on: July 14, 2002, 10:21:44 AM »
Reply with quote

hi Tom B great mod but what do you mean with this? what do i have to change ???

Code:$registerplver="YaBB SE";

and add after:
Code:is_admin();
« Last Edit: July 14, 2002, 10:50:05 AM by Swat » Logged
the_creator
Noobie
*
Posts: 16


Aya..that hurts1

WWW
Re:Registration: Administrators only
« Reply #14 on: July 19, 2002, 07:16:09 PM »
Reply with quote

Quote from: Swat on July 14, 2002, 10:21:44 AMhi Tom B great mod but what do you mean with this? what do i have to change ???

Code:$registerplver="YaBB SE";

and add after:
Code:is_admin();


if u are tryng to made that in the YaBB SE 1.4 Must be
$subsplver="YaBB SE 1.4.0";
and add at the next line
Code:is_admin();
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Registration: Administrators only « 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.057 seconds with 20 queries.