phpbb_copy_users

Advertise a phpBB hack or request help with an existing one.

Moderator: TerraFrost

Postby 19_Chevelle_69 » Wed Jan 05, 2005 2:21 am

Im not using the ovwerwrite method, umm, new to last or something.

The output looks like the same output from the last time


Code: Select all
Array ( [0] => user_id [1] => user_active [2] => username [3] => user_password [4] => user_session_time [5] => user_session_page [6] => user_lastvisit [7] => user_regdate [8] => user_level [9] => user_posts [10] => user_timezone [11] => user_style [12] => user_lang [13] => user_dateformat [14] => user_new_privmsg [15] => user_unread_privmsg [16] => user_last_privmsg [17] => user_emailtime [18] => user_viewemail [19] => user_attachsig [20] => user_allowhtml [21] => user_allowbbcode [22] => user_allowsmile [23] => user_allowavatar [24] => user_allow_pm [25] => user_allow_viewonline [26] => user_notify [27] => user_notify_pm [28] => user_popup_pm [29] => user_rank [30] => user_avatar [31] => user_avatar_type [32] => user_email [33] => user_icq [34] => user_website [35] => user_from [36] => user_sig [37] => user_sig_bbcode_uid [38] => user_aim [39] => user_yim [40] => user_msnm [41] => user_occ [42] => user_interests [43] => user_car_mark [44] => user_car_model [45] => user_car_year [46] => user_car_engine [47] => user_car_wheel [48] => user_car_trans [49] => user_car_color [50] => user_car_rt [51] => user_car_sixty [52] => user_car_three [53] => user_car_eigth [54] => user_car_eigthm [55] => user_car_thou [56] => user_car_quart [57] => user_car_quartm [58] => user_mod_engine [59] => user_mod_exterior [60] => user_mod_interior [61] => user_mod_rims [62] => user_mod_audio [63] => user_mod_future [64] => user_actkey [65] => user_newpasswd )


I've added ICQ, MSN, YIM, and AIM details in my profile if you'd like to contact me there instead of on the forum......
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 2:23 am

you should have actually removed the other code before adding this one. anyway, if you could do that, and then tell me what it outputs, that'd be great :)

here's what it should look like...

Code: Select all
Array ( [user_session_time] => 0 [user_lastvisit] => 0 [user_regdate] => 1104891764 [user_level] => 0 [user_posts] => 0 [user_new_privmsg] => 0 [user_unread_privmsg] => 0 [user_last_privmsg] => 0 [user_emailtime] => 0 [user_rank] => 0 [user_points] => 0 [user_custitle] => ßoffÞ0ßoffÞ0ßoffÞ0ßoffÞ0ßoffÞ0 [user_specmsg] => [user_effects] => ßnoÞ0ßnoÞ0ßnoÞ0 [user_privs] => ßnoÞ0ßnoÞ0ßnoÞ0 [user_firstpost] => 0 )
---
Array
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 2:26 am

nope, it comes up with...

copying unique chevy_ ........ to .......

---
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 2:30 am

i think we're getting close to the problem! :)

could you remove the previously added code, and find this:

Code: Select all
   include('copy_config.php');


then after it, add the following:
Code: Select all
print_r($userReset);
echo '<br>---<br>'.$userReset;
exit();
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 2:33 am

now all i get in the browser window is


---



Nothing else, no text at all, just the 3 hyphens.
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 2:36 am

can you remove the previous additions, and in copy_config.php, find

?>

and before it, add the following:

Code: Select all
print_r($userReset);
echo '<br>---<br>'.$userReset;
exit();


also, when testing this, don't select any method. just load the normal page.
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 2:40 am

Same output, just the

---



Nothing else.

I simply loaded the page, there were no options on what I want to do...
Last edited by 19_Chevelle_69 on Tue Jul 11, 2006 3:16 am, edited 1 time in total.
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 2:45 am

can you remove the $boards[] = whatever stuff, and post the remaining contents of your copy_config.php file?
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 2:45 am

Code: Select all
 // Path to plugin directory
   $pluginPath = './copy_plugins/';

   // phpbb_user elements to reset.
   // add or delete whatever elements you like.

print_r($userReset);
echo '<br>---<br>'.$userReset;
exit();

  ?>
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 2:52 am

i didn't know you deleted all of $userReset, heh. if you could remove the previously added code, readd the $userReset thing, and then in copy_users.php, find the following:

Code: Select all
      $diffKeys = array_diff($origKeys,array_keys($destUsers[0]));

after it, add this:

Code: Select all
print_r($diffKeys);
echo '<br>---<br>'.$userReset;
exit();

and then tell me what happen when you try to run the "Copy All To Last" method, that'd be great! :)
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 3:03 am

Output has all the usual info at the top, then.....



Code: Select all
copying unique users from...............
Array ( )
---
Array



Let me guess...it was ME that messed it up by removing the other variables from the config file... O_O

I posted the contents of my config file in a earlier post. I figured I didnt want to reset all the users data when I copied them from one forum to another.
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 3:34 am

well... i think i know what the problem is :)

now i just need to figure out how to fix it, heh.

the problem is sorta two fold. the errors you posted about were caused because $userReset had been deleted. the other errors that you mentioned, but were able to fix, are due to the afore mentioned bug that i'm not sure, at present, how to fix.

anyway, once i do find a fix, i'll thank you for your time in the changelog :)

EDIT: i didn't see your edit, heh :)
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 3:35 am

No problem....

So...

Now, I just go in and remove the last debugging entry, and it should work again?
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby 19_Chevelle_69 » Wed Jan 05, 2005 3:46 am

I went ahead and removed the last debugging entry you told me to insert, ran the copy_users, and my errors are gone.

Looks like what I was seeing was just from the entires that I had deleted. D'OH!

I have to thank you for the time and effort you put into this. The errors I was seeing were my fault, kinda dumb of me I guess.

I'm glad I could help work out a bug for you, but sorry to waste your time on my mistake.

Great work on the mod, it's one if the most useful ones I've installed.

Now, if I could just figure out how to transfer the boards and threads from the old forum to the new forum , I'll be a happy camper.

Thanks again!

Don
19_Chevelle_69

http://www.chevylegends.com
Don

19_Chevelle_69
http://www.chevylegends.com
19_Chevelle_69
Traveler
 
Posts: 19
Joined: Mon Jan 03, 2005 12:28 am

Postby TerraFrost » Wed Jan 05, 2005 3:53 am

i'm actually also working on a script to copy board contents, too, heh. it, for the most part, works, but... it apparently takes up lots of cpu resources. so much so, in fact, that when i ran it on this server, this websites host temporarily disabled this account, heh.

and anyway, i should actually thank you for your patience with my debugging, heh :)
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

PreviousNext

Return to phpBB Hacks and MODs

Who is online

Users browsing this forum: No registered users and 1 guest

cron