![]() |
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:
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 |
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:) |
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... |
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:) |
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 |
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.
|
Quote:
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 |
Can you pls Explain more for using PHP NUKE with Vb
Thnaks |
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 |
|
can some plz explain to me how to make cron work with the script? i am new to cron
|
do a search for cron or cronjob @this forum - you will find what you need
|
i found an easier way then using cron m8. On the vbulletin register file, put your code at the bottom of the start activate section. I tried it on .702 version of podtnuke, but it gave me a error on security.php, so im trying it on .64, ill tell you how it works, cus if it does then there is no need for cron, cus it put the user in the db automatically
|
also wouldnt this reflect on the ability to have moderators on postnuke? I mean wouldn't dumping the db everytime a user registers make it hard to have different ppl as moderators and admins?
and also how do I fill in the nuke_group_membership to make me a admin? there were only 2 rows and colums and they were both full. I dont mean to sound dumb, but this is an awsome hack, and i would like to get it right |
it looks to me that this hack will also work for php-nuke.
plz reply if you want to know how to make this hack work automatically without the need for cron, it is very easy. Only took me like 10 minutes to figure out where to put the code. |
the cron thing has one advantage: if someone changes his pw on vb it is chnaged in pn too ;)
eac user has to be assigned to a usergroup - you can do this by setting all users till userid 10000 to user and set aourself to admin - as long as you have < 10000 Users everathing will work (I use Moderators on pn, too) |
Wow you have a killer site there:D
|
Quote:
;) |
I saw your site its very wel integrated with vB.
can you please me with mine? I did a clean install of postnuke yesterday only for this one:) I have installed it on same db as my vbulletinboard. thanx dm |
follow the instructions in my first post - actually its really easy ;)
|
hehe easy?( u r talking to a newbie:D)
ok I did a cron and cronjob search on this forum and didnt found what I want. can u please explain: PHP Code:
Im very sorry Tom I know Im asking to many questions but u see Im a newbie:( and php is not me. thanx in advance dm |
Waka...I'm interested in a cron free solution :) Can't wait to take a go at this one!
|
fill the nuke_group_membership with what exactly?
|
setup postnuke as standalone - you will notice, that you are as admin in another group (dont know from memory - either 1 or 2) as the rest (normal user)
I filled this table with numbers according to this (userids from 0-10000 e.g and the correct setting (1,2, whatever). (did it in Excel;) ,exportet as csv and imported to pn - thats it! |
Awesome thanks...
Here's what put in, and it works just fine. Anyone know an easy way to input a large range (200 thru 10000)? INSERT INTO nuke_group_membership VALUES (1, X); X being the userid. |
Quote:
|
That's exactly what I ended up doing :) Thanks!
|
freshfroot=roscoluxxx @WORK ;)
|
Quote:
For one where are all the links I need to change if possible? where should I include vb's global.php? and what is Admin_online? Thanks alot for a nice work which i've been looking around for... Hope you could help me with my questions.. |
look at your nuke - all links that lead to a user.php should point to your forums member.php?s=&action=editprofile - nukes registration link should point to vbs registration file...
Either change the links in Nuke or create the corresponding files redirecting to vb... (meta tag) Admin online is a hack (can be found here @vb.org), to add other location to vb's who is online display..... - so people who are just browsing the news-area are displayed as "Reading News" I included vbs global.php in the second line of pn's modules.php hope this helps.... with postnuke combined with vb it is easy to install gallery.sourceforge.net, too. look at this: http://www.mtb-news.de/modules.php?o...ude=albums.php |
Quote:
I apresiate all of your help your doing me a huge favore here :) |
How do i add a block for the last x posts? I tryed everything but I can't seem to get it working?
|
ok I installed the Admin_online hack but I can't get it to work with PN pages? Any help is apresiated.
I know I've bothered you a lot but your help is apresiated... |
ok I am having a problem here I insert the code to update the nuke_users and it deletes all information but does not fill the table back up with info from user. I did a copy and paste and changed the password info. I must be missing something. Please help
|
I don't understand this: if the Information gets deleted, there must be a connection to the db. Did you install vb & pn to different db's? Are you sure there are users in your vb-usertable?
Tom |
Dontom could you please help?? I can't get the last x posts to work on the PN block?? Could you tell me how u did it?
|
step1)
install Tubedoggs Last xx posts hack step2) Try to see if it works if it works proceed to 3 - otherwise back to 1 :) 3) create a new sideblock in PN - Name: Active posts Type: php content: include('last10.php'); (check if path is correct - script will tell you if not....) now this worked for me... |
Thanks... aperantly i was doing something wrong with the include command?? :rolleyes:
Well everything is almost perfect now :) any help with this? Quote:
|
would this still work with vb3? anyone know?
|
where would I find the files that have to do with PN registration so I can chang them to vb registration?
|
All times are GMT. The time now is 03:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|