PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

PostPosted: Thu Dec 25, 2003 4:47 pm Reply with quote Back to top

Hi guys....big apology if this has been covered before...I couldnt find it here.....I want to remove the sign up option in the login block so that no one can sign in UNLESS they are registered, and of course I will set up all accounts, how can I do this please?.

I want to be the only one that can create accounts, the login block will be on my main page and viewable by anyone, but they can only sign in.... not register, I have had a look at my_account index.php and guess thats what i have to edit? just not sure what or where...... but ultimately I dont want users to access unless they have an account that I have created.

TIA
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri Dec 26, 2003 11:16 pm Reply with quote Back to top

I would take this approach. In Your_Account/index.php, locate the new_user() function. The first few lines should look something like this
Code:
function new_user() {
    global $my_headlines, $module_name, $db, $gfx_chk;
    if (!is_user($user)) {
   mt_srand ((double)microtime()*1000000);
Modify it to read this
Code:
function new_user() {
    global $my_headlines, $module_name, $db, $gfx_chk;
    if (!is_user($user)) {
         $pagetitle = "- "._ACCESSDENIED."";
         include("header.php");
         title("$sitename: "._ACCESSDENIED."");
         OpenTable();
         echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
            .""._MODULEUSERS.""
            .""._GOBACK."";
         CloseTable();
         include("footer.php");
         die();

   mt_srand ((double)microtime()*1000000);

I will leave the editing of any links that reference New User registration to you Smile.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

PostPosted: Sun Dec 28, 2003 10:56 pm Reply with quote Back to top

Thanks, I have had a go and ended up just deleting any reference to "register new user", seems to work out how i want, I left in 2 references (under case I think) so as I could create new user myself as admin.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum