Welcome, Guest. Please Login or Register.
November 17, 2024, 10:53:05 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

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 1376 times)
the_creator
Noobie
*
Posts: 16


Aya..that hurts1

WWW
Re:Registration: Administrators only
« Reply #15 on: July 19, 2002, 07:24:00 PM »
Reply with quote

i get that to make control in the registrations,becouse seems that the mod link not work,and messing a little i decid to control too when my users lost is passwords,and disable the Forgot password system

Open Reminder.php
Look for :
$row = mysql_fetch_array($request);
$name = trim($row['realName']);
$email = trim($row['emailAddress']);
if ($email == '')
   mailprog_error();
$status = trim($row['memberGroup']);
And Deleted :
$email = trim($row['emailAddress']);
if ($email == '')

That ill end in all ways to a Webmail error in the page like this:

                 Mailprogram error.
Send email to Webmaster to ask for password.


well i dunno the others but for me seems more secure :)



Logged
Swat
Noobie
*
Posts: 29


need some help with mods :P

Re:Registration: Administrators only
« Reply #16 on: July 21, 2002, 02:00:13 PM »
Reply with quote

ok but when i do that i have this error Parse error: parse error, unexpected ':' in C:\Program Files\Apache Group\Apache2\htdocs\yabbse\Sources\Register.php on line 30

Fatal error: Call to undefined function: register() in C:\Program Files\Apache Group\Apache2\htdocs\yabbse\index.php on line 214


this is what i have done $registerplver="YaBB SE 1.4.0";
Code:is_admin();
Logged
kiboost
Jr. Member
**
Posts: 58


Enjoy your life !!

ICQ - 60784747 WWW
Re:Registration: Administrators only
« Reply #17 on: August 27, 2002, 06:42:46 PM »
Reply with quote

Any news about this since july ? Is there such a mod which works under se 1.4.0 ? I need a mod that allow only admin to register, so new users have to ask the admin to be a member (via email etc).

Thanks

Kib
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 #18 on: August 27, 2002, 07:09:29 PM »
Reply with quote

well i'm back (kinda) i guess i could remake it for 1.4.1
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
kiboost
Jr. Member
**
Posts: 58


Enjoy your life !!

ICQ - 60784747 WWW
Re:Registration: Administrators only
« Reply #19 on: August 28, 2002, 12:11:54 AM »
Reply with quote

Tom, you rox  ;)
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 #20 on: August 28, 2002, 12:52:31 PM »
Reply with quote

Here:

<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, save it as a .mod file and then run it with boardmod :) (I cant delete it this time :P)

Note: I did not test this and cannot guarantee it will not screw up your board ;)  As always: BACKUP YOUR FILES FIRST.

[Edit: Removed the register button from the menu in ssi.php too]
« Last Edit: August 28, 2002, 01:00:23 PM by Tom B » Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
kiboost
Jr. Member
**
Posts: 58


Enjoy your life !!

ICQ - 60784747 WWW
Re:Registration: Administrators only
« Reply #21 on: August 28, 2002, 03:25:25 PM »
Reply with quote

ok, as I don't know how to execute it as mod, I've done it manually as it was writed. and I must say, hey !! I works lovely !!!!

Thanks Tom !!

Kib  8)
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 #22 on: August 28, 2002, 03:31:21 PM »
Reply with quote

For future reference, to use a mod file you need to use boardmod SE, although i dont have a download link you can find it by searching the forums :)
Logged

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


I'm a llama!

Re:Registration: Administrators only
« Reply #23 on: August 30, 2002, 12:41:00 AM »
Reply with quote

I was able to get this done and working no problem ( slight miracle I may add on my part). Great job!!

I do havea question though...my goal is to make my board private....however I would like to be able to have the guest request a member ship via e-mail. This person would send the e-mail with a requested username with real name...ect. And then I could create the account for them. The way things are now....when they get to the login page...and hit the "click here to register button" it sends them to an error page that doesn't give them the opprotunity to request registration.....

I would really appreciate any help with this....thanks

(forgive any typos...i've been at this for 12 hours and my eyes are glassed over)
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 #24 on: August 30, 2002, 10:53:29 AM »
Reply with quote

oh yeah, last time i edited out every mention of "Register" I could make a page that sends an IM to the admin tht guests can use. IE they can only IM and admin.

I'm out of town for a few days and then i have start school so dont expect anything for a while ;)
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
kiboost
Jr. Member
**
Posts: 58


Enjoy your life !!

ICQ - 60784747 WWW
Re:Registration: Administrators only
« Reply #25 on: June 02, 2003, 04:02:17 PM »
Reply with quote

Yeah would be really great !!!

Actually I use phpmyadmin to create new users, better than rename register.php, create, re-rename,e tc..  ;)

Kib
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.069 seconds with 20 queries.