[11/02/07] Forced Login

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!
6
60%
Very Good
2
20%
Good
1
10%
Fair
1
10%
Poor
0
No votes
 
Total votes: 10

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28080
Joined: Sat Aug 16, 2003 7:36 am

[11/02/07] Forced Login

Post by Extensions Robot »

MOD Name: Forced Login
Author: Lord Le Brand
MOD Description: When a guest visits, he will be redirected to login, where a message is displayed stating login is required and providing a register link. This can be turned on and off in the board configuration in the ACP.

MOD Version: 2.0.2 (Updated 02/11/07)
Tested on phpBB Version: 2.0.22

Download File: forced_login_2.0.2.zip
mods overview page: View
File Size: 19924 Bytes



Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Apr 30, 2007 12:29 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost »

MOD Validated/Released

Notes:
The description says it all.

Lord Le Brand
Registered User
Posts: 306
Joined: Fri May 26, 2006 8:28 pm
Location: The Netherlands (GMT+1)

Post by Lord Le Brand »

YAY! Finally a MOD in the DB. :D
Thanks guys!

Screenshot:
Image
Image

User avatar
Seatere
Registered User
Posts: 3
Joined: Sun Apr 10, 2005 12:48 am
Location: LI, NY
Contact:

Slight Change?

Post by Seatere »

Hi,

I absolutely love the idea of this mod, it seems to solve so many spam problems that I am currently experiencing with my board. I am very new to both phpbb and to php itself which is the reason for my next question.

Would there be a way to change this mod slightly so that instead of asking everyone to log in when they visit, could it ask them only when they want to post as guest, meaning that they have to be logged in to be able to post?

That would just be such a wonderful solution to so many of my headaches!

Take Care,

Seatere

Lord Le Brand
Registered User
Posts: 306
Joined: Fri May 26, 2006 8:28 pm
Location: The Netherlands (GMT+1)

Post by Lord Le Brand »

That is a standard feature in phpBB which you can find in forum permissions in the admin control panel.

In simple mode you can set:
  • Public (Everyone can read and post),
  • Registered (Everyone cvan read, only registered users can post),
  • Registered [Hidden] (Only registered users can read and post),
  • Private (Everyone can see the forum, only specific users can read and post),
  • Private [hidden] (Only specific users can read and post),
  • Moderator (Everyone can see the forum, only moderators can read and post)
  • Moderator [Hidden] (Only moderators can read and post)
In advanced mode you can set forum permissions like posting, reading, voting, and so forth, to one of
  • All (everyone can do the specific action),
  • Reg (registered users only),
  • Private (Specific users),
  • Mod (Moderators and admins)
  • Admin (admin only).
So if you set forum permissions to Registered for all forums (or posting/replying permissions to Reg in advanced mode), only registered users can post on your forums.

So no MOD needed to do that :wink:
Image

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Nice MOD :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Roks
Registered User
Posts: 119
Joined: Thu Sep 14, 2006 1:15 am

Post by Roks »

Nice MOD. :wink:

Kev_Dawg
Registered User
Posts: 33
Joined: Thu Oct 05, 2006 6:12 am

Post by Kev_Dawg »

Everything goes well till it has to write entries to the tables in my database, it gives me some semicolon error. What can I do to fix this, is there anyway at all?

Lord Le Brand
Registered User
Posts: 306
Joined: Fri May 26, 2006 8:28 pm
Location: The Netherlands (GMT+1)

Post by Lord Le Brand »

O my, looks like the semicolon is missing, there should be a semicolon at the ende of the sql line :oops:
Shouldn't be a problem when you insert it manually though, try that
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('login_required', 0);


Wonder why the person who validated this didn't see that :roll:
Image

Kev_Dawg
Registered User
Posts: 33
Joined: Thu Oct 05, 2006 6:12 am

Post by Kev_Dawg »

Lord Le Brand wrote: O my, looks like the semicolon is missing, there should be a semicolon at the ende of the sql line :oops:
Shouldn't be a problem when you insert it manually though, try that
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('login_required', 0);


Wonder why the person who validated this didn't see that :roll:


How can I add it in, I'm a bit new and I"m trying to find out how to modify it in my database.

Lord Le Brand
Registered User
Posts: 306
Joined: Fri May 26, 2006 8:28 pm
Location: The Netherlands (GMT+1)

Post by Lord Le Brand »

http://phpbbmodders.org/viewtopic.php?t=108
That's a tutorial on using phpmyadmin, written by eviL<3
Hope that helps :)
Image

teachmealanguage.com
Registered User
Posts: 3
Joined: Mon Oct 09, 2006 5:34 pm
Contact:

profile.php problem

Post by teachmealanguage.com »

first off, I cannot execute the command :
#-----[ OPEN ]------------------------------------------
#
profile.php

#
#-----[ FIND ]------------------------------------------
#
$mode = htmlspecialchars($mode);

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $mode != 'viewprofile' )
{
define('IN_PROFILE', true);
}

#
because it can't find the first line...

Second, when a user comes to the site, they can login just fine, but the register links don't work. Nothing happens when they're clicked. What's wrong?

teachmealanguage.com
Registered User
Posts: 3
Joined: Mon Oct 09, 2006 5:34 pm
Contact:

Re: profile.php problem

Post by teachmealanguage.com »

teachmealanguage.com wrote: first off, I cannot execute the command :
#-----[ OPEN ]------------------------------------------
#
profile.php

#
#-----[ FIND ]------------------------------------------
#
$mode = htmlspecialchars($mode);

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $mode != 'viewprofile' )
{
define('IN_PROFILE', true);
}

#
because it can't find the first line...

Second, when a user comes to the site, they can login just fine, but the register links don't work. Nothing happens when they're clicked. What's wrong?


Found out why... Can we update this mod so that it works with phpbb v2.0.6? Everything works except whats in the "profile.php" page... Is there an update?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Post by RMcGirr83 »

Seeing as phpBB is at 2.0.21 that would be a significant downgrade (2.0.6 is very old).

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Upgrade to 2.0.21 imediateley, using outdated versions will get you hacked sooner or later.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

Post Reply

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