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)

rcadden 07-10-2009 02:43 PM

Quote:

Originally Posted by creativepart (Post 1846364)
As someone that moved from PHPBB to VB I don't think I'd ever do that just for the CMS in Wordpress. But that was a few years ago and maybe it's different now. Your mileage may vary.

Well, my site started as Wordpress, and I only just added vBulletin to act as a more community-friendly comments engine, so I realize I'm backwards from most folks here. I have ~2 years of content in Wordpress, so moving the ~7 months worth of vBulletin to a different platform is likely easier than moving the Wordpress over, lol.

creativepart 07-10-2009 02:52 PM

Quote:

Originally Posted by rcadden (Post 1846388)
I have ~2 years of content in Wordpress, so moving the ~7 months worth of vBulletin to a different platform is likely easier than moving the Wordpress over, lol.

It's not the difficultly of moving, its the lack of features and available addons that made PHPBB so inferior to VB.

rcadden 07-10-2009 06:04 PM

In any case, I'm extremely interested in seeing this mod updated, rather than having to move stuff around - it's *so* close to working beautifully, but just needs to be updated is all.

creativepart 07-10-2009 06:30 PM

I'm 100% behind you on that. Perhaps someone will step forward and ask the original author to all them to take over. The Author hasn't posted on dot org for a few months and haven't even logged on for the past month (at this writing).

He seems to have abandoned this mod.

creativepart 07-10-2009 07:15 PM

I couldn't get the Author links working the way the Mod Author laid it out in his Readme. But, using his concept I found a way to change the Author links to link to their VB Profile, but it only applies to users that use VBSEO to rewrite member profile links to: username.html.

Here's what I did:

NOTE: since I'm running VBSEO this method applies to VBSEO users. VBSEO rewrites the member profile links on the fly. So instead of www.yourdomain/forum/members.php?u=1075 being a link to a member's profile VBSEO changes it to: www.yourdoamin/forum/members/username.html.

So, here's what I did. First I went to the various post and page php pages in my WP Style and changed the coding that said:

Code:

<p>Posted by <?php the_author_posts_link(); ?> on
I changed it to:
Code:

<p>Posted by <a href='http://www.mydomain.com/forum/members/<?php the_author(); ?>.html'> <?php the_author(); ?></a> on
See the original coding in the template called "the_author_posts_link" and I've changed that to "the_author" which gives you the author's username from VB. Then you can see in my new code above that I use the "the_author" php to insert the username into the manually coded link.

If you're not using VBSEO, you'll need to find a way make the Mod Author's instructions work to pick up the member number and use that to create a userID generated link. I just couldn't get his instructions to work for me.

Again, I realize this shouldn't be necessary to do this way, but hey, it works. So I thought I'd pass it on.

Alternatively, if you can't get this to work -- a fall back workaround idea is to change "the_author_post_link" to "the_author" and you'll keep the username but lose the broken link.

eplazai 07-11-2009 04:38 AM

When I open the media Uploader i get this message "Are you sure you want to do this?".

What can i do?. Please

Reeve of shinra 07-11-2009 04:58 PM

Quote:

My only continuing problem is the "Author" problem. WP expects the Admin account to be #1. But, my VB Admin account is userID=3 and there is no userID=1 in my vB. So, much of the time the "Author" is shown as blank. Well, it shows blank, but it actually has userID=1 in the post, but since there is no #1 it is blank.
I keep reading about this error but I don't have it. I don't have a user # 1 in vb either so far as I know and if I do, its deff not an admin account.

When I log in as my vb-user account (admin btw) it shows up fine on the forums.

If I log in as the wordpress admin and make a post, it shows up as my "designated alternate" in the forum. I enabled that in the WP plugin.

Vbridge Settings
VB User ID: 2857
VB Username: Slyph


BUG REPORT

When I try the quick post option in the WP-ADMIN -- it shows up on the blog but not in the forum. Using the regular posting method works fine.

gcaptain 07-15-2009 04:26 AM

Quote:

Originally Posted by eplazai (Post 1846770)
When I open the media Uploader i get this message "Are you sure you want to do this?".

What can i do?. Please

The answer is way back in comment #584 of this thread.

ashley76 07-15-2009 10:54 AM

Quote:

Originally Posted by gcaptain (Post 1848992)
The answer is way back in comment #584 of this thread.

Has anyone else gotten that to work? I tried but, I still get an http error when doing it...

mabersoft 07-15-2009 11:43 AM

What would i have for the setting if i had my forum & blog as a sudomain I.E.

forum.yourdomain.com
&
blog.yourdomain.com

Can you help please.

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...

Pirat3 07-22-2009 01:36 PM

anyone know why images postesd in WP dont trasnlate properly over to the forums

wicked80 07-22-2009 06:09 PM

Quote:

Originally Posted by Pirat3 (Post 1853537)
anyone know why images postesd in WP dont trasnlate properly over to the forums

Did you tried amjad's fix where he told to enable html in your vbulletin forum where the WP posts are being copied ?

AustinKalb 07-22-2009 06:55 PM

Help - not working.

Here's what I did.

1) put functions_vbbridge.php, functions_wysiwyg2.php, and vbbridge.php into the wp-contents/plugins directory.
2) set vb user id and vb user name to guest, forum ID to Comments, forum to http://wpvbtest.dnsalias.com/forums, relative path to /forums, plugin on, utf-8 yes, auto-integrate no, post articles to forum yes, excerpt forum post no.
3) created user guest in vb, created forum Comments
4) did not map any user groups in Users vbridge settings
5) posted on wordpress - found nothing in comments forum
6) created and logged on with new username in vb, went to wordpress page, tried to log in with same credentials, nothing. checked wp - user not there.

Is this correct? I expected the post to show up in vb, and the user to show up in wp. Neithet happened. No errors anywhere that I could see.

Thanks!
Austin

matt4 07-23-2009 01:42 PM

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/ferrari/public_html/blog/wp-content/plugins/vbbridge4.01.13/vbbridge.php on line 40

I get that error. Can someone assist me?

Thanks

nando99 07-24-2009 12:37 PM

Quote:

Originally Posted by undeadloktar (Post 1851993)
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.

So i'm getting the blank page.... but i'm not sure what you're saying to do...

mcasteel 07-28-2009 03:45 PM

In the install instructions after activating the product in the Wordpress Plugin section, it says YOU MUST go to the options page before you do anything else. Should this Option Page be listed under the Installed plugins? I'm having trouble finding the Option Page Link. I am using Wordpress 2.8.2. Do I need to use an older WP version? Thanks.

creativepart 07-28-2009 05:17 PM

Quote:

Originally Posted by mcasteel (Post 1857216)
In the install instructions after activating the product in the Wordpress Plugin section, it says YOU MUST go to the options page before you do anything else. Should this Option Page be listed under the Installed plugins? I'm having trouble finding the Option Page Link. I am using Wordpress 2.8.2. Do I need to use an older WP version? Thanks.

You'll have two VB Settings to setup. The main one is under "Settings" and the other is under "Users".

But the one you're looking for during the set up is under Settings section of the WP Admin.

creativepart 07-28-2009 07:13 PM

Quote:

Originally Posted by wicked80 (Post 1851686)
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...

Wicked80 this is great! But I can't get the Avatar to show up. I found a problem with the alt text in the avatar coding and fixed that -- but I cannot get the avatars to show up with the current coding you have.

I looked at the mod that you used to create this coding and found the following known bug: Will not display Avatars correctly if they are kept in the file system (database avatars are fine)

I'm guessing this is why avatars doesn't show when I use this. All the rest of the items in this addition work great, however.

I found this fix in the mod you used https://vborg.vbsupport.ru/showpost....4&postcount=27 But I haven't been able to make this work.

Can you help with this?
PS. I'm using a PHP Widget that lets you put PHP code in a widget just like you can put HTML in a Text widget. It's called Samisaren PHP Widget. This works great for inserting it into a sidebar without having to hard code the template.

Suiko Jin 07-28-2009 07:17 PM

I am trying to use the resetvbbridge.php to reset everything but it isn't working. I uploaded my wordpress directly into the public_html, but when I try to activate the resetvbbridge.php file it gives me this error.

Quote:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@website.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas?

And additionally I am doing this because after installing, whenever I try to login to my Wordpress admin it says "You do not have sufficient permissions to access this page."

Martyn1983 07-28-2009 07:38 PM

Installed...but getting this when trying to post a comment via WP

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'sanitize_url' was given in /home/martyn83/public_html/games/wp-includes/plugin.php on line 166

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in /home/martyn83/public_html/games/wp-includes/pluggable.php on line 850

pahvi 07-29-2009 12:05 AM

1 Attachment(s)
Hi

I have a custom theme in my WP-installation called ProPhoto2.
In this theme the comments.php that should be edited according to the readme.txt looks nothing like an original theme, and I therefore beg for your help to identify the parts that need to replaced, and with what, to have commenting in VB.

I have enclosed MY comments.php and also the readme.txt for anyone who wants to give it a try.

Thanks in advance!

/patrick

pahvi 07-29-2009 10:06 AM

Hi All!

I have tried out this mod, and it's awesome in many ways!

I didn't turn on the full integration since I didn't see any use for it, since the only thing I actually want is to make it possible for the readers of my blog to discuss selected objects in the forum. This meaning, I actually don't NEED to re-direct all comments to forum, but want to give the readers an option to discuss subjects I chose to publish in the forum.

This mod provides ALL that, in a very neat way, EXCEPT the possibility to add a small link in the bottom of every affected post - saying something like the subject, and redirecting the user to my forum.

Anyone have an idea on how to acomplish that?

/Patrick

SABRSox 07-30-2009 06:55 PM

1 Attachment(s)
This mod still has a userid issue. Allow me to explain it as clearly as possible, as there has been no good explanation of how to fix this issue.

I installed a vBulletin installation first, and users joined. I then added a wordpress install, and after installing everything correctly, mapped users and turned on auto-integrate.

Some time after that, there were userid issues.

I, "SABRSox" (with ID #1 on vB, and ID #2 on Wordpress [as "admin" is ID #1 on wordpress]) write a story on the blog and publish it.

When I go on to my blog, the post shows up as having been written by the guy who has ID #2 ("Zoso") on vB. Now, that's the only place there's a problem. On vB, it shows up as "SABRSox" having written the article. And when I go to edit the post in wordpress, the correct author ("SABRSox") shows up.

I'm including screen grabs so we can finally have a real discussion about this issue. It seems like there's probably a simple fix, I'm just at a loss to where it's at.

Geek Specialtie 07-31-2009 03:43 PM

1 Attachment(s)
I'm having a problem with comment integration.
I was using the Arthemia Wordpress theme with vbridge and everything worked great.
I changed my theme to Arthemia Premium and I can't get the comments to work.
When I change the code it breaks the layout and no comments appear.

You can see it working here.
http://www.remodelcrazy.com/forum/forumdisplay.php?f=19
http://www.remodelcrazy.com/

Here is my comments file for the theme, if anybody could help me with would be great.

Geek Specialtie 07-31-2009 07:57 PM

1 Attachment(s)
I found the difference that is breaking the layout.
A missing closing div -
So I added it (tried many locations) it fixes the layout but the comments don't work.
It says #of comments, but doesn't display them, displays 'Comments are closed.'
I can post a comment, it gets posted in wordpress comments the comment count increases but still doesn't display.

Here is the output from the standard comments page and one with the vbridge code inserted.
Hopefully this and my first post somebody can figure this out. I'm going in circles.

Taco John 08-01-2009 08:57 AM

Wow. I think I hosed my site.

I went through every step meticulously, and got my WP to post to my VB. The test post worked. I then mapped my user groups. Everything was ticking along fine. I turned on Auto-Integration. So far so good. Then I logged out of my admin account and into my vBulletin test account, and posted a test post in an article. It worked. The post showed up in Wordpress, though not in vBulletin. No big deal though, since I simply want my vBulletin users to be able to use the Wordpress front page. So I thought I'd see what happens when I click "log-out."

The screen went white. Nothing there.

I went to my Wordpress Admin panel, and clicked reload. The screen there went white too.

Hmmm... I deleted both functions.php files and then reloaded them and it restored the site. Basically, it appears that if I log out of wordpress, I crash the entire site? Or is it just a local cache thing?

Any insights?

FitgirlWorld 08-02-2009 01:53 AM

same thing just happened to me

now what? I cant even get into wordpress

Martyn1983 08-02-2009 09:37 AM

It's a shame this mod has so many issues.

I cant turn comments off. If I could, I'd quite happily leave it running, as most of my issues seem to centre round the comments. But no amount of disabling will remove them. Which is a real shame!

Might think about doing the same as other posters, removing it til it's stable

Geek Specialtie 08-02-2009 04:24 PM

Quote:

The screen went white. Nothing there.
I've had this happen. Seems to be it doesn't like some page variables. When this happens look at the address in the address bar, if it's not something like yourdomain.com/wp-admin then type that in you should be right back to the dashboard. That worked for me.

Blumy 08-03-2009 12:21 AM

Whenever I attempt a test post before I turn the auto-integration on I keep getting this error

Code:

Warning: require_once(./includes/class_dm.php) [function.require-once]: failed to open stream: No such file or directory in /home/pshkabo1/public_html/wp-content/plugins/vbbridge.php on line 113


All times are GMT. The time now is 07:22 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.02421 seconds
  • Memory Usage 1,899KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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