PDA

View Full Version : Integration with vBulletin - vBulletin PhpFoX Integration


Ziki
11-26-2008, 10:00 PM
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Modification name
vBulletin PhpFoX Integration

~Modification description
This plugin allows you to integrate your PhpFoX (http://www.phpfox.com.) site with vBulletin!

Original thread: http://forums.phpfox.com/showthread.php?t=22717

~Modification options

Enable No avatar image?
Main Menu Color
Display country in profile?
Display state?
Use separate avatar for forum?
Show age?


~Modification info
File uploads: 12
File edits: 0
Templates: 4
Template edits: 1
Plugins: 12
SQL Queries: 0
Phrases: 13
Settings: 6
Hooks: 0

Install time: 1 minute
Install level: Easy

~Modification installation

Step 1: Modify .htaccess file

This step is for those that installed phpFoX Konsort with the Rewrite mode enabled. With your FTP client or hosts file manager navigate to your phpFoX websites root directory.

Open the file .htaccess. It should look something like this (Note: The example below is not an exact replica of how your .htaccess file will look like, we are mainly focusing on the RewriteCond):

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]

RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteRule ^(.*)$ /index.php?do=/$1 [L]

To get this plug-in properly working you will have to add the following line of code twice in the .htaccess file above each of the RewriteRule inserts:

RewriteCond %{REQUEST_URI} !^/forums/.*

Your .htaccess file would then look like:

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/forums/.*
RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]

RewriteCond %{REQUEST_URI} !^/file/.*
RewriteCond %{REQUEST_URI} !^/install/.*
RewriteCond %{REQUEST_URI} !^/design/.*
RewriteCond %{REQUEST_URI} !^/plugins/.*
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/forums/.*
RewriteRule ^(.*)$ /index.php?do=/$1 [L]

Step 2: Install vBulletin

Our first step will be to install vBulletin. We can not go into great detail on how to install vBulletin, however you can check out their great documentation here.Before you attempt to install vBulletin there are some factors you will need to take note of:

* When you upload their product it must be placed in a folder and the name of the folder must be forums. This folder must be placed in your phpFoX websites root directory. Proper layout would be: http:///www.yoursite.com/forums/
* The vBulletin tables must be placed in the same database as phpFoX.
* phpFoX should be installed with a database table prefix. By default this prefix is phpfox_. If you did not install phpFoX with a table prefix you will have to install vBulletin with a table prefix.
* This plug-in was not developed to work under a sub-domain environment yet,for that you have to wait for v3. (Example: http://forums.yoursite.com/)
* During the install of vBulletin you will be asked to add an Admin User. This user will shortly be deleted by our integration and replaced with your main phpFoX Admin account.

Step 3: Edit config.php file.

Edit the config.php file in the vbulletin folder and change the name from forums to whatever the vBulletin subfolder is called in the PhpFoX directory.

Step 4: File uploads

Upload the whole vbulletin folder to the phpFoX plugins folder.

Step 5: Importing

Notice: Read this step thoroughly before attempting to import any data.

For those that already have phpFoX running and just installed vBulletin you will have to do the step Import phpFoX Users.

For those that already have vBulletin running and just installed phpFoX you will have to do the step Import vBulletin Users.

Import phpFoX Users
Run the import file through your web browser by entering the URL into your browser address bar (if you have followed our example, type in http://www.domain.com/plugins/vbulletin/install/import.php, naturally substituting 'domain.com' for your web address.)

Import vBulletin Users
Run the import file through your web browser by entering the URL into your browser address bar (if you have followed our example, type in http://www.domain.com/plugins/vbulletin/install/vb_import.php, naturally substituting 'domain.com' for your web address.)

Step 6: Integration and edits

Now lets log into your vBulletin Admin control panel. Note that it will not work to log into your site using the phpFoX login forum. You will have to use the vBulletin login form. (Example: http://www.yoursite.com/forums/index.php). Note that you will need to log into vBulletin with your phpFoX Admin account, which is the same account you log into your phpFoX site.

Follow the next steps below:

Update Forums Cache

Go to: Forums & Moderators >> Forum Manager >> Then edit the forum called Main Category. Save that forum without making any changes.

Update Forums Counters

Go to: Maintenance >> Update Counters Then rebuild the following:

Rebuild Thread Information

and

Rebuild Forum Information

Enable Plug-In System

Go to: vBulletin Options >> vBulletin Options >> Plugin/Hook System

Change the setting:

Enable Plugin/Hook System

To Yes

Importing the plugin

Go to: Plugins & Products >> Manage Products >> Add/Import Product

Look for the block Import Product and then for EITHER upload the XML file from your computer browse for the XML file product-konsort.xml which was part of the package you downloaded from phpFoX. Then click on the import button.

Template edit (Optional)

Go to: Styles & Templates >> Style Manager >> Edit Template (on all your styles) >> Open template header

Remove the part of code between the logo comments.


~Modification changelog


2.5.0 - First vB.org Release
2.5.1 -
Remember me fix,could not login if remember wasn't checked
vb_import.php fixed if you didn't prefix vBulletin
Remember me now is integrated as well
Option install steps updated
Spacers are now not overwritten
Overall import files are neater :)
Logging in was remade completely,we god rid of the login.php




~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki
11-27-2008, 01:35 PM
~Reserved~

Magnumutz
11-28-2008, 07:39 PM
Great... but it would be great if we had a demo of a vBulletin + phpFox.

Nоrman
12-06-2008, 01:21 PM
How does this integrate vBulletin? Wich profile system will be used?

Ziki
12-06-2008, 07:23 PM
The one from phpfox

TomJames
12-19-2008, 09:29 AM
Demo at all?

Ziki
12-19-2008, 10:25 AM
<a href="http://mods.phpfox.com/vbulletin/" target="_blank">http://mods.phpfox.com/vbulletin/</a>

TomJames
12-23-2008, 01:47 AM
Thanks!

ArnyVee
12-28-2008, 01:38 PM
This is great! Looks very nicely done and smooth!

Now, if I can just get someone to do an integration of Dolphin (Boonex script) with vBulletin I'll be in business! :D

Ziki
01-18-2009, 09:42 AM
2.5.1 released

Rakanx2
07-13-2009, 05:35 AM
Ziki,

After integration I have a few issues….

1. My custom phpFoX header did not transfer over in the integration?

2. Now when you login to phpFoX….instead of going to your account it try’s to go right to the forum? I have the right settings in phpFoX admin CP, but it still try’s to go right to the forum?

a. It also errors every time you login….if you refresh the page it logs in, but still takes you to the forum. After you login and refresh navigating anywhere on the site if fine.

Please help….

Fox – 1.6.21
vBulliten – 3.7.4

Thanks!

Ziki
07-13-2009, 09:12 PM
Are there any modifications made to any of those?

Rakanx2
07-14-2009, 04:24 AM
I just updated both phpFoX from 1.5 and VB from 3.6 3 days ago.....I have not add any of my mods yet....this was my first one.

I take that back the only other mod is my store (osCommerce) which did not change....it is integrated with phpFoX so everything is on one login.

I can not find anywhere to edit the way the header is in VB....no matter what I do it puts the phpFoX original header at the top. For now I replace the phpFoX logo with my own, but my main header for the site is flash, so I have no links except for phpFoX.

Does any of that help?

The site is www.morethanscrapbooking.com

Thanks,

Paul

Ziki
07-14-2009, 08:44 AM
The header is located inside vB's admincp under the template named konsort_header.You can edit it there :).

Also the login is supposed to go through vB because that's the way phpfox 1.6 is constructed.It used to work through a redirect page but most sessions got lost during that process.

Rakanx2
07-14-2009, 05:02 PM
The header is located inside vB's admincp under the template named konsort_header.You can edit it there :).

Found it! DO you know how I can center it over the forum? I have tried several things and it still sits left? http://www.morethanscrapbooking.com/MyStudio/vbforum/index.php

Also the login is supposed to go through vB because that's the way phpfox 1.6 is constructed.It used to work through a redirect page but most sessions got lost during that process.

OK, but why am I getting an error everytime someone logs in? Like I said before if you refreash the page it logs you in, but it needs to work with out having to refreash. :eek:

Thanks for your help!

Ziki
07-15-2009, 06:49 AM
Hm seems centered to me?

Please send me an admin login via PM and I will look at it.

Davey-UK
07-24-2009, 07:09 PM
Can anyone tell me how to get into my phpfox admin area now i have done the integration?

dgparent
09-16-2009, 06:49 PM
My site is blank now and I can;t get into the admincp to uninstall this ???

Hex_legend
11-21-2009, 05:44 PM
sent you a PM with user login as I have the same issues and this thread seems to be dead.