a wonderful integration for CuteNewsRU with the new PHPBB3!!
What does it do?
- Lets you integrate your phpbb3 (forum) registration with cutenewsru, whenever a user
registers your phpbb forums he is -automatically- being registered over cutenewsru!
This is why you should also disable registration through cutenewsru alone (plus it
will stop spammers and bots registering).
- Registers the same username, nickname, password and email.
- If an error has occured it will show a matching error message, you can edit it as well.
- When the phpbb profile is updated the profile in cutenewsru is also updated
including email and passowrd!
- You should also not allow users in the forums or cutenewsru change their
nicknames alone (as if they change them only in one place there might be
a problem untill you change it in the other too, have not been tested yet).
Installation
1. Download the attached .rar file
2. Put the usr_registration.php file in your phpbb3_folder/includes/
3. Edit usr_registration.php and change the path to cutenewsru to the correct one
if it is not set right you will get an error.
You can also make the users entered to CNR as writers or editors (not recommended)
Just change it in the first lines (as it says in the file) and at the end there's another place.
Also if you want the script to check if the user is already existed in CNR and display
a message, uncomment the line (you will see the explenation in the file).
4. Open phpbb3_folder/includes/ucp/ucp_register.php
Find:
- Code: Select all
'user_ip' => $user->ip,
'user_regdate' => time(),
'user_inactive_reason' => $user_inactive_reason,
'user_inactive_time' => $user_inactive_time,
);
After Add:
- Code: Select all
//DarkSlim's CuteNewsRU Integration
$usr_username = $data['username'];
$usr_password = $data['new_password'];
$username = $data['username'];
$email = $data['email'];
Then Find:
- Code: Select all
$message = $user->lang['ACCOUNT_ADDED'];
$email_template = 'user_welcome';
}
After Add:
- Code: Select all
//DarkSlim's CuteNewsRU Integration
include($phpbb_root_path.'includes/usr_registration.'.$phpEx);
5. Close/Save the file, and Open phpbb3_folder/includes/ucp/ucp_profile.php
Find:
- Code: Select all
add_log('user', $user->data['user_id'], 'LOG_USER_UPDATE_EMAIL', $data['username'],
$user->data['user_email'], $data['email']);
}
After Add:
- Code: Select all
//DarkSlim's CuteNewsRU Integration
$usr_username = $data['username'];
$usr_password = $data['new_password'];
$email = $data['email'];
$username = $data['username'];
include($phpbb_root_path.'includes/usr_registration.'.$phpEx);
6. Save all, upload files and test it.
That's it! hope it help, if I will have any updates the files will
be updated and this thread, I would love to hear if it all works
for you, what do you think and ideas to improve if you have.
DarkSlim
