CuteNewsRU PHPBB2 Integration V1.1

Download plugins, language packs and stuff.

CuteNewsRU PHPBB2 Integration V1.1

Postby DarkSlim » Mon Nov 23, 2009 12:50 pm

Hey! so here it is, at last, the CNR PHPBB 2 (forums) integration! :)

What does it do?
- Lets you integrate your phpbb2 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 phpbb2_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 phpbb2_folder/includes/usercp_register.php

Find:
Code: Select all
if ( !$error )
  {
      $new_password = md5($new_password);


Before Add:
Code: Select all
                       //CuteNewsRU Integration Hack
                        $usr_username = $row['username'];
                        $usr_password = $new_password;


Find (X2 - This would be found twice):
Code: Select all
message_die(GENERAL_MESSAGE, $message); 


Before each Add:
Code: Select all
//CuteNewsRU Integration Hack
include($phpbb_root_path.'includes/usr_registration.'.$phpEx);


5. 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
Attachments
CNR_PHPBB2_v1.1.rar
CuteNewsRU PHPBB 2 Integration! V1.1
(1.6 KiB) Downloaded 81 times
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron