vBulletin® integration plug-in provide you full vBulletin integration, including User system and Comment system.
This is an easy solution to integrating vBulletin forum software with your Vivvo system. If activated, vBulletin will take over full management of users and comments. A single registration works for the site as well as for the forums. It means that users are registered on the both systems at the same time, and when they log-in, they're logged to both systems at the same time.
vBulletin is a professional forum solution and this plug-in has capability of smoothly integration vBulletin into Vivvo CMS software.
Prior to installing the plug-in itself, you should make one modification to vB original code if you want to be redirected to your website after you log-out. Open the file VBULLETIN_ROOT/includes/functions_login.php and find this code (around line 409):
($hook = vBulletinHook::fetch_hook('logout_process')) ? eval($hook) : false;
then below just paste this code:
if (isset($_REQUEST['logout_url']) && $_REQUEST['logout_url'] != ''){
header('Location: ' . $_REQUEST['logout_url']);
}
In case your forum is installed in Vivvo's subdirectory, it is necessary to place .htaccess into this folder in order to make forum functional.
.htaccess content:
<IfModule mod_rewrite.c> RewriteEngine Off </IfModule>
After you have completed all pre-installation steps, you can install the plug-in.
You need to access the Plug-ins section. Click on Plug-ins link which is located in Main menu at the top of your administration panel.
A list of all plug-ins currently registered to the system is displayed on the right hand side of the screen on Downloaded plug-ins tab.
To install vBulletin® integration plug-in you need to click on the install icon on the right side of the plug-ins name.
This will take you to the page with the following fields. Just fill-in the values of corresponding parameters:
If you are unsure about the path you should do the following:
echo dirname(__FILE__);
When you got your forums path you should revert all changes to index.php file.
Do not go any further in the installation until you have both url and root added. After you enter these required fields, press the Next button to proceed with the installation.
On the next step, all you need to do is add some parameters in the form shown bellow:
Example:
After you have created a Forum that will store threads from your Vivvo site open it in your favorite browser and look at the URL.
As you may see, in our case, forums ID is 18.
The similar way you can get user ID. Just click on the username that will act like a bot (thread creator) and look at the URL:
Next, you will be informed that the plug-in was successfully installed and configured. Also the important notice will appear:
“From this point on, vBulletin® will manage User Management and Comment Management of the system. After this step you will be logged out and you must login into Vivvo using your vBulletin® administrator credentials.”
Choosing the finish task will log you out and provide you to administration log-in page. Now you should log-in using vBulletin administrator account. If you enter the correct credentials you'll be logged in to both systems.
After the vBulletin bridge installation, it is necessary to set 'Enable Vivvo comments' option in Vivvo administration - Preferences - Modules to 'No'
Now you should include vBulletin template for comments in your article template instead of current Vivvo comments template. Open /xhtml/article/default.tpl file and instead of this code line (around line 47):
<vte:include file="{VIVVO_TEMPLATE_DIR}box/comments.tpl" />
place the following:
<vte:include file="{VIVVO_TEMPLATE_DIR}box/vb_comments.tpl" />
If you have customized your template, you will need to use vb_login.tpl instead of using Vivvo login.tpl file. The log-in box is usualy placed inside the header template. So, you should just use this:
{VIVVO_TEMPLATE_DIR}box/vb_login.tpl
instead of using:
{VIVVO_TEMPLATE_DIR}box/login.tpl
In case that you used {VIVVO_PROXY_URL}login.html, than just replace this code:
<vte:if test="!{CURRENT_USER}">
<a href="{VIVVO_PROXY_URL}login.html">Register • Sign In</a>
<vte:else>
<vte:value select="{CURRENT_USER.get_name}" /> •
<strong><a href="{VIVVO_URL}index.php?action=login&cmd=logout"><vte:value select="{LNG_USER_LOGOUT}" /></a> | <a href="{VIVVO_PROXY_URL}usercp.html"><vte:value select="{LNG_EDIT_PERSONAL_INFORMATION}" /></a></strong>
</vte:else>
</vte:if>
with this:
<vte:if test="!{CURRENT_USER}">
<a href="{VIVVO_PLUGIN_VB_USER_URL}register.php">Register • Sign In</a>
<vte:else>
<vte:value select="{CURRENT_USER.get_name}" /> •
<strong><a href="{VIVVO_PLUGIN_VB_USER_URL}login.php?do=logout&logouthash={CURRENT_USER.get_login_hash}&logout_url={VIVVO_URL}"><vte:value select="{LNG_USER_LOGOUT}" /></a></strong>
</vte:else>
</vte:if>
To uninstall vBulletin® integration plug-in you need to click on the uninstall icon on the right side of the plug-in name.
This will take you to the page with the link for uninstall: Click here to Uninstall the plug-in
You will be informed that the plug-in was successfully uninstalled. After clicking on a logout link Click here to logout, you will be taken back to the main login screen. From this point on you can login into Vivvo only by using your Vivvo credentials.
After the deinstallation return the Vivvo comment template (comments.tpl instead of vb_comments.tpl) and set 'Enable Vivvo comments' option in Vivvo administration - Preferences - Modules to 'Yes'
After vBulletin bridge installation Vivvo will inherit forums users and usergroups. You should set them Vivvo permissions in Users section in Vivvo administration panel as explained in Add/edit usergroup chapter of this User manual.
Users need to log in via Log-in form using vBulletin username and password. If the user credentials are right, they will pass validation and will be logged to both systems.