Hello all.
I am having some questions about a subject.
I am running a small social community using SocialEngine and i want to include phpbb3 with an arcade mod or any arcade board that support high scores.
My problem is that i do not want my users to re-register into the board. So if I manage to encode the password during login, into the encoding system of phpbb3 or just md5, I will make the registrations my self through the database.
That means they will login every time they want to access the arcade unless they press remember me, but they will not register themselves.
I know that this is something that is able to be made.
Also is there any chance to make the login into the arcade automatic?
There is tutorial and a script that it is used for phpbb2 and it is available here http://www.socialengine.net/tutorial...tutorial_id=44
Thank you all.
1 1402
This is a code i found into the socialengine's plugin.
I think this does all the work - // THIS METHOD CREATES A FORUM USER WITH THE SAME USERNAME AS THE CURRENT USER
-
// INPUT:
-
// OUTPUT:
-
function forum_user_create() {
-
global $db, $board_config;
-
-
// GET NEXT USER ID
-
$row = $db->sql_fetchrow($db->sql_query("SELECT MAX(user_id) AS max_user_id FROM " . USERS_TABLE));
-
$forum_user_id = $row['max_user_id'] + 1;
-
-
// ENCRYPT PASSWORD
-
$password_md5 = md5(randomcode());
-
-
// SET DEFAULT VALUES FOR SOME VARIABLES
-
$viewemail = FALSE;
-
$allowviewonline = TRUE;
-
$notifyreply = FALSE;
-
$notifypm = TRUE;
-
$popup_pm = TRUE;
-
$attachsig = $board_config['allow_sig'];
-
$allowhtml = $board_config['allow_html'];
-
$allowbbcode = $board_config['allow_bbcode'];
-
$allowsmilies = $board_config['allow_smilies'];
-
$user_style = $board_config['default_style'];
-
$user_dateformat = $board_config['default_dateformat'];
-
$user_timezone = $board_config['board_timezone'];
-
$user_lang = $board_config['default_lang'];
-
-
// BEGIN PHPBB2 INSERT
-
$db->sql_query("INSERT INTO " . USERS_TABLE . "(user_id,
-
username,
-
user_regdate,
-
user_password,
-
user_email,
-
user_viewemail,
-
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 (
-
'$forum_user_id',
-
'".$this->user_info[user_username]."',
-
'".time()."',
-
'$password_md5',
-
'".$this->user_info[user_email]."',
-
'$viewemail',
-
'$attachsig',
-
'$allowsmilies',
-
'$allowhtml',
-
'$allowbbcode',
-
'$allowviewonline',
-
'$notifyreply',
-
'$notifypm',
-
'$popup_pm',
-
'$user_timezone',
-
'".str_replace("\'", "''", $user_dateformat)."',
-
'".str_replace("\'", "''", $user_lang)."',
-
'$user_style',
-
0,
-
1,
-
1,
-
'')");
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Lamp |
last post by:
Is it possible to save session values between pages? I did a little script
to let the users login. I use this script to check username and password the
user introduces in a form in the main page,...
|
by: Tim Daneliuk |
last post by:
OK, I've Googled for this and cannot seem to quite find what I need.
So, I turn to the Gentle Geniuses here for help. Here is what I
need to do from within a script:
Given a username and a...
|
by: hellrazor |
last post by:
Hi there,
We want to be able to encrypt the user ID and password within a URL, so
when we send the URL via email, they'll be able to click said URL, and the
aspx page should be able to decode it...
|
by: Anon |
last post by:
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms
so that users don't have to...
|
by: Mark A. Sam |
last post by:
Hello,
I am learning to use Visual Web Developer 2005 Express Edition. I am using
a Gridview control with a remote SQL Database connection. Whenever I
configure the data source I am asked for...
|
by: Jeff |
last post by:
Hey
(and thank you for reading my post)
In visual web developer 2005 express edition I've created a simple website
project..
At this website I want users who register to be able to upload a...
|
by: Ron |
last post by:
Hi,
I need to turn off my menu control when a user is in the process of changing
there password.
I know this can be done because the Login control automatically prevents the
rendering of the...
|
by: chiefsitebuilder |
last post by:
I have a question about saving an MS Access program to CD and verifyng
that the program works after being saved.
Here is my situation, I have a person who developed an application for
me using...
|
by: JW |
last post by:
Hello. I'm trying to make a SOAP request, and enable compression in
the response (by sending the Accept-Encoding header). To do this, I'm
sending 'compression' =SOAP_COMPRESSION_ACCEPT |...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |