Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2004, 03:26 PM
Spacey's Avatar
Spacey Spacey is offline
 
Join Date: Feb 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vb3 user integration with phpnuke 6.8

Any one help out, searched these forums and it seems that no-one has made a hack since 2.2.5 version of vb, i ve looked at these closely to see if they could still be used, but they can't,

All Really need is for someone to tell me the code to add all my vbulletin user details to the nuke_users table on the nuke db, and where to add it!!!

Probably the best place would be on the register.php,

I can then just point all the registration/login links for nuke to the vb stuff....anyone help?

I and a few others in the comunity would love to see this hack out!!!!

P.S No-one mention vbportal, There are more addons for phpnuke gaming sites than there are for vbportal gaming sites,

Check us out www.deltathunder.com
Reply With Quote
  #2  
Old 06-22-2004, 05:30 PM
dreamhost's Avatar
dreamhost dreamhost is offline
 
Join Date: Jun 2002
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't be of much help with phpnuke as I chose postnuke instead years ago and have never looked at the phpnuke code, though I know it's quite similar. What I can say is there is actually a whole lot more to bridging the applications than you are talking about in this thread.
Things to consider:
1. registration using either vb or nuke has to populate the other db properly.
2. vb uses md5+salt where nuke does not, so you have some cookie issues to deal with.
3. a way for the users to modify their profiles in one place needs to be done so that the other system will recognize the changes to their profile, i.e. password change
4. the administration of accounts such as the admin changing a users pass for them needs to effect both systems.
5. How to display vb within pn is a huge process to overcome. There are really 2 ways that I see of doing it. One is to just use the vb header/footer and designing them to match the nuke theme. The second is to actually turn vb into a true nuke module without touching the vb or nuke code itself through bridge scripting. This is really the toughest part of the entire process but well worth it. It's just my opinion but simply using vb header/footer instead of using it as a module is just plain tacky. Why cause your members to loose their side navigation just to be in the forums......
Anyhow, I hope this post is food for thought in your journey to bridge the applications. To read more check out this thread:
https://vborg.vbsupport.ru/showthread.php?t=65633
We not only managed to unify the registration and login system of both vbulletin and postnuke, but also turned it into a true module without touching the code other than a few code inserts. Being able to upgrade either pn or vb in the future with ease was a huge priority of ours.
I wish you luck.
Reply With Quote
  #3  
Old 06-25-2004, 08:43 AM
Spacey's Avatar
Spacey Spacey is offline
 
Join Date: Feb 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really im looking to do exactly what you did, i dont want to modify either code, because they are both truly great engines, I just want to unify the user registration process, so that if you signed up in the nuke part you automatically had a login to the forums part,....im thinking that i could keep the profile of the nuke and the vb profile seperate and just link username,password and status (Registered user, admin,mod ect..) together, and if changes were made they would be reflected in each database, (at the moment they are both seperate)...a database linking script is going to be the way forward I feel, unfotunately I dont know where to start!!

Anyone got any ideas?
Reply With Quote
  #4  
Old 06-25-2004, 05:48 PM
webmistress webmistress is offline
 
Join Date: Jun 2004
Location: TN
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been working on trying to merge them. I went from from the portmod phpbb to phpbb 2 and porting to vbulletin to nuke. I'm not a PHP guru.

I have the user inserting into the nuke table but unable to get the username and email to show up. My thoughts are since I already have thousands of users in the nuke_users table the user should be added to vb instead of trying to insert the user to nuke. Think I'm on the right track.

So in Your Account module should be something similar:

PHP Code:
$db->sql_query("INSERT INTO vbuser (userid,username,password,email,usergroupid) VALUES ($userid,'".addslashes(htmlspecialchars($username))."','".addslashes(md5($password))."','".addslashes(htmlspecialchars($email))."','2')"); 
You would also need to do some adjusting to vb and phpnuke account files so if the user updated there information as such:

PHP Code:
$db->sql_query("UPDATE vbuser SET signature='".addslashes($signature)."', email='".addslashes(htmlspecialchars($email))."',usergroupid='2' WHERE userid='$userid'"); 
Let me know if I'm on the right track.
Reply With Quote
  #5  
Old 06-26-2004, 01:07 AM
dreamhost's Avatar
dreamhost dreamhost is offline
 
Join Date: Jun 2002
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you are on the right track. There is obviously a whole lot more to it than that, but yes, you do have to have the ability to populate both db's at one time so nothing gets out of sync.
Monday we start work on the import script from pn/phpbb to vb. It should only take a few days to build. That has been the major thing that is "holding" us back from releasing the bridge code. Well that and cleaning up the code a bit so that adding this to severelly hacked vb sites will go more smoothly.
We did update a clients site yesterday with the new code and it went perfect so that's a great sign. It also taught us that there is a whole lot more to adding this than we would have originally expected. The install process is definatelly not something I would suggest for a person new to coding.
Reply With Quote
  #6  
Old 08-02-2004, 08:08 PM
Spacey's Avatar
Spacey Spacey is offline
 
Join Date: Feb 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That counts me out then!!!

I know some but i am reletively new to 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 02:03 AM.


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.03735 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete