[ ...bole... @ 24.11.2006. 21:54 ] @
pozdrav



evo posto sam ja adim i zelim se prebaciti s phpbb2+ na vBulletin ne zelim izgubiti usere i sam sam poceo da radim tablicu user u bazi no naiso sam na velikki problem

npr ako stavim da mi je pass 000
u bazi će da mi napiše 'f898d61da021d2280924064b88e246bf'

i ja onda uzmem taj kod i prebacim ga u bazu od vB foruma i to neradi znaci meni bi trebao neki generator koda da mi iz kod iz baze da pass ili da vidim sve passove od svih usere
[ Bojan Kopanja @ 25.11.2006. 00:40 ] @
Koliko se meni cini trebalo bi da postoji skripta za konverziju phpBB->vBulletin, a ako i ne postoji kao neko resenje moze da ti bude da stavis svim korisnicima kada ih prebacis pass "12345" i posaljes im masovnu PP da svi promene svoj PASS zbog sigurnosnih razloga posto je doslo do upgrade-a pa su i pass-ovi resetovani itd...

U sustini ne moras da stavis pass 12345 da se ne bi provalilo da je tako za sve nego stavis qw23ffds0x posto ce to i tako odmah da promene, a ovako bar izgleda kao da je random generated pass u pitanju .

Aj' pozz i pokusaj da nadjes nesto za tu konverziju ( pokusaj da trazis VB importer, bar sam tako ugrubo uspeo da nadjem na google-u ) pa javi sta si uradio
[ ...bole... @ 25.11.2006. 10:30 ] @
evo ovako naso sam taj importer no ne znam sto da radim s njim ovakav mu je kod

Code:

<pre>
<?
// If your reading this your a smart person.
// It is highly RECOMMENDED you backup your databases. 
// This script will clear your Land Down Under database and import user info from phpNuke
// It also imports smilies and the forums if you used the phpBB port
//
// This was tested on phpNuke 6.9 with the phpBB nuke port
// The database type I use is mySQL. If you have some other type like
// postGres then this script MIGHT not work!!!!
//
// Credits goto Xalon for giving me a script he had for importing the data for phpBB forums to LDU
// Rogue (me) modified this script for phpNuke conversion. 
// I plan on adding all the other features of phpNuke to this like News and such.
//
// Any problems with this script is unsupported but you can post in the LDU forums:
// http://ldu.neocrome.net/forums.php under the topic "Plugins, Modifications, and Add-Ons"
// 

require_once 'PEAR.php';
require_once 'DB.php';

PEAR::setErrorHandling(PEAR_ERROR_DIE);

set_time_limit (216000); // 1h ;)

// Configuration - Please edit for your setup
$dbUserName = "****"; // your phpNuke Database Username
$dbUserPass = "****"; // your phpNuke Database Password
$nuke_db = "***"; // Your phpNuke Database name default is nuke
$NukeExt = "****/ You table extension for phpNuke tables. The default is set.

$dbUserName_ldu = "****"; // The USER Name for connecting to the LDU database
$dbUserPass_ldu = "****"; // The Password for connecting to the LDU database
$lduDatabase_Name = "***"; // What is the name of the LDU database
$default_skin = "pandora"; // Default LDU skin
$default_lang = "uk"; // Default LDU Lang
$ldu_smilies_dir = "system/smilies/"; // LDU smilies directory

$regdate  = time ();
$db_ldu   = "mysql://$dbUserName_ldu:$dbUserPass_ldu@localhost/$lduDatabase_Name"; // DO NOT CHANGE
$db_phpbb = "mysql://$dbUserName:$dbUserPass@localhost/$nuke_db"; //DO NOT CHANGE
$db1 = DB::connect($db_phpbb); // DO NOT CHANGE
$db2 = DB::connect($db_ldu); // DO NOT CHANGE


// WARNING DO NOT EDIT BELOW THIS LINE

if (DB::isError($db1)) 
{
    die ("DB1 : ".$db1->getMessage());
}

if (DB::isError($db2)) 
{
    die ("DB2 : ".$db2->getMessage());
}

echo "[  ok] Databases ok, starting import\n";

#
# users
#
echo "Preparing nukes_user table for export\n";


$db = mysql_connect("localhost", $dbUserName, $dbUserPass);

mysql_select_db($nuke_db,$db);

// Create temp column in phpNuke users table for microtime conversion
mysql_query("ALTER TABLE ".$NukeExt."_users ADD COLUMN tempTime int(11)",$db);
    // Pull date change it to microtime and put back into column named
   $result = mysql_query("SELECT * FROM ".$NukeExt."_users",$db);

    if ($myrow = mysql_fetch_array($result)) {


      do {
        // Convert date to microtime
        // tempRow is needed to keep user id's consistant when running the UPDATE command
        $date=$myrow["user_regdate"];
        $tempRow=$myrow["user_id"];
        $dateArray=explode(" ",str_replace(",","",$date));
        $monthArray=array("1"=>"Jan","2"=>"Feb","3"=>"Mar","4"=>"Apr",
                               "5"=>"May","6"=>"Jun","7"=>"Jul","8"=>"Aug",
                               "9"=>"Sep","10"=>"Oct","11"=>"Nov","12"=>"Dec");
        foreach($monthArray as $key=>$value) {
        if($value==$dateArray[0]) {
        $dateArray[0]=$key;
                }
        }
        $timeStamp=mktime(0,0,0,$dateArray[0],$dateArray[1],$dateArray[2]);
        // show the data
        printf("%s %s %s \n", $myrow["user_id"], $myrow["user_regdate"], $timeStamp);
        // send converted data back
        mysql_query("UPDATE ".$NukeExt."_users SET tempTime = '$timeStamp' WHERE user_id = '$tempRow'");

      } while ($myrow = mysql_fetch_array($result));

    } else {

      // no records to display

      echo "Sorry, no records were found!";

    }


echo "Starting Import of Users \n";
$db2->query("DELETE from ldu_users");

$prep = $db2->prepare
(
    "INSERT INTO ldu_users ( 
    user_id, user_active, user_banned, user_name,
    user_password, user_level, user_country, user_text,
    user_avatar, user_extra1, user_extra2, user_extra3,
    user_extra4, user_extra5, user_occupation, user_location,
    user_birthdate, user_gender, user_irc, user_email,
    user_regdate, user_skin, user_lang
) VALUES 
    (
    ?,?,0,?,
    ?,1,'','',
    '','','','',
    '','',?,?,
    0,'','',?,
    ?, '$default_skin', '$default_lang')"
    
);


/* Change table nuke_users to what you have for users table in phpNuke
*/
$data = $db1->getAll
(
    "SELECT 
    
        user_id, user_active, username,
        user_password,    
        user_occ, user_from, user_email,
        tempTime    
        FROM ".$NukeExt."_users"
);


$db2->executeMultiple($prep, $data );
echo "[  ok] ".count($data)." users imported.\n";

echo "se kr dela \n";
// for later user we get user ids as a record
$users = $db1->getAssoc("SELECT user_id, username FROM ".$NukeExt."_users");
echo "Now for the forum categories \n";
#
# Categories
#


$db2->query("DELETE from ldu_forum_sections");

$sections     = $db1->getAssoc("SELECT cat_id, cat_title FROM ".$NukeExt."_categories");
$data         = $db1->getAll("SELECT forum_id, forum_name, cat_id, forum_desc, forum_topics, forum_posts FROM ".$NukeExt."_forums");

// change category field from id to section name 
for ($i=0; $i< count($data);$i++)
{    
    $category_id = $data[$i][2];
    $data[$i][2] = $sections[$category_id];

}

$prep = $db2->prepare
(
    "INSERT INTO ldu_forum_sections ( fs_id, fs_title, fs_category, fs_desc, fs_icon, fs_topiccount, fs_postcount ) VALUES         
    (?,?,?,?,0,?,?)"
);

$db2->executeMultiple($prep, $data );

echo "[  ok] ".count($data)." forum categories imported\n";


#
# Topics 
#

$db2->query("DELETE from ldu_forum_topics");

$prep = $db2->prepare
(     
    "INSERT INTO ldu_forum_topics ( 
        ft_id, ft_title,ft_sectionid, ft_firstposterid,
        ft_firstpostername, ft_postcount, ft_viewcount, ft_updated, 
        ft_lastposterid, ft_lastpostername ) 
    VALUES (?,?,?,?,?,?,?,?,?,?)"
);

$data = $db1->getAll
(
    "SELECT 
        topic_id, topic_title, forum_id, topic_poster,
        topic_poster, topic_replies, topic_views, topic_time
    FROM ".$NukeExt."_topics"
);

for ($i=0; $i< count($data);$i++)
{    
     $data[$i][4] = $users[$data[$i][4]]; // replace id with username
     $data[$i][8] = -1; // can't find out
     $data[$i][9] = ''; // can't find out     
}

$db2->executeMultiple($prep, $data );

echo "[  ok] ".count($data)." topics imported\n";

#
# Posts
#

$db2->query("DELETE from ldu_forum_posts");

$prep = $db2->prepare
(
    "INSERT INTO ldu_forum_posts 
    ( 
        fp_id, fp_topicid, fp_sectionid, fp_posterid, 
        fp_postername, fp_updated, fp_posterip, fp_text
    ) 
    VALUES (?,?,?,?,?,?,?,?)"
);

$data = $db1->getAll
(
    "SELECT 
        post_id, topic_id,forum_id, poster_id,
        poster_id, post_time, poster_ip    
    FROM ".$NukeExt."_posts"
);

$data_text = $db1->getAssoc
(
    "SELECT 
        post_id, post_text
    FROM ".$NukeExt."_posts_text"
);    

for ($i=0; $i< count($data);$i++)
{    
    $data[$i][4] = $users[$data[$i][4]];
    $data[$i][7] = $data_text[$data[$i][0]];
}


echo "[info] starting posts import, this might take a while ...\n";
$db2->executeMultiple($prep, $data );


echo "[  ok] ".count($data)." posts imported\n";



echo "[done] Don't forget to put your smilies in the smiley directory!\n";
?>
</pre>
[ Bojan Kopanja @ 25.11.2006. 12:39 ] @
Nema nikakvih problema ...

Izmeni ove linije da budu onakve kakve tebi treba, tj. popuni usere i passove koji se traze:

Code:
// Configuration - Please edit for your setup
$dbUserName = "****"; // your phpNuke Database Username
$dbUserPass = "****"; // your phpNuke Database Password
$nuke_db = "***"; // Your phpNuke Database name default is nuke
$NukeExt = "****/ You table extension for phpNuke tables. The default is set.

$dbUserName_ldu = "****"; // The USER Name for connecting to the LDU database
$dbUserPass_ldu = "****"; // The Password for connecting to the LDU database
$lduDatabase_Name = "***"; // What is the name of the LDU database
$default_skin = "pandora"; // Default LDU skin
$default_lang = "uk"; // Default LDU Lang
$ldu_smilies_dir = "system/smilies/"; // LDU smilies directory


i pokreni skriptu.

Nisam nikada radio ovo, ali pretpostavljam da je to sve sto treba da se uradi, pod pretpostavkom da je ovaj importer dobar posto pise u prvom delu podesavanja da je za phpNuke koji do duse ima u sebi integrisan phpBB forum, ali u drugom delu pise LDU, a to nemam pojma sta je .

Pozz!
[ Jezdimir Lončar @ 25.11.2006. 21:55 ] @
Poz!
Pa ovo je nuke konverter a ne phpBB ...
Potraži na vb-ovom sajtu konverter za phpbb...
[ Jezdimir Lončar @ 25.11.2006. 22:01 ] @
A ne radi ti jer ovaj phpbb radi sa md5 enkripcijom a za vB ne znam...
[ ...bole... @ 26.11.2006. 09:58 ] @
evo toga sam se ja i plastio da ovo nije konvertor za phpbb

nasao sam na vB forumu konvertor i treba se regati da se skine i ja sve
to napravim no treba imati jedan poseban status da se downloda taj konvertor

[ Jezdimir Lončar @ 26.11.2006. 11:02 ] @
Da.
Treba da imas licencu (da ne koristis nulled verziju).
Ako koristis onda ti preporucujem da maknes istu jer ce ti ugasiti sajt.
[ ...bole... @ 26.11.2006. 19:30 ] @
znam to da ali kako ce oni doci do mene??

ajde ako neko ima licencu neka to skine plz

evo url
http://www.vbulletin.org/forum/showthread.php?t=37135

[Ovu poruku je menjao ...bole... dana 26.11.2006. u 21:03 GMT+1]
[ Jezdimir Lončar @ 27.11.2006. 08:48 ] @
Čuj brate,
ako ćeš da se "prebaciš" na nulled verziju, onda bolje nemoj ništa dirati.
Možeš da uradiš phpbb=>smf ali nullirane verzije su pune bugova...
[ ...bole... @ 27.11.2006. 09:18 ] @
e a dali je moguce da se s smf prebacim na vB?
[ Jezdimir Lončar @ 27.11.2006. 09:34 ] @
Ok.
Nećeš da odustaneš.
Ti koristiš phpbb+ a ne phpbb. Konvertor za phpbb+ ne postoji.
Na smf možeš putem njihovog konvertora da se prebaciš ali smf=> ne može na vb za džabe.
Ti pitaj nekoga ko koristi vb koju enkripciju on koristi i u istoj ti enkriptuj neki string koji ćeš u vBovoj tabeli staviti kao korisnikov pass.
Username copy/paste.
[ ...bole... @ 27.11.2006. 19:26 ] @
evo super dosli do dalje od pocetka

znaci ja bi trebao ekripciju za pass

i trebam saznati koja se koristi u vB forumu ???

sorry ali kakva mi je korist od toga ja cu imati usere ali necu imati postove??
[ Jezdimir Lončar @ 27.11.2006. 23:32 ] @
Ipak je ovo post za vb-ove forume...
Pa uradi dump postova iz myadmina.
Izmjeni Insert querije tako da odgovaraju onim za insert u vb tabelu...
[ ...bole... @ 28.11.2006. 10:36 ] @
ok onda kad to napravim preostaje mi jos samo da sazna koju enkripciju koristi vb forum no mislim da to nikako necu saznati
[ Jezdimir Lončar @ 28.11.2006. 22:27 ] @
Pa ako si se regovo na vb forumu, samo ih pitaj, ne traže za to licence key ?