Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by DarkReaper DarkReaper is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-26-2001 Last Update: Never Installs: 4
 
No support by the author.

Thanks to Stallion and FireFly for their input on this

Part I:

In register.php, Find this:

PHP Code:
$userid=$DB_site->insert_id(); 
AFTER it, add this:

PHP Code:
  // get hold of his posts and update threads
  
$DB_site->query("UPDATE post SET userid='$userid' WHERE username='".addslashes(htmlspecialchars($username))."' AND visible<>0");
  
$DB_site->query("UPDATE thread SET postuserid='$userid' WHERE postusername='".addslashes(htmlspecialchars($username))."' AND visible<>0");
  
$totalposts=$DB_site->query_first("SELECT COUNT(postid) AS posts FROM post WHERE userid='$userid'");
  
$DB_site->query("UPDATE user SET posts='$totalposts[posts]' WHERE userid='$userid'"); 
From now on, when a user registers with the same username they posted with on ezboard, their old posts will be linked to their new member account.

If people have already registered, or if they want a new nickname, you can use the attached script I made. Just edit $newusername and $oldusername and upload to your /admin directory, then run it(be sure to rename it to .php instead of .php.text ).

Yea, I know it doesn't have fancy menus or anything, but I didn't think it was worth the time and effort to do that...so sue me, or do it better, I'd appreciate the latter more

Updated - 10/27/01: Added FireFly's menu code. Thanks

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-07-2001, 03:00 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

E-mail me with phpMyAdmin access and I'll fix it for you.
Reply With Quote
  #23  
Old 12-10-2001, 06:05 AM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool (altho I'm just using the script Firefly posted, linked from my Admin CP) -- I have a couple of hosted forums that were ezboard imports, and my users are chuffed to be able to get their postcounts back
Reply With Quote
  #24  
Old 12-10-2001, 07:10 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Firefly...and sorry guys, but I don't have much time for my site itself anymore, let alone yours
Reply With Quote
  #25  
Old 01-31-2002, 02:20 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will be requesting an import from ezboard very soon.

I plan to use the code you provided in register.php.
I have a question: I found the line in the file but to I insert this hack directly after the semicolon or after the little 0s that appear after every semicolon?

Can you explain in a little more detail what you mean by linking? Does this mean once the import is complete, any user who registers under the same name as one that has an imported post will be given that post count?

What about the second file that was provided in this thread? Something about just typing in two user names? I made this file as well but can someone tell me what it does in english?

Thanks guys
Reply With Quote
  #26  
Old 01-31-2002, 07:39 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Linking means associating all the posts under that username with their account. You'll notice that if its not linked in, it'll just show a name, and mark them as guest. This makes it so it actually counts as a post made by them.

The second file is for linking in users who have already registered, or who registered with a different name, into their old posts.
Reply With Quote
  #27  
Old 03-25-2002, 01:22 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello. Recently had Jellsoft perform the "ezboard to vBulletin" import, and that came out great (yep, another vB customer running from the evils of inferior products - don't even get me started on my experiences with UBB6). I'm interested in getting this hack installed to so users are tied to posts (I've got a very small group of users who posts I transferred... about 10 users total). I've been trying to follow this thread as it was recommended to me on the vB forums, but with the revisions and modifications discussed, I'm a little lost.

I was wondering if someone could install this hack for me correctly (DarkReaper, FireFly?). I'd be more than happy to provide access to the server, etc. If not, I suppose I could try modifying this somehow... albeit, I'm a newbie, and really don't want to mess this thing up

One other question I had regarding this hack. If I understand it correctly, it needs to be installed before any users register with the same usernames, in order for the posts to be tied to the user. Am I correct in this assumption?

Regarding this, when I installed vBulletin, I created a username for myself that is the admin name that I'd like to use throughout the board (and had previously used on my ezboard), however, I'm assuming that my old posts cannot be tied to this username (even though they are the same names) because I needed to register after installing this hack (Follow that?). Is there any way to retroactively tie my posts to my username even though I'm already a registered user?

Please feel free to PM or e-mail me for clarification if I'm just blowing air here Thanks for reading, and have a great day.

- Steve
Reply With Quote
  #28  
Old 06-21-2002, 12:25 AM
Greystang302's Avatar
Greystang302 Greystang302 is offline
 
Join Date: May 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I imported from UBB 6.2 to vB 2.2.6, and for some reason the import didn't merge my admin account. I had two identical accounts! The one imported from UBB remained dormant. Deleted the old admin account, which marked all of those posts as 'Guest', then uploaded Firefly's script, ran it, and it worked like a champ!

Thanks!
Reply With Quote
  #29  
Old 08-09-2002, 02:21 PM
TheEDIGuy TheEDIGuy is offline
 
Join Date: Jul 2002
Location: Buffalo, NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just wanted to say "Thanks" for a great and highly useful hack. We moved a very large BB from ezBoard to vBulletin, and our users are extremely happy to have their old posts re-linked with their new names.

John
Reply With Quote
  #30  
Old 09-29-2002, 10:45 PM
Tailfeathers's Avatar
Tailfeathers Tailfeathers is offline
 
Join Date: Sep 2002
Location: Utah, USA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question about this hack:
When it links new usernames to old posts by those usernames, does it also update post count and registration date (from first post), or not?

Thanks for this wonderful hack! When I convert, I will definitely be using it.
Reply With Quote
  #31  
Old 02-17-2003, 08:58 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANK YOU THANK YOU THANK YOU!!!!!!! If I would have known this hack existed I would have been 100% hyped for my purchase of vB before buying it. I was still pretty excited about it, but now THIS completes every wish I had for it. THANK YOU!

*Clicks Install*

Works like a charm!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08893 seconds
  • Memory Usage 2,315KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete