FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Deny Anonymous Access
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon1.gif  Deny Anonymous Access [message #21113] Sun, 14 November 2004 22:27 Go to previous message
robb is currently offline  robb   United States
Messages: 3
Registered: November 2004
Karma:
Junior Member
While evaluating forum software I found FUD! YEA! To make it fit the needs of my client I needed to disable anonymous logins. My solution follows. Please forgive the PHP coding and FUDforum hacking as my total PHP/FUDforum programing experience is now 4 hours (5 years of Perl so that helps).

Once the 'Deny Anonymous Access' setting in the GLobal Administration section is set to yes all accesses to FUDforum will genertae the default login screen (as if the user clicked on login) until a sucessful login is completed.

The changes are being uploaded in patch style, hope that works for all.

Some notes:

Mostly untested. I made these changes to demonstrate FUDforum's capabilities and lack the time to fully test the patches. Use at your own risk!

I used $FUD_OPT_4 for my bit flag to avoid stomping on other options (although at this time FUD_OPT_3, 512 appears available). This requires you to add '$FUD_OPT_4 = 0;' to your GLOBALS.php otherwise things will not work properly.

My data volume is in ./data (not the best place but a requirement for my testing). If your data/ is located elsewher erelative to FUDforum you may need to edit the patch file.

If you are uncomfortable applying patches please find someone hat is familiar with this process to help you.

3 files are modified
- GLOBALS.php (manual edit needed, see below!!)
- data/include/GLOBALS_HELP
- adm/admglobal.php
- data/src/users.inc.t

Steps to apply patch
- BACKUP current installation. I do not take repsonsible for any havic caused by these changes.
- Edit GLOBALS.php and add the line
$FUD_OPT_4 = 0;
- Save the patch file someplace
- Execute the following from the FUDforum directory, requires a Linux or Linux like system
- patch -p1 < {path-to-file}/deny-anoymous-user.txt
- Log in as administrator
- Select admin functions
- Scroll down to General and set the Deny Anonymous User flag appropiatly, defualt is NO
- Save changes
- After modifications all themes must be rebuilt with the theme manager.

Alternative method
- Examine patch file and make code changes manually. Be very sure to use TABS in the GLOBALS_HELP file as spaces will case no end of grief.

(I really hope someone else has not already done this, but I could not find any such modification on the board).

[Updated on: Mon, 15 November 2004 00:35]

Report message to a moderator

[Message index]
 
Read Message icon1.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Email Participation patch
Next Topic: FudForum & PHPList
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Jun 29 07:02:59 GMT 2024

Total time taken to generate the page: 0.04619 seconds