Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2015, 06:03 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VB5 to Vb4, because I was bored today

...and for the sake of practicing my SQL skills. While I was supposed to be doing bodywork on my Blazer today, the rain I woke up to kind of hindered the bodywork activities. I started looking at the VB5 DB structure and doing some comparison to VB4. The VB5 DB is intermingled compared to the simplicity of the VB4 layout. After a few hours of studying the databases, I started building SQL queries. The result was better than expected. My VB4 forum was functional and running in just .....12 hours. I didn't bother with transferring PM's, blogs or social groups since this was just for fun, but my hat tips to the guys who do it for money. This conversion was done at the command line in MYSQL since I don't write PHP code. I can only imagine how much work it would take to build a script that would do it all without data loss. I'm sure they are earning every penny.

Here's a screen shot...

Reply With Quote
2 благодарности(ей) от:
Max Taxable, TheLastSuperman
  #2  
Old 03-20-2015, 04:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, good job! The database structure is so different between vB4 and vB5. I still get confused at times on where stuff is stored in vB5.
Reply With Quote
  #3  
Old 03-21-2015, 05:27 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne. They are different but not so much that would make it impossible. The hardest part was the permissions and figuring out the filedata / attachments. It's nothing more than data manipulation and figuring out what goes where to make it all work. VB4 admincp helped connect the dots by running the update tools. The blogs, articles, and social-groups look to be more of a challenge. Maybe in due time. I'm using this as an exercise to develop and hone SQL skills. Maybe I'll use this as an opportunity to learn more about PHP too. I can read and understand it, just can't seem to get a grasp on writing it.
Reply With Quote
Благодарность от:
HM666
  #4  
Old 03-22-2015, 02:14 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
Maybe I'll use this as an opportunity to learn more about PHP too. I can read and understand it, just can't seem to get a grasp on writing it.
Same here I read the hell out of it and know what the hell is going on. But sit down and write the code by hand, cannot do that yet. I can do it with HTML & CSS no prob.
Reply With Quote
  #5  
Old 03-22-2015, 03:52 AM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
Same here I read the hell out of it and know what the hell is going on. But sit down and write the code by hand, cannot do that yet. I can do it with HTML & CSS no prob.
i am the same way. I can write HTML, JavaScript and python and i can read php, but i can not just write it.
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 03:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04332 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (3)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete