vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   VB Main Navbar on WP site (https://vborg.vbsupport.ru/showthread.php?t=323295)

talhatc 08-19-2016 07:09 PM

VB Main Navbar on WP site
 
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

PHP Code:

$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...n-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?


All times are GMT. The time now is 05:08 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.00961 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete