You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Is it possible? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Nova45
Guest






PostPosted: Wed Aug 24, 2005 6:34 pm Reply with quoteBack to top

I was wondering if it was possible to disable registration on a php site so that noone outside the administrator can make account. I still need people to be able to login for the accounts i create but i dont want anyone to be able to register unless i make the account for them. is it possible? if so.. how..

Thanks in advance
Find all posts by Anonymous
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 6:45 pm Reply with quoteBack to top

Hey I am having touble getting the upload profile photo mod working


I can pull up the table install module..

here is the code


<?php
/*
table inst for profile photo mod
*/

define('IN_PHPBB', true);

$phpbb_root_path='./';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

function query($sql, $errormsg)
{
global $db;

if ( !($result = $db->sql_query($sql)) )
{
print "<br><font color=\"red\">\n";
print "$errormsg<br>";

$sql_error = $db->sql_error();
print $sql_error['code'] .": ". $sql_error['message']. "<br>\n";

print "<pre>$sql</pre>";
print "</font>\n";

return FALSE;
}
else
{
return $result;
}
}

function insert_into_config($name, $value)
{
global $db;

$sql = 'SELECT config_name FROM ' . CONFIG_TABLE . ' WHERE config_name=\'' . $name . '\'';

$result = $db->sql_query($sql);

if ($db->sql_numrows($result) != 0)
{
return;
}

echo 'Insert ' . $name . ' into ' . CONFIG_TABLE . '...<br />';
$sql = 'INSERT INTO ' . CONFIG_TABLE . ' (config_name, config_value) VALUES (\'' . $name . '\', \'' . $value . '\')';
query($sql, 'Could not insert ' . $name . ' into ' . CONFIG_TABLE . '.');
}

//
// Add New Config Variables
//
echo "<html>";
echo "<body>";

insert_into_config('allow_photo_remote', '1');
insert_into_config('allow_photo_upload', '1');
insert_into_config('photo_filesize', '6144');
insert_into_config('photo_max_height', '80');
insert_into_config('photo_max_width', '80');
insert_into_config('photo_path', 'images/photos');
echo "done<br />";

echo "create user variable 'user_photo'...";
$sql = "ALTER TABLE " . USERS_TABLE . " ADD user_photo VARCHAR(100)";
query($sql, "Couldn't alter users table");
echo "done<br />";

echo "create user variable 'user_photo_type'...";
$sql = "ALTER TABLE " . USERS_TABLE . " ADD user_photo_type TINYINT(4) DEFAULT '0' NOT NULL";
query($sql, "Couldn't alter users table");
echo "done<br />";

echo "<br />sucessfully added new config variables.<br />";
echo "</body>";
echo "</html>";
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
webshark
Sergeant
Sergeant


Joined: Apr 21, 2005
Posts: 106


PostPosted: Wed Aug 24, 2005 10:30 pm Reply with quoteBack to top

nova


check out approve membership and cnb ya modules


rock


wash your face

_________________
Image
Find all posts by websharkView user's profileSend private messageVisit poster's website
USM
Guest






PostPosted: Thu Aug 25, 2005 12:02 am Reply with quoteBack to top

Nova look at the resend email module as this gives you the ability to check users applications to join before sending the email
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.317 Seconds - 346 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::