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
  #12  
Old 11-01-2001, 05:54 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Freddie,

Thanks for everything getting me switched over from EZBoard. I can't believe I waited so long to switch to vBulletin. It is everything I wanted and now with a few customizations like DarkReaper's script here, it's as if we were always here and the memory of EZBoard is fading fast.

At first, I thought $80 was a bit much, now I realize it is a steal for what vBulletin does.

Without going crazy, I've already started customizing pages. I did find a bug that I hope a future version will fix, and something hard-coded that bugged me.

The topic list will only display the topic smiley $thread[info] that was selected the first time the post was made. Changing the smiley (or adding one) after the fact won't put it in the topic list.

And that brings me to the 2nd point. I changed the icons and realized that the forumdisplay.php code has 15x15 pixel icons hard-coded.

Off-topic, but how do I put the "users currently viewing the board" panel on the thread list? I tried using the token and I tried copying the code from the token. Neither worked.
Reply With Quote
  #13  
Old 11-27-2001, 07:33 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added the sript to register.php, and it does not work. Is this compatible with 2.2.1? If so, haw can I get it to work?

Please Help!
Reply With Quote
  #14  
Old 11-27-2001, 10:28 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean it doesn't work? Could you please be more specific?
Reply With Quote
  #15  
Old 11-28-2001, 01:54 AM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It just does not link there posts to their profile. I had several users sign up with the same name, and then I could go look through the forums, and find old posts, and they would not be linked. Even after updating the post information. But, after using the ezconvert script, it would work. Please help. I don't want to have to do this manually for my 300+ users!
Reply With Quote
  #16  
Old 12-01-2001, 03:03 AM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can ANYONE please help me install this? If you need my server info, I will PM it to you!
Reply With Quote
  #17  
Old 12-06-2001, 12:55 AM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help! I can't open my board until I get this installed! I would be most appreciative if someone would help me.

Link old ezboard member posts to their new accounts

I modified the register.php file, and tested it, but it did not work.

Is this script compatible with 2.2.1? If not, can it be updated? I really need this hack for my board. I would be willing to pay someone to get this working. If someone is willing to help, I will e-mail them the ftp info as neccesarry.
Reply With Quote
  #18  
Old 12-06-2001, 01:34 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Weird, seems the code in the first post doesn't work. I could've sworn it was differenet.

Anyway, Joshua, in register.php find this:
Code:
  $userid=$DB_site->insert_id();
and right after it add this code:
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'");
This is the exact code we use on this board, so it has to work.
Reply With Quote
  #19  
Old 12-07-2001, 03:14 AM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You a thousand times over!! I can't thank you enough FireFly! How much do I owe ya?

This is an awesome hack!
Reply With Quote
  #20  
Old 12-07-2001, 11:05 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem Joshua.

(you should've e-mailed me earlier, eh? )
Reply With Quote
  #21  
Old 12-07-2001, 02:53 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure should have! I have another question related to this. The ezconvert script has been working for the times that I want to change somone's username. Except for one. I need to change Ginny 2002 to Valerie, and it did not work. Is there a way to go through the tables and chang the username, then I can just run the convert script to add the profile info?
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 01:33 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.04564 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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_code
  • (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_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