Welcome, Guest. Please Login or Register.
April 18, 2024, 03:55:11 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  |  Completed mods  |  [Done 1.5.x & 1.4.1] Application Mod « previous next »
Pages: [1] 2 3 ... 11 Reply Ignore Print
Author Topic: [Done 1.5.x & 1.4.1] Application Mod  (Read 84785 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

[Done 1.5.x & 1.4.1] Application Mod
« on: October 12, 2002, 02:14:55 AM »
Reply with quote

ID: Application Mod (Registration must be approved by admin)

Version: 1.3a

Mod Info:
This is a mod i made for a community site im working on.
Purpose: a guest has to apply for membership, and admin will review it to accept or reject the application
if admin accept it, the username will be registered, and an email will be sent to the applicant

Downloads
Download Aplication Mod 1.3 for YSE 1.5.1 - 1.5.5
Download Aplication Mod 1.1b for YSE 1.5.1 RC1 B40-45
Download Aplication Mod 1.0 for YSE 1.4.1
use with BoardMod for faster edit ;)
Add-ons
Code for changing the url to edit profile in email message (changed action=profile;user=xx into action=login)

Available Translations:
• German: .lng file - thx to RogerP
• Italian: .lng file - thx to marcnyc

Changelogs:
Ver 1.3a:
- added Italian translations, thx to marcync
Ver 1.3:
- added mysql_escape_string for users without magic_quotes_gpc
- fixed hide email bug (not yet tested :P)
Ver 1.2c:
- fixed js error in register agreement
[ older changelogs are available in the readme and .mod file ]

Screenshots:
BoardIndex notice:


Admin tool:


Send rejection mail:


Instructions:
- download .mod file from the link above
- upload file "CreateTableApplication.php" to your forum directory (where Settings.php is)
- run that file in your browser, if everything is fine (table is created) u can continue to the next step
- install the .mod file using BoardMod, or by manual edit. If you have installed the previous version, uninstall it first in BoardMod
- upload file changed: english.lng, index.php, Admin.php, BoardIndex.php, and Register.php that's included inside this package.
- go to Forum Settings and Preferences in admin section and check the checkboxes for: Email Random Password to New Member Upon Registration? (must) and Disallow guests from doing anything but login or register? (optional)

Upgrading:
If u're upgrading from version 0.9 to 1.0, uninstall that version first using boardmod before applying/installing the newer version
« Last Edit: February 02, 2004, 10:21:44 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Done 1.4.1] Application Mod
« Reply #1 on: October 12, 2002, 12:05:07 PM »
Reply with quote

there is a bug in the MOD!

when you will accept a member yabb give a error:

« Last Edit: October 12, 2002, 12:10:19 PM by Horseman » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Application Mod
« Reply #2 on: October 12, 2002, 07:44:00 PM »
Reply with quote

go to Forum Settings and Preferences in admin section and check the checkboxes for: Disallow guests from doing anything but login or register? and Email Random Password to New Member Upon Registration?


version 1.0 is now released
changes:
- fix registration bug
- Register.php now checks if email address is used by other members
- add form to register new member for admin
« Last Edit: October 12, 2002, 08:27:37 PM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Done 1.4.1] Application Mod
« Reply #3 on: October 13, 2002, 12:19:03 AM »
Reply with quote

thanks,  i forgot this  :-X
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1] Application Mod
« Reply #4 on: October 14, 2002, 06:11:22 PM »
Reply with quote

Can someone give me the zip ? Link doesn't work.
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Application Mod
« Reply #5 on: October 14, 2002, 08:11:11 PM »
Reply with quote

sorry, that server is down atm :(
« Last Edit: February 14, 2003, 10:23:08 PM by Spaceman-Spiff » Logged

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


I may not have morals, but I have standards...

magicalyak@hotmail.com WWW
Re:[Done 1.4.1] Application Mod
« Reply #6 on: November 01, 2002, 06:09:50 PM »
Reply with quote

Spaceman,

I have a lot of people who I put into a "postition" that I would like to do during the accept/reject portion of reviewing applicants.  Is this easy to do?

I'm basically looking to add the profile function for changing a user's position to the review portion of the MOD.  
Logged

"Well, let's just say, 'if your VCR is blinking 12:00, you don't want Linux" - Bruce Perens, Debian's Fearless Leader
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Application Mod
« Reply #7 on: November 02, 2002, 08:07:16 AM »
Reply with quote

it could be done, wont be in my priority list tho, i gotta finish the advance ban and gallery mod first
anyone that wants to add it, feel free to do so, and post the code here ;)
or i might do it next week
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:[Done 1.4.1] Application Mod
« Reply #8 on: November 02, 2002, 06:11:24 PM »
Reply with quote

does this work if you dont set the option "Disallow guests from doing anything but login or register?"

I want guests to be able to view but am getting sick of a few idiots on my board who I dont want to be able to register.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Application Mod
« Reply #9 on: November 02, 2002, 10:37:51 PM »
Reply with quote

yes, it will still work
the only thing that u MUST enable is the random password
Logged

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


Re:[Done 1.4.1] Application Mod
« Reply #10 on: December 06, 2002, 12:02:40 AM »
Reply with quote

I love this mod however after I upload it I get this error


Fatal error: Call to undefined function: clicklog() in /home/utfporg/public_html/jointproject/index.php on line 64

ClickLog();

Below is a sniipit of code from index.php showing the clicklog.

/* ### Version Info ### */
$YaBBversion = 'YaBB SE 1.4.1';
$YaBBplver = 'YaBB SE 1.4.1';

$types_to_register = array('GET','POST','COOKIE','SESSION','SERVER');
 foreach ($types_to_register as $type) {
   $arr = @${'HTTP_' . $type . '_VARS'};
   if (@count($arr) > 0) {
     extract($arr, EXTR_OVERWRITE);
   }
 }


error_reporting (E_ALL ^ E_NOTICE);

include_once ("QueryString.php");
include_once ("Settings.php");
include_once ("$sourcedir/Subs.php");
include_once ("$sourcedir/Errors.php");
include_once ("$sourcedir/Load.php");
include_once ("$sourcedir/Security.php");
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);

/* Load the mysql version, and set a variable for 3.22 compliancy  */
//$request = mysql_query("SELECT VERSION()");
//$row = mysql_fetch_row($request);  // version will be something like '3.23.13-log'
//global $doLimitOne;
//$doLimitOne = (substr($row
,0,4) >= 3.23)?' LIMIT 1':'';
$doLimitOne = '';


/* ### Log this click ### */
ClickLog();

/* ### Load the user's cookie (or set to guest) ### */
LoadCookie();

/* ### Load user settings ### */
LoadUserSettings();

$usrlng_result = mysql_query("SELECT value FROM {$db_prefix}settings WHERE variable='userLanguage'");
$temp = mysql_fetch_array($usrlng_result);
$chkusrlng = $temp
;
$lngfile_result = mysql_query("SELECT lngfile FROM {$db_prefix}members WHERE memberName='$username'");
$temp = mysql_fetch_array($lngfile_result);
$chklngfile = $temp
;
$chklngfile2 = $temp
;

   if ($chkusrlng == 1) {
      if ($chklngfile == Null) {
         include_once ($language);
      } else {
         include_once ($chklngfile2);
      }
   } else {
         include_once ($language);
   }

//include_once("english.lng");

/* ### Banning ### */
banning();

/* ### Write log ### */
WriteLog();

/* ### Load board information ### */
LoadBoard();

set_error_handler("yabb_error_handler");
yymain();
function  yymain() {
   global $maintenance,$action,$sourcedir,$settings,$username,$guestaccess,$modSettings,$currentboard, $db_prefix;

/* #BEGIN SUB YYMAIN */

/* #### Choose what to do based on the form action #### */
if ($maintenance == 1 && $action == 'login2') { include_once("$sourcedir/LogInOut.php"); Login2(); }
if ($maintenance == 1 && $settings[7] != 'Administrator') { include_once ("$sourcedir/Maintenance.php"); InMaintenance(); }
/* ### Guest can do the very few following actions. */
if($username == 'Guest' && $guestaccess == 0) {
           if (!(($action == 'login') || ($action == 'login2') || ($action == 'register') || ($action == 'register2')))
           { KickGuest(); }
}

if (($modSettings['trackStats']=='1') && ($modSettings['hitStats']=='1')){
 $date = getdate(time());
 $statsquery = mysql_query("UPDATE {$db_prefix}log_activity SET hits = hits + 1 WHERE month = $date[mon] AND day = $date[mday] AND year = $date[year]");
 if(mysql_affected_rows() == 0)
   $statsquery = mysql_query("INSERT INTO {$db_prefix}log_activity (month, day, year, hits) VALUES ($date[mon], $date[mday], $date[year], 1)");
}


$fastfind = substr($action,0,1);
/* #BEGIN FASTFIND IF STATEMENT */
if( $fastfind == 'l' ) {
   if ($action == 'login') { include_once ("$sourcedir/LogInOut.php"); Login(); }
   else if ($action == 'login2') { include_once ("$sourcedir/LogInOut.php"); Login2(); }
   else if ($action == 'logout') { include_once ("$sourcedir/LogInOut.php"); Logout(); }
   else if ($action == 'lock') { include_once ("$sourcedir/LockThread.php"); LockThread(); }
   else if ($action == 'lockVoting') { include_once ("$sourcedir/Poll.php"); LockVoting(); }

PLEASE can someone help me as this mod will certainly be of great help to me.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.4.1] Application Mod
« Reply #11 on: December 06, 2002, 02:08:44 AM »
Reply with quote

Spiff, forgot to tell you how much this mod kicks ass.  I installed it on www.cpfools.com running YaPP with no issues.  My one change was that in the aprove or deny screen it shows the person's IP that they registered under.
Logged

Overseer
Sr. Member
****
Posts: 455


Re:[Done 1.4.1] Application Mod
« Reply #12 on: December 06, 2002, 01:25:43 PM »
Reply with quote

Installed it last night on my forum it works like a charm :)

Quote from: David on December 06, 2002, 02:08:44 AMSpiff, forgot to tell you how much this mod kicks ass.  I installed it on www.cpfools.com running YaPP with no issues.  My one change was that in the aprove or deny screen it shows the person's IP that they registered under.

I just came to suggest that very thing.
The IP being shown on the approvals page would be a very very good addition to this already useful mod.
Logged

I learned that from the G's, a G is an Overseer, the Overseer sees.
More than you do 'cause he gets experienced - Snoop on Daz's OG

Supreme exalted, universal leader, Descendent of the kings and queens, the Overseer
The overlord, cream of the crop, creme de la creme - Gang Starr  Royalty
smacktalk
Full Member
***
Posts: 236


No Personal Text!!

WWW
Re:[Done 1.4.1] Application Mod
« Reply #13 on: December 07, 2002, 12:27:23 AM »
Reply with quote

If someone is denied, no notification email is sent.. why?
Logged

As a well-spent day brings happy sleep, so a life well spent brings happy death.
Overseer
Sr. Member
****
Posts: 455


Re:[Done 1.4.1] Application Mod
« Reply #14 on: December 07, 2002, 01:00:44 AM »
Reply with quote

coz they aint worth notifying  ;D

maybe should be an option ;)


i also thought it might be a good idea earlier for admins to be notified of new applicants
Logged

I learned that from the G's, a G is an Overseer, the Overseer sees.
More than you do 'cause he gets experienced - Snoop on Daz's OG

Supreme exalted, universal leader, Descendent of the kings and queens, the Overseer
The overlord, cream of the crop, creme de la creme - Gang Starr  Royalty
Pages: [1] 2 3 ... 11 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x & 1.4.1] Application Mod « 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.085 seconds with 19 queries.