Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2002, 09:13 AM
Dontom Dontom is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to use Postnuke & VB with one UserDB: (got some requests to explain - here it is)

Install both to the same DB (PN uses a configurable prefix - so they won't mess up)

Upload a script that will regularly copy the contents of vbs Userdb to pn's userdb

(I use this cronned..)
PHP Code:
<?php
//connect to database
mysql_connect("localhost""yourDB""yourPW");
mysql_select_db("your db");
//empty pn userdb and fill it with fresh userdata
$query=mysql_query("delete from nuke_users");
$query=mysql_query("INSERT INTO nuke_users (uid,uname,email,url,user_sig,pass,user_icq) select userid,username,email,homepage,signature,password,icq from user");
$query=mysql_query("update nuke_users set umode='nested', theme='ExtraLite',timezone_offset='14.0'");

mysql_close();
?>
fill the table called "nuke_group_membership" so pn will recognize you as admin and the rest as regular users (you are in group 2, the rest is group 1)

change all urls in pn which have to do with registration to point to vb's reg-Page/usercp

Include vb's global.php and install Admin_online - people on your newssite will be shown as online reading news...
include Tubedoggs last x posts in your sideblock (works without changes in pn)

Thats it


User needs to log in once into pn and is recognized from then on.

Disadvantage: My cron runs hourly, so in the worst case a new user can't login into the PN-system for about 59 Minutes

Advantage: No code manipulation needed, vb's & pn's Database remains untouched
you are able to Upgrade PN or VB without changing anything (as long as UserDB is not changed...)
You can integrate fantastic Modules, that are available to PN
-> Gallery ... (See it here )

see it in Action:
PN: http://www.mtb-news.de
Forum: http://www.mtb-news.de/forum

:-)
Tom
Reply With Quote
  #2  
Old 01-07-2002, 04:11 PM
TigerLily TigerLily is offline
 
Join Date: Oct 2001
Location: Never Never Land
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for sharing this! I've been looking and looking for a way to connect those two programs (getting ready to go live with PostNuke, have vb going). I could never find a simple answer, and thought I'd be spending weeks on this problem. I really do appreciate the information!

One question: How has your server performed while using both programs? That's a concern I have when going to so much dynamic content, but it will save so much time.

Thanks,
Kim
Reply With Quote
  #3  
Old 01-07-2002, 04:19 PM
Dontom Dontom is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

until now without any problems - my news-page does not get the traffic my forums get, but both of them still perform well. yesterday 94 people were online simultaneously and I did not get db-errors (and the site still feeled fast )
I am on a shared server...
Reply With Quote
  #4  
Old 01-07-2002, 04:28 PM
TigerLily TigerLily is offline
 
Join Date: Oct 2001
Location: Never Never Land
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Tom! And I looked at your site- very nice! I bet it's so much easier to maintain with PostNuke too. I'm really looking forward to using that program.

I was concerned about connecting PN and VB because we average about 100-120 users online for most of the day and into the night- even on weekends. Lately we're spiking up towards 200 at peak times. I made some tweaks to the database, and the server loads look good, just didn't want to crash the site or put a huge strain on the server if connecting the two programs caused problems.

I really enjoy PostNuke and Vbulletin, it's so great to find a way to use both of these excellent programs without having to hack everything to bits! I will let you know how it goes!

Thanks,
Kim
Reply With Quote
  #5  
Old 01-07-2002, 09:58 PM
abdullah abdullah is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx alot for the quick response and for this great work that made lots of jobs easier.
but i have some simple questions.
do we have to put both tables of pn and vb on the same db because we have different ones.
the other question though i dont think it has any relation but does this affect the permission system of PN.

thanks again Tom

Abdullah
Reply With Quote
  #6  
Old 01-07-2002, 10:02 PM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there's also vbPortal which is a port of post nuke made specifically for vb. It has all the same features and look as far as I can tell and was released here by wajones.
Reply With Quote
  #7  
Old 01-08-2002, 03:12 AM
Dontom Dontom is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by abdullah
thanx alot for the quick response and for this great work that made lots of jobs easier.
but i have some simple questions.
do we have to put both tables of pn and vb on the same db because we have different ones.
the other question though i dont think it has any relation but does this affect the permission system of PN.

thanks again Tom

Abdullah
Hi Abdullah,
no, you can put this on different db's - just change the cronned "insert into" to reflect aour databases...
you can even use different usergroups. on my pn there is admin, user and faq-maintainer - as long as users remain at the same userid everything will work... - you need to fill the nuke_group_membership table to reflect who is in which group
Tom

good luck!
Tom
Reply With Quote
  #8  
Old 01-10-2002, 09:30 PM
owc owc is offline
 
Join Date: Dec 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you pls Explain more for using PHP NUKE with Vb

Thnaks
Reply With Quote
  #9  
Old 01-11-2002, 12:10 AM
abdullah abdullah is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx again Tom

i will start backing up my database and do the integration.
If something went wrong i will let u know.

thanks.
Abdullah
Reply With Quote
  #10  
Old 01-11-2002, 11:06 AM
Pilot Pilot is offline
 
Join Date: Oct 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VBPortal is PHPNuke not PostNuke based.

www.phpportals.com
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 04:37 PM.


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.08966 seconds
  • Memory Usage 2,265KB
  • 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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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