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 - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=205388)

amjadz4 10-26-2009 04:05 PM

Quote:

Originally Posted by ghealy44 (Post 1906394)
OK, i will try it tonight!. By copy the code you mean from within the actual header.php right? I have been trying to just include it.

thanks for the reply man!

No, that will not work unless you have both blog and forum in the same folder and a call to include wp-blog-header. Its pretty complicated that way. So if you want a simple solution, just open a page in the blog and view its source in html then copy the required code, both from header and footer if necessary.

happy to help! :)

ghealy44 10-26-2009 05:58 PM

Quote:

Originally Posted by amjadz4 (Post 1906468)
No, that will not work unless you have both blog and forum in the same folder and a call to include wp-blog-header. Its pretty complicated that way. So if you want a simple solution, just open a page in the blog and view its source in html then copy the required code, both from header and footer if necessary.

happy to help! :)

ok, i will check it out with firebug man. thanks for the help!

rob01 10-27-2009 01:52 AM

someone knows why users don't get ported or shared between vb and wp?

amjadz4 10-27-2009 06:40 AM

Quote:

Originally Posted by rob01 (Post 1906727)
someone knows why users don't get ported or shared between vb and wp?

They do get ported and shared. Users from vb are ported into WP. So once a user is logged in vb...they have access to all features in WP. (like comments etc)

:)

jmpa 10-27-2009 07:30 PM

Please, please, please consider using XMLRPC?

Making it work on each member own blog would make it really much more useful!

PlayersBay 10-29-2009 01:41 PM

The plugin is installed on my site, but when we try to get the current logged in user in wordpress the user_level variable is empty?

This is the code, just for reference:
global $current_user;
get_currentuserinfo();

Who can help out?

amjadz4 10-29-2009 09:07 PM

Quote:

Originally Posted by PlayersBay (Post 1907792)
The plugin is installed on my site, but when we try to get the current logged in user in wordpress the user_level variable is empty?

This is the code, just for reference:
global $current_user;
get_currentuserinfo();

Who can help out?

Use this in your WP template:

PHP Code:

<?php global $user_ID$user_identity$user_level ?>
<?php 
echo $user_identity ?>

it should work! tested by me. :)

PlayersBay 10-31-2009 12:34 PM

Quote:

Originally Posted by amjadz4 (Post 1908034)
Use this in your WP template:

PHP Code:

<?php global $user_ID$user_identity$user_level ?>
<?php 
echo $user_identity ?>

it should work! tested by me. :)

Did not solve the issue :(

MadsK 10-31-2009 01:34 PM

Will this mod be updated to work with vBulletin 4.0?

amjadz4 10-31-2009 02:05 PM

Quote:

Originally Posted by PlayersBay (Post 1908668)
Did not solve the issue :(

That means something is wrong with the integration. I tested it several times. Once logged in the user will display on the wordpress site with this code. Try putting it on the index page.

Or try this perhaps:

PHP Code:

 <div id="top">
                <div class="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>

                <?php global $user_ID$user_identity$user_level ?>
                <?php if ( $user_ID ) : ?>
                <!-- If users logged in, display the navigation: -->
                <!-- logout -->
                <ul class="login">
                    <li class="left">&nbsp;</li>
                    <li>Hello <a href="<?php bloginfo('url'?>/wp-admin/profile.php"><?php echo $user_identity ?></a></li>
                    <li>|</li>
                    <li><a href="<?php bloginfo('url'?>/wp-admin/">Dashboard</a></li>
                    <li>|</li>
                    <li><a href="<?php bloginfo('url'?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Log Out</a></li>
                </ul> <!-- / logout -->

                <?php elseif (get_option('users_can_register')) : ?>
                <!-- ... else, display navigation below: -->
                <!-- login -->
                <ul class="login">
                    <li class="left">&nbsp;</li>
                    <li>Hello Guest!</li>
                    <li>|</li>
                    <li><a id="open" href="#">Log In</a></li>
                </ul> <!-- / login -->

                <?php endif ?>

            </div> <!-- / top -->


For those wondering what this code is... It is to display The login info of the user logged in on your wordpress template.


All times are GMT. The time now is 12:17 AM.

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.02321 seconds
  • Memory Usage 1,762KB
  • 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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