PDA

View Full Version : VB Main Navbar on WP site


talhatc
08-19-2016, 07:09 PM
Hi All,

I need to show the VB Main Navbar which has the login and signup drop-down form on the wordpress site.

I would appreciate if someone can point me in the right direction.

I tried the following code but didn't know how to get the top bar


$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/forum5/core/global.php";
include_once($path);

Replicant
08-19-2016, 11:01 PM
The easiest way to include the login form is via iframe. When someone logs in, they will be redirected to the forums.

<iframe id="idLoginIframe" class="js-menu__login-iframe b-menu__login-iframe" src="http://www.example.com/forums/auth/login-form"></iframe>

This will display the login form on your page. You can set the CSS to display none, add a div with a login button to create the nav bar and use jquery or javascript to toggle the form when someone clicks the button. Use absolute positioning and z-index to have the form overlap the page like a dropdown. This is the easiest way to include the vb login form to an outside page.

noypiscripter
08-20-2016, 01:32 AM
Or you could create your own login form in WP and use this code to login to vB:

http://www.vbulletin.com/forum/blogs/david-grove/4327147-how-to-log-into-vbulletin-from-an-external-script-on-your-website

talhatc
08-20-2016, 09:10 AM
I need the whole top bar from Vbulletin to show on the WP site

noypiscripter
08-20-2016, 01:58 PM
Are both the vB forum and WP in the same domain? Or one of them is in a subdomain? And I assume if user is logged in to vB, the top bar in WP will show the username and avatar and also Messages and Notifications?