vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - vBulletin PhpFoX Integration (https://vborg.vbsupport.ru/showthread.php?t=197384)

Ziki 11-26-2008 10:00 PM

vBulletin PhpFoX Integration
 
1 Attachment(s)
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 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):

Code:

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:

Code:

RewriteCond %{REQUEST_URI} !^/forums/.*
Your .htaccess file would then look like:

Code:

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/vbulle...all/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/vbulle.../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 -
    1. Remember me fix,could not login if remember wasn't checked
    2. vb_import.php fixed if you didn't prefix vBulletin
    3. Remember me now is integrated as well
    4. Option install steps updated
    5. Spacers are now not overwritten
    6. Overall import files are neater :)
    7. 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:32 PM

~Reserved~

SwollenCranium 11-27-2008 02:09 PM

Install time: 1 minute
Install level: Easy

*******

Reading your instructions above I will have to disagree with your install level of "easy" and install time of 1 minute.

Regardless, I will give this a try.

**EDIT**

Never mind .. @ $300 a 'try' is out of the question.

EDIT AGAIN ***

Upon further investigation $300 does not seem like such an obscene amount for this software. I just wish their list of clients and sites that are running this was more robust.

* Edit part 3 **

Yeah one would need a dedicated server to use ALL the modules that PHPfox offers ( especially the video module). I think the $300 start up costs plus the monthly server fees make this a no go for anyone without the financial means to offset the costs.

lazydesis 11-28-2008 02:04 PM

can this be used for people wanting to use phpfox? i mean if i am running a vbulletin site, can i install phpfox and integrate that into the forums?

my forums is in root directory http://myforums.com and i want phpfox to be like http://myforums.com/phpfox

great mod by the way :) thanks

Ziki 11-28-2008 07:45 PM

Yes it can but vbulletin has to be a sub-directory of phpfox :( it would have to be moved.

socom0810 01-02-2009 02:08 PM

i already have Vb in ste.com/forums/ and have about 20,000 members and gobs of posts so to reinstall VB is out of the question! can i not install phpfox on to vb not vb onto phpfox?

Ziki 01-02-2009 07:31 PM

Yes,phpfox has to be ABOVE vbulletin so that should be fine!

ABDALWAHID 01-03-2009 05:09 AM

thanks Ziki
i try

Anyoldname 01-14-2009 07:26 PM

Hi, I just finished installing phpfox & VB. I found one small problem. The "Welcome our newest user" at the bottom of the forum still says me, even though other new people have registered. Showing only 1 registered user. Is there a setting I can change or something?

Thanks :)

EDIT: Just to add, people can logon & post without problems. Everything else seems to be ok.

Ziki 01-14-2009 07:49 PM

Make sure you have made all edits in the last step.

Anyoldname 01-14-2009 08:04 PM

Quote:

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
I definitely did these. Will it hurt if I do them again now?

Ziki 01-15-2009 03:35 AM

I guess no.

Anyoldname 01-15-2009 06:55 AM

Thanks for the reply, I tried them all again, but nothing has changed, still only one user.. Me.
Also, I notice that if I view last post right from the forum index, the thread will still be marked as unread unless I access it by going to the forum, then clicking on the thread title.

Edit: it just updated itself after somebody logged in. Seems to be ok now :)

Anyoldname 01-15-2009 08:41 AM

Sorry, ignore the edit above, I spoke too soon.
I have to do those last installation steps again every time somebody new registers otherwise the forum stats won't pick them up, and they will still only be picked up after they next login.
The issues in post #9 remain with every new user & every new post until I rebuild the forum counters & thread informaion.

hollosch 01-15-2009 10:19 AM

phpfox2 is in alpha - will this add-on be compatible to this new version, when it's stable ?

Ziki 01-15-2009 11:48 AM

No this is only compatible with 1.6.A version for v2 will be made later.

@Anyoldname

Then enable the plugin on forumhome_complete.It should be listed in more info in Readme,

Anyoldname 01-15-2009 01:11 PM

Brilliant, thanks Ziki! The last registered user now shows. However new posts remain marked unread as new unless you access them by first going to the forum, then clicking the thread title. Looks like a cookies problem, but I can't figure out what it could be.

Edit: Although the latest user is showing correctly, the counter still shows only 4 registered members, when there are now 7.

Ziki 01-16-2009 10:24 AM

Well you can replace the entire content of that plugins with this (from the 2.0.3 version) but it is deprecated code but should fix the problem:

Code:

$totalQuery = mysql_query("SELECT COUNT(*) AS count FROM `". App::getT('user') ."`");
$totalFetch = mysql_fetch_array($totalQuery);
$numbermembers = $totalFetch['count'];

$userQuery = mysql_query("SELECT `user`,`id` FROM `". App::getT('user') ."` ORDER BY `signup` DESC");
$userFetch = mysql_fetch_array($userQuery);
$newusername = $userFetch['user'];

$newuserid = $userFetch['id'];

$oSrvLog = &App::getModuleService('Log', 'Log');
$aItem = $oSrvLog->getSiteStat();
$numberregistered = $aItem['online_member'];
$numberguest = ($aItem['online_all']-$aItem['online_member']);
$totalonline = $aItem['online_all'];

Btw what phpfox version are you using?

Anyoldname 01-16-2009 01:03 PM

Great, I'll give that a try. I'm using the latest 2.1.6 phpFox with VB 3.8.0

Many thanks for your help, very much appreciated. :)

Anyoldname 01-16-2009 04:10 PM

Hi, sorry which file to I put this code into?

Ziki 01-16-2009 07:49 PM

It's the plugin in vBulletin you recently enabled

Anyoldname 01-17-2009 08:31 AM

Sorry, I still don't quite understand. Do I paste this code into one of the files that I downloaded in the plugin pack & upload it to the site, or do I finds this code somewhere in the VB or phpfox admin panel?

Thanks

KevinL 01-17-2009 01:51 PM

This looks cool.

How well does this work with Vbseo and this facebook app? Would there be any conflicts?

Thanks

Ziki 01-17-2009 04:34 PM

Quote:

Originally Posted by Anyoldname (Post 1715517)
Sorry, I still don't quite understand. Do I paste this code into one of the files that I downloaded in the plugin pack & upload it to the site, or do I finds this code somewhere in the VB or phpfox admin panel?

Thanks

Go to vBulletin Admincp - > Plugins and Products -> Plugin Manager and find the plugin I told you to enable,click edit and paste it there.

Quote:

Originally Posted by KevinL (Post 1715750)
This looks cool.

How well does this work with Vbseo and this facebook app? Would there be any conflicts?

Thanks

It works with vBSEO but I am not sure about that mod,you need to test it.

Ziki 01-18-2009 09:42 AM

2.5.1 released

Anyoldname 01-18-2009 05:26 PM

Quote:

Originally Posted by Ziki (Post 1715908)
Go to vBulletin Admincp - > Plugins and Products -> Plugin Manager and find the plugin I told you to enable,click edit and paste it there.

Thanks Ziki, all done. The users are up to date now, but still I have the problems as explained in post #9 of this thread with threads/posts not being marked as read unless I view them by first going to the fotum, then opening the thread.

reclipse3 01-19-2009 05:51 PM

Hello,

I'm about to integrate this and want to be sure I understand correctly:

Step 2 says to install vBulletin in yourwebsite.com/forums (which I've done), but then Step 4 says, "Upload the whole vbulletin folder to the phpFoX plugins folder."

Does this mean to upload the original vBulletin source files from my computer, or to "move" the vbulletin folder from the yourwebsite.com/forums directory to the phpfox plugins folder?

Thanks!

Anyoldname 01-19-2009 06:03 PM

You upload the vbulletin files to the /forums folder on your server and upload the vbulletin integration files from here to the phpfox plugins folder.

TonyMF 01-19-2009 09:16 PM

Thank you Ziki for this mod! It's up and working on my board here.

The only minor nuisance I have is some of the text on the pagebg areas being white against a white background. I've checked the style option settings in vBulletin and it doesn't update. I think it's being overwritten by phpFoX. The other is when you accidentally use the vB login box it's sometimes quirky for me staying logged in.

Other than that, A+ mate. :up:

reclipse3 01-19-2009 09:47 PM

I've got a custom theme installed on my phpfox site (not just a theme you can switch to, but hard-coded), so my header and footer is off.

Where is vBulletin pulling the CSS, footer, header, etc. from with this integration?

Anyoldname 01-20-2009 08:08 AM

Quote:

Originally Posted by reclipse3 (Post 1718302)
Where is vBulletin pulling the CSS, footer, header, etc. from with this integration?

Admin cp >> Style manager >> Edit templates >> Your phpfox style header & footer.

Is anyone else using this with phpfox 2.1.6? And are your forums & posts being marked read if you read them from the https://vborg.vbsupport.ru/external/2009/01/13.gif button?
This is my only bug now, unless I follow the path completely thru the forum, then the thread, it remains marked unread.
I also have the same login quirk as you Tony. I wonder if it would be better to just remove the login form from VB so that users must login from the phpfox index?

imvitaliy 02-04-2009 02:59 PM

I have your older version of phpfox 1.6.20 and vbulletin integration. I want to upgrade to the new version of the integration. Do I uninstall the the plug-in from vbulletin admin? What about the phpfox side? and then install the new integration plug-in?

I have some questions:
1. I have some forum that are only availabe to admins, when admins opens a new topic in that admin only forum section, the new forum topic shows up on phpfox side to everyone. So then if a non-admin user clicks on the new forum topic from phpfox (NEW FORUM TOPICS) they get an message that says that they don't have access to this topic. How do I remove non-admins to view latest topics that are posted in admin only section of the forum?

2. When I delete a user from phpfox side, my users don't get deleted in vbulletin. Do I have to delete them manually?

3. I am using joomla for CMS and I want users to be able to login from anywhere in the site. Vbulletin, phpfox, joomla, and other static pages. I want to use this mod and place it on top of all pages on my site. Is there a better way? What can I do to allow users to be able to login on top of any page on my site?

Thanks a lot already.

Ziki 02-04-2009 06:11 PM

There is a guide to for upgrades in the readme.

1. http://forums.phpfox.com/showthread.php?t=25585

2.Yes

3.Well any login mod would have to be synced with this.

jboyd 03-04-2009 06:41 PM

how does this handle messages and profiles and the like?

Will my users have 2 profiles and 2 message boxes and 2 etc...?

Anyoldname 03-04-2009 09:32 PM

It uses the phpfox messages and profiles.

palgrave 03-26-2009 09:21 PM

I have vbulletin integrated with phpfox. Everything is ok when you login via phpfox, but the members who go straight to the forums and login get the following warnings appearing briefly:
Quote:

Warning: Cannot modify header information - headers already sent in /home/palgrave/public_html/include/modules/Account/classes/PhpFox_ServiceSecurity.class.php on line 231

Warning: Cannot modify header information - headers already sent in /home/palgrave/public_html/include/modules/Account/classes/PhpFox_ServiceSecurity.class.php on line 232

Warning: Cannot modify header information - headers already sent in /home/palgrave/public_html/include/modules/Account/classes/PhpFox_ServiceSecurity.class.php on line 235

Warning: Cannot modify header information - headers already sent in /home/palgrave/public_html/include/modules/Account/classes/PhpFox_ServiceSecurity.class.php on line 236

Warning: Cannot modify header information - headers already sent in /home/palgrave/public_html/include/modules/Account/classes/PhpFox_ServiceSecurity.class.php on line 237

Warning: Cannot modify header information - headers already sent in [path]/includes/functions_login.php(288) : eval()'d code on line 14

Warning: Cannot modify header information - headers already sent in [path]/includes/functions_login.php(288) : eval()'d code on line 1
What do I need to do to fix this?

kellyandmark04 03-29-2009 11:28 PM

I have vbulletin installed allready.

I moved it to a folder called forums, uploaded phpfox to the root directory, the installer doesn't work when I go to run the installer for phpfox any help??? Everything is CHMODDED correctly

KevinL 03-30-2009 01:03 AM

I would say ask on their forums?

Extreme24 04-09-2009 02:52 AM

When I try to login through the forums I get the following Firefox error:

Quote:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem.
Actually the same thing happens when I login through phpFox.

Ziki 04-09-2009 11:13 AM

Quote:

Originally Posted by Extreme24 (Post 1787056)
When I try to login through the forums I get the following Firefox error:



Actually the same thing happens when I login through phpFox.

What modifications did you do to phpfox or vB?


All times are GMT. The time now is 06:14 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.01558 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete