1. DLE v9.x + IPB v3.x.x + Last Post

DLE v9.x + IPB v3.x.x + Last Post

  |   19
DLE v9.x + IPB v3.x.x + Last Post


A bridge for DLE 9.X and IP.Board 3.X - Tested on DLE 9.4 and IP.Board 3.2.2.

Open:

dle/engine/modules/register.php

and find there:

require_once ENGINE_DIR . '/classes/parse.class.php';


and add below:

$ipb_dle_lan[0] = "This name is already used in our board.";    $db_ipb_user = "username";    $db_ipb_password = "password";    $db_ipb_namedb = "db name";    $db_ipb_local = "localhost";    $db_ipb_error = 1; // 1 - show error if they are problems with the db connection of the board, 0 - no    $db_prefix_ipb = "db_prefix_if_no_prefix_let_it_clean";$ipb = new db;$ipb->connect($db_ipb_user, $db_ipb_password, $db_ipb_namedb, $db_ipb_local, $db_ipb_error);


now find:

global $lang, $db, $banned_info, $relates_word;


and replace with:

global $lang, $db, $banned_info, $relates_word, $ipb, $ipb_dle_lan, $db_prefix_ipb;


find:

$row = $db->super_query( "SELECT COUNT(*) as count FROM " . USERPREFIX . "_users WHERE email = '$email' OR LOWER(name) REGEXP '[[:<:]]{$search_name}[[:>:]]' OR name = '$name'" );


add below:

$ipb_test_name = $ipb->super_query ("SELECT COUNT(*) as count FROM {$db_prefix_ipb}members where name = '".strtolower($name)."'");        if ($ipb_test_name ['count'] > 0) $stop .= $ipb_dle_lan[0];


find:

$db->query( "INSERT INTO " . USERPREFIX . "_users (name, password, email, reg_date, lastdate, user_group, info, signature, favorites, xfields, logged_ip) VALUES ('$name', '$regpassword', '$email', '$add_time', '$add_time', '" . $config['reg_group'] . "', '', '', '', '', '" . $_IP . "')" );


add below:

  $ipb_dle = new ipb_dle;            $salt = $ipb_dle->generate_password_salt(5);            $salt = addslashes($salt);            $ph = $ipb_dle->generate_compiled_passhash($salt, md5($_POST['password1']) );            $insert_ipb = $ipb->insert_id(); //ид вставки            $member_key = $ipb_dle->generate_auto_log_in_key();            $key_expire = $member_key * 60 * 60 * 24;            $ipb->query("INSERT INTO `{$db_prefix_ipb}members` (            member_id,            name,            members_l_username,            members_display_name,            members_l_display_name,            members_seo_name,            member_login_key,            member_login_key_expire,            email,            member_group_id,            joined,            ip_address,            time_offset,            allow_admin_mails,            language,            msg_show_notification,            members_auto_dst,            members_pass_hash,            members_pass_salt            )            VALUES (            0,            '$name',            '".strtolower($name)."',            '$name',            '".strtolower($name)."',            '".strtolower($name)."',            '".$ipb_dle->generate_auto_log_in_key()."',            '$key_expire',            '$email',            '3',            '".time()."',            '$_IP',            '3',            '1',            '1',            '1',            '0',            '$ph',            '$salt'            )");            $ipb_st = $ipb->super_query("select * from {$db_prefix_ipb}cache_store where cs_key = 'stats'");            $st_arr  = unserialize($ipb_st['cs_value']);            $st_arr['mem_count']++;            $st_arr['last_mem_name'] = $name;            $st_arr['last_mem_id'] = $insert_ipb;            $st_arr2 = serialize($st_arr);            $ipb->query("UPDATE {$db_prefix_ipb}cache_store set cs_value = '$st_arr2' where cs_key = 'stats'");


find:

?>


add above:

class ipb_dle{    function generate_password_salt($len=5)    {        $salt = '';        for ( $i = 0; $i < $len; $i++ )        {            $num   = rand(33, 126);            if ( $num == '92' )            {                $num = 93;            }            $salt .= chr( $num );        }        return $salt;    }    function generate_compiled_passhash($salt, $md5_once_password)    {        return md5( md5( $salt ) . $md5_once_password );    }        function generate_auto_log_in_key($len=60)    {        $pass = $this->generate_password_salt( $len );        return md5($pass);    }}


Save and upload.

Now open:

dle/engine/ajax/registration.php

find:

$db->query ("SELECT name FROM " . USERPREFIX . "_users WHERE LOWER(name) REGEXP '[[:<:]]{$search_name}[[:>:]]' OR name = '$name'");        if ($db->num_rows() > 0)        {            $stop .= $lang['reg_err_20'];        }


add below:

$ipb_dle_lan[0] = "This name is already used in our board.";        $db_ipb_user = "username";        $db_ipb_password = "password";        $db_ipb_namedb = "db name";        $db_ipb_local = "localhost";        $db_ipb_error = 1; // 1 - show error if they are problems with the db connection of the board, 0 - no        $db_prefix_ipb = "db_prefix_if_no_prefix_let_it_clean";        $ipb = new db;        $ipb->connect($db_ipb_user, $db_ipb_password, $db_ipb_namedb, $db_ipb_local, $db_ipb_error);        $ipb_test_name = $ipb->super_query ("SELECT COUNT(*) as count FROM {$db_prefix_ipb}members where name = '".strtolower($name)."'");        if ($ipb_test_name ['count'] > 0) $stop .= $ipb_dle_lan[0];


Save and upload.

This hack has been tested, the single registration works only in one way. By registering on the DLE site, you will be automaticaly registered on the IP.Board forum and use the same login and password to connect to the board (and admin panel of course).

***** Added "Last 10 Topics" *****


DLE v9.x + IPB v3.x.x + Last Post


* Follow the instructions in the archive ...

Password : www.dlestarter.com

Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+30

Comments 19

Nero9
Nero9
Members
Commented By Nero9 on March 17, 2012 (5:26 am)
thank you very much.

Please share mybb or phpbb3 aswell if possible coz they are free
N/A 6Forum topics : 10Forum replies : 45Forum likes : 0
Kathryn
Kathryn
V.I.P.
Commented By Kathryn on March 17, 2012 (12:24 pm)
I was wondering if you substituted the ipb info with mybb if it would work?
15 47Forum topics : 109Forum replies : 481Forum likes : 6
tealk
tealk
Moderators
Commented By tealk on March 17, 2012 (1:45 pm)
I maybe found a myBB integration but give me some days .. i work all this week-end dude ...
28 56Forum topics : 9Forum replies : 329Forum likes : 36

SGcenter Streaming FR
rumy1200
rumy1200
Members
Commented By rumy1200 on March 18, 2012 (3:09 am)
Can You Tell Me How can bridge dle with bullet energy
N/A 18Forum topics : 14Forum replies : 37Forum likes : 0
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on March 18, 2012 (3:45 am)
Bullet Energy is built for DLE, you don't need bridge, as soon as you install Bullet Energy it will be merged and integrated into DLE...

The bridge preferred to 2 scripts which are totally separate but want to connect or integrate wot work together...usually called "Integration"

Bullet Energy, DLE Forum and Logic Board are for DLE and there is no bridge need...they will work with DLE right the way after you installed.
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
BLiTZ
BLiTZ
V.I.P.
Commented By BLiTZ on March 18, 2012 (7:27 am)
I'll test it with DLE 9.5 and IPBoard 3.2.3
N/A 16Forum topics : 5Forum replies : 17Forum likes : 0
Nero9
Nero9
Members
Commented By Nero9 on March 18, 2012 (10:15 am)
tealk,
thanks buddy will wait
N/A 6Forum topics : 10Forum replies : 45Forum likes : 0
tealk
tealk
Moderators
Commented By tealk on March 20, 2012 (3:40 am)
I Added "Last 10 Topics" hack .... Finally for the myBB integration , sorry but it's a paid module so i can't do it ... Sorry dude. I make this tutorial cause i use IPB and dunno how to do with other forum ... Again sorry.
28 56Forum topics : 9Forum replies : 329Forum likes : 36

SGcenter Streaming FR
Nero9
Nero9
Members
Commented By Nero9 on March 20, 2012 (4:18 am)
if you think mybb will work perfectly even if it's paid module please PM the cost details . Thank you
N/A 6Forum topics : 10Forum replies : 45Forum likes : 0
tealk
tealk
Moderators
Commented By tealk on March 20, 2012 (4:27 am)
It's not my paid work , it's what i said ^^ ... but yeah i give you the link ...
28 56Forum topics : 9Forum replies : 329Forum likes : 36

SGcenter Streaming FR
darktopo
darktopo
Members
Commented By darktopo on March 20, 2012 (1:17 pm)
Thanks but could anybody share to do this with mybb or phpboard thanks :)
N/A 8Forum topics : 0Forum replies : 0Forum likes : 0
sevraj
sevraj
Members
Commented By sevraj on May 22, 2012 (1:27 pm)
I receive this error Fatal error: Call to a member function connect() on a non-object in /home2/****/public_html/engine/modules/lasttopicipb.php on line 6 ! What can i do ?
N/A 2Forum topics : 3Forum replies : 8Forum likes : 0
sevraj
sevraj
Members
Commented By sevraj on May 29, 2012 (2:06 pm)
This tutorial is not working , i trie with datalife engine 9.6 with IPB 3.2.3 and is not working ! Anobody have full tutorial guide to install this mode ?
N/A 2Forum topics : 3Forum replies : 8Forum likes : 0
spamhater
spamhater
DLE TEAM
Commented By spamhater on May 29, 2012 (9:30 pm)
guys...can someone please supply me IPB board so I can check the issue...I have no idea what you people getting into..need help? provide script I will test it.
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
BlaZe
BlaZe
Members
Commented By BlaZe on July 20, 2012 (9:02 am)
Anyone tested and working on dle 9.6 and last phpbb board?
N/A 13Forum topics : 40Forum replies : 83Forum likes : 2
noobos
noobos
DLE TEAM
Commented By noobos on July 20, 2012 (4:39 pm)
none of the team has ipb, so no one on the team tested it, if anyone want support on this from the team send them script, otherwise keep asking questions, they can't help you.
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
TMPretox
TMPretox
Members
Commented By TMPretox on February 22, 2013 (10:21 am)
works 9.8+3.4.2 ?
N/A 4Forum topics : 4Forum replies : 6Forum likes : 0
EWR1337
EWR1337
Members
Commented By EWR1337 on April 3, 2013 (4:32 am)
dle 9.8+3.3.1 Work! Thanks smile
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
Sandissz
Sandissz
Members
Commented By Sandissz on October 14, 2015 (12:26 pm)
Is there way to integrate ipb 3.4.8 and DLE 10.04 ???
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.