[2.0.19] Invitation Only

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
48
63%
Very Good
19
25%
Good
6
8%
Fair
1
1%
Poor
2
3%
 
Total votes: 76

d0tt
Registered User
Posts: 1
Joined: Wed Sep 19, 2007 9:24 pm

Re: [2.0.19] Invitation Only

Post by d0tt » Wed Sep 19, 2007 9:46 pm

nvm.

User avatar
Kellanved
Former Team Member
Posts: 2635
Joined: Wed Jan 26, 2005 2:48 pm
Location: Meta-level

Re: [2.0.19] Invitation Only

Post by Kellanved » Sun Sep 23, 2007 9:27 am

ryan1918dotcom wrote:Does anyone have any idea why it's doing that? Or try to do it on your board and see if it does the same thing..
This version doesn't even have the pre-invite splash-screen. In the U2U version, that screen does not validate the code to make brute-forcing harder.
Nocando is in Idontwanna county. No support via PM

1scholar
Registered User
Posts: 18
Joined: Wed Jun 27, 2007 10:10 pm

Re: [2.0.19] Invitation Only

Post by 1scholar » Mon Sep 24, 2007 7:12 pm

Can this be easily turned off, or how it can be disabled (temporarily or permanently)?

Thanks.

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 23954
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.19] Invitation Only

Post by Paul » Mon Sep 24, 2007 7:25 pm

1scholar wrote:Can this be easily turned off, or how it can be disabled (temporarily or permanently)?

Thanks.
You can enable/disable it in ACP -> genereal configuration.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

1scholar
Registered User
Posts: 18
Joined: Wed Jun 27, 2007 10:10 pm

Re: [2.0.19] Invitation Only

Post by 1scholar » Mon Sep 24, 2007 7:45 pm

Perfecto!

Thanks!

User avatar
yuga
Registered User
Posts: 15
Joined: Thu Mar 18, 2004 9:31 am
Location: Serbia

Re: [2.0.19] Invitation Only

Post by yuga » Thu Nov 15, 2007 7:20 pm

Which files I need to edit in order to enter short text description for "invitation code" in register form ?

Image

User avatar
Acorn
Registered User
Posts: 375
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

Re: [2.0.19] Invitation Only

Post by Acorn » Thu Nov 15, 2007 10:04 pm

There are two places you can do it.

One is in (for me) languages/lang_english/lang_main.php. If you find
//BEGIN Invite Only MOD
$lang['Invitation_code_invalid'] = 'The entered Invitation Code is invalid';
$lang['Invitation'] = 'Invitation Code';
//END Invite Only MOD
you can add the text you want after 'Invitation Code' in the third line (and within the quotes).

The other is in /templates/subSilver/profile_add_body.tpl

Find
<!-- BEGIN switch_invitation_only -->
<tr>
<td class="row1"><span class="gen">{L_INVITATION}: * </span><br />
<td class="row2"><input type="text" class="post" style="width: 200px" name="invitation_code" size="8" maxlength="8" value="{INVITATION}" /></td>
</tr>
<!-- END switch_invitation_only -->
and add the text you want in front of the * in the third line.

Either of these will work - I'm sure one is better than the other, and maybe someone will come along and advise on that!
Last edited by Acorn on Fri Nov 16, 2007 8:43 am, edited 1 time in total.
Getting braver all the time. :D

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 23954
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.19] Invitation Only

Post by Paul » Thu Nov 15, 2007 10:45 pm

The best place is to edit it in the lang file :)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
spaceagle
Registered User
Posts: 76
Joined: Tue Aug 06, 2002 5:22 am

Re: [2.0.19] Invitation Only problem

Post by spaceagle » Thu Nov 22, 2007 10:13 pm

I just installed this mod, looks great but I have a problem now

The registration page comes up blank, and the page when clicked on the link sent to the invitee email

It just come up a blank page what could be the problem phpbb vs 2.0.22

please help

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 23954
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.19] Invitation Only

Post by Paul » Thu Nov 22, 2007 10:52 pm

There is probarly a php error, check if you have done the edits in usercp_register.php correctly :)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
spaceagle
Registered User
Posts: 76
Joined: Tue Aug 06, 2002 5:22 am

Re: [2.0.19] Invitation Only

Post by spaceagle » Fri Nov 23, 2007 12:44 am

That was my first though, i ran though it a second time, Ill check it again, The only thing that is different is in the sql database the isntallation file had was this

Code: Select all

CREATE TABLE phpbb_invitations (
	invitation_id MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT ,
	invitation_code VARCHAR( 8 ) NOT NULL ,
	invitation_description TEXT NOT NULL,
	invitation_uses MEDIUMINT(8) NOT NULL DEFAULT '1',
	invitation_group MEDIUMINT(8) NOT NULL DEFAULT '0',
        invitation_email TEXT NOT NULL,
	PRIMARY KEY ( invitation_id ) 
);

CREATE TABLE phpbb_invitation_users (
	invitation_id MEDIUMINT( 8 ) NOT NULL,
	user_id MEDIUMINT( 8 ) NOT NULL,	
	PRIMARY KEY ( user_id ) 
);	

INSERT INTO phpbb_config ( config_name , config_value ) 
	VALUES ('invite_only', '1'); 
and i changed all the phpbb to phpbb2 would that affect this?

User avatar
spaceagle
Registered User
Posts: 76
Joined: Tue Aug 06, 2002 5:22 am

Re: [2.0.19] Invitation Only

Post by spaceagle » Fri Nov 23, 2007 3:23 am

Nevermind I found the problem, a missing { lame i know

User avatar
spaceagle
Registered User
Posts: 76
Joined: Tue Aug 06, 2002 5:22 am

Re: [2.0.19] Invitation Only

Post by spaceagle » Sat Nov 24, 2007 9:55 am

Ok So i just installed this mod on top of xsmod, forum watch, and simple subforums

and when the user tries to register with thier invitation code i get this sql error
Could not insert data into users table

DEBUG MODE

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES (3, 'Russell Lund', 1195898016, '8ff953dd97c4405234a04291dee39e0b', 'russelllundbiotech@spaceagle.homeip.net', '', '', '', '', '', '', '', '', 0, 1, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 0, 'D M d, Y g:i a', 'english', 1, 0, 1, 1, '')

Line : 689
File : usercp_register.php


Please help

User avatar
spaceagle
Registered User
Posts: 76
Joined: Tue Aug 06, 2002 5:22 am

Re: [2.0.19] Invitation Only

Post by spaceagle » Sat Nov 24, 2007 9:58 am

Duplicate

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 23954
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.19] Invitation Only

Post by Paul » Sat Nov 24, 2007 9:59 am

Did you run the sql included in the MOD?
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 6 guests