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)

nando99 07-15-2009 02:56 PM

Quote:

Originally Posted by WouterN (Post 1816697)
Ok, here is a working solution for the folks that get this error:

PHP Code:

Fatal errorCannot redeclare get_userdatabylogin() (previously declared in /var/www/domain.com/html/wp-includes/pluggable.php:166in /var/www/domain.com/html/wp-content/plugins/functions_vbbridge.php on line 33 

Put this in your vbbridge.php file (can be at the top):

PHP Code:

update_option('vbb_VBPLUGION'1); 

After you have refreshed your site you can comment that line out again.

Hope this helps! It worked for me.

So that definitely fixed it but it keeps happening... Is it ok to just leave the fix in?

MisterLaO 07-16-2009 12:21 PM

hi... where can i find comment.php?? the comment.php in my custom theme doesnt have the texts to find...

cihangir 07-17-2009 09:59 AM

I am getting this error, when trying to post an article.

Warning: require_once(DIR/includes/functions_newpost.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/xxx.net/forum/includes/class_dm_threadpost.php on line 18

Any idea, what to do is?

wicked80 07-19-2009 03:22 PM

1 Attachment(s)
Big Thanks Jafo for the great great plugin !!!

OK, I saw lot's of posts asking for login/logout/avatar etc for wordpress and I needed the same and couldn't find one and so I coded one with my limited php knowledge here it is for you guys...

Credits:
Basically, this is a simpler version of this plugin:
Name: Deluxe vB User login and access control on non vB pages
URL: https://vborg.vbsupport.ru/showthread.php?t=173698

I do not wish to take any credits from the original author - Billspaintball and all credits go to Billspaintball.

Code:
Code:

<div>
                                <?php
                                global $vbulletin,$vbphrase,$pmbox,$reply,$db;

                                $forumurl = get_option('vbb_VBURL');//forumurl should not have a trailing slash e.g. http://www.mysite.com/forum
                               
                                if (!$vbulletin->userinfo['userid']) { ?>
                               

                                <form action="<?php echo $forumurl; ?>/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                                  <input type="hidden" name="do" value="login" />

                                  <input type="hidden" name="url" value="/" />
                                  <input type="hidden" name="vb_login_md5password" />
                                  <input type="hidden" name="vb_login_md5password_utf" />
                                  <input type="hidden" name="s" value="$session[sessionhash]" />
                                  <input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
                                  <label>Username: <input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label><br>
                                  <label>Password: <input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label><br>
                                  <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />

                                </form>

                                <?php
                                // Display text and link to register and lost password.
                                echo "<br /><a href=\"".$forumurl."/register.php?s=$session[sessionhash]\"        target=\"_parent\"><b>Register Now</b></a>";
                                echo " | ";
                                echo "<a href=\"".$forumurl."/login.php?do=lostpw\"        target=\"_parent\"><b>Forgot Password</b></a>";
                               

                                }else{

                                echo "Welcome Back, <b>";
                                echo "<a href=\"$forumurl/member.php?u=";
                                echo $vbulletin->userinfo['userid'];
                                echo "\">";
                                echo $vbulletin->userinfo['username'];
                                echo "</a><br />";


                          ?>
                                <img src="<?php echo $forumurl; ?>/image.php?u=<?php echo $vbulletin->userinfo['userid'] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="150" height="150" />
                                <?php
                                echo "<br />";

                                //display logout link
                                echo "<a href=\"$forumurl/login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash";
                                echo $vbulletin->userinfo['logouthash'];
                                echo "\">";
                                echo "<font size=\"1\" face=\"verdana\">Log Out</font></a><br />";
                               
                                // Display last visit time and date
                                echo "You last visited: $pmbox[lastvisitdate] at $pmbox[lastvisittime]";
                                echo "<br />";

                                // Display PM Details and generate link to PM box
                                echo "<a href=\"$forumurl/private.php?$session[sessionurl] \">Private Messages: </a> $vbphrase[unread_x_nav_compiled] $vbphrase[total_x_nav_compiled]";
                                echo "<br />";
                               
                                } ?>                       
</div>

Installation:
Just copy-paste that code into your template where you would like to display the login/logout/register box. Style it as per your theme.
Note: The forumurl which you configured while installing vbbridge should not have a trailing slash e.g. http://www.mysite.com/forum.In case it does, then remove / from the code after each $forumurl occurence.

Screenshot:
https://vborg.vbsupport.ru/attachmen...1&d=1248020788

To Do:
Presently after logout, it redirects to the forum logout screen. It would be nice to redirect the user back to the same page.

Other:
You can check the original plugin and also add some more advanced features to the login box e.g. new posts since last login.

undeadloktar 07-20-2009 04:00 AM

For those of you getting the login blank page for Wordpress go to VB Options on your board and change the cookie setting to / has to be / for it to work. Pulled my hair out over the issue and now it works.

nyplaya47 07-20-2009 02:13 PM

Thanks for this plugin. I'm looking to integrate my blog and forum and hopefully this will help me do so.

nando99 07-21-2009 07:41 PM

weird problem... I set up a certain user group to be authors and they can login and post and everything... but the author always comes back the same - the vb user with id of #1... even me now, when I post as my vb user/login it comes up as vb user id#1... anyone have any idea wtf is going on? lol

creativepart 07-21-2009 07:56 PM

Quote:

Originally Posted by nando99 (Post 1853127)
weird problem... I set up a certain user group to be authors and they can login and post and everything... but the author always comes back the same - the vb user with id of #1... even me now, when I post as my vb user/login it comes up as vb user id#1... anyone have any idea wtf is going on? lol

That's what happens. Mine the author shows correctly in draft form, but when I publish it then the Author changes. Also, when I edit someone else's post it changes the author as well.

The only way I've found around is to manually change it in the WP database after the fact.

Obviously, not a good work around.

MisterLaO 07-22-2009 12:36 AM

can anybody help me where to find comment.php please??

nando99 07-22-2009 01:12 PM

This sucks.... willing to pay for a fix.. I posted it on https://vborg.vbsupport.ru/showthread.php?t=219141...


All times are GMT. The time now is 05:32 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.02533 seconds
  • Memory Usage 1,773KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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