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)

Blade-uk 01-29-2010 10:23 PM

I have this working now but wanted to add a quote button.

Anyone know where to add a quote button and which code?

I also have the sidebar login, but i want to remove the dashboard link, any ideas on doing this?

Thanks,

Andy

Quantnet 01-30-2010 03:20 AM

Now, before we integrate, the admin account on WP side made a dozen or so posts, now after integration, those posts are without author because the old admin isn't there in VB database anymore and we don't have the ability to assign new author to it.

Do only VB usergroups that get mapped to Author group can get assigned as author of a post? Do Contributors group be author of a post as well?

thanks

Blade-uk 01-30-2010 11:27 AM

Ok few issues.

1 - How do i add a quote button into the comments.
2 - How do i get it to display the author's name as a name, and not as a username? Currently says the article was posted by Aruffell. I want is like it was saying Andy Ruffell
3 - How do i get ALL previous posts to use the forum for comments as now all of my posts barring one have no comments since this system was put into place?
4 - See screenshot below. Due to him quoting on the forum, it's come out funny looking.

http://img199.imageshack.us/img199/4...dgecomment.jpg

Any ideas?

Thanks,

Andy

abstroose 01-31-2010 01:26 PM

I'm having a problem getting the author name to display on my posts. This plugin was working fine before, until I just noticed the author name was linking to the WP author page (which doesn't exist). I guessed this must have been due to a Wordpress update, so I restored the vbbridge code:

Code:

<a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $vbridge[thread_starter] ?>><?php echo $vbridge['postusername'] ?></a>
But for some reason, it will no longer display the username. When I view the source there, the correct link to my VB profile is there, but no username?

Quantnet 02-03-2010 11:35 PM

I have a special usergroup in VB that is mapped as Contributor in WP. They can write post and submit for review.
However, when an admin edit the post and publish it, the author of the article became that admin, not the original contributor.

Anyone knows how to keep the original author intact even if it's being edited by other admin/editor

Thank you.

caracena 02-04-2010 10:06 AM

Quote:

Originally Posted by Quantnet (Post 1970252)
Now, before we integrate, the admin account on WP side made a dozen or so posts, now after integration, those posts are without author because the old admin isn't there in VB database anymore and we don't have the ability to assign new author to it.

Do only VB usergroups that get mapped to Author group can get assigned as author of a post? Do Contributors group be author of a post as well?

thanks

What I did was to create a WP admin (different than "Admin" for safety), another admin user for vB and a second admin in vB that I used to integrate. This way I can login with an administrator's account to make changes but if I want to post a new article, I login with a vB username assigned to a "Authors" gourp in vB with Administrator as a secondary group. That way, what I post in WP appears with my name and not the "integrator's" name. Whatever you write with a Administrator as primary account, the integrator's username will appear as the author.

You would expect this plugin to also feth the user's secondary groups but it doesn't. Just the primary and that should not be a Administrative account for posting articles.

Quote:

Originally Posted by Quantnet (Post 1974278)
I have a special usergroup in VB that is mapped as Contributor in WP. They can write post and submit for review.
However, when an admin edit the post and publish it, the author of the article became that admin, not the original contributor.

Anyone knows how to keep the original author intact even if it's being edited by other admin/editor

Thank you.

I really don't know how to do this. What I did was to map the "Authors" group in vB as Authors in WP so they can publish articles directly. I would also like to review the articles before they are submitted, but since I'm having the same resoult as you, I rather have a later correction to an article still with their names on so they have the credit for them.

manu3569 02-04-2010 12:06 PM

Hi experts,

I've recently successfully installed the VB bridge with the latest version of WP and VB. I just noticed that after the installation, it seems that I keep on getting logged out of the forum when there is some inactivity for some time (<1h). This wasn't the case before. I did check 'remember me' when logging in. Also, a few other users have noticed this behavior. The WP page is not live yet, so nobody else has accessed it, but they still see this behavior in the forum.

Why would the login be cleared after some time? Any suggestions/help/advice would be welcome.

Thanks,
-manu

Quantnet 02-04-2010 02:04 PM

Quote:

Originally Posted by caracena (Post 1974561)
You would expect this plugin to also feth the user's secondary groups but it doesn't. Just the primary and that should not be a Administrative account for posting articles.

I created an Author usergroup in VB and assign this usergroup as secondary to some members but it seems the bridge does not like this. It seems I can only map author if I also make the primary usergroup Author as well.

caracena 02-05-2010 10:12 AM

Ok, after countless hours of working, I finally have the plugin working the way I wanted. Now I have one last issue. I want the thread created automatically in the forums with each WP article to be closed after it was created. Does anyone know how to do this? I want comments ONLY in WP.

Thanks,

kersti 02-05-2010 05:07 PM

Quote:

Originally Posted by caracena (Post 1975314)
Ok, after countless hours of working, I finally have the plugin working the way I wanted. Now I have one last issue. I want the thread created automatically in the forums with each WP article to be closed after it was created. Does anyone know how to do this? I want comments ONLY in WP.

Thanks,

If the thread is going to it's own forum then you can set those to be closed in the forum setup. I don;t think you can do it on a thread by thread basis

caracena 02-06-2010 10:33 AM

Quote:

Originally Posted by kersti (Post 1975513)
If the thread is going to it's own forum then you can set those to be closed in the forum setup. I don;t think you can do it on a thread by thread basis

Hmm you are right. I didn't think of this. Thanks a lot ;)

euantor 02-06-2010 07:48 PM

This doesn't seem to work with the latest wordpress? It's trying to find global.php, but wordpress comes with no such file... Here is what I get:

Code:

cannot include /home/sites/360elites.net/public_html/sample/global.php. You should check your path! Turning Plugin Off

caracena 02-07-2010 04:15 AM

Quote:

Originally Posted by euantor (Post 1976222)
This doesn't seem to work with the latest wordpress? It's trying to find global.php, but wordpress comes with no such file... Here is what I get:

Code:

cannot include /home/sites/360elites.net/public_html/sample/global.php. You should check your path! Turning Plugin Off

Hmm I'm using WP 2.9.1 and it runs smooth with it. If yours it's a fresh install, delete everything and start over even from the WP installation. If you follow the steps inside the readme file that goes with the files for the script, you should have no problems at all.

Radjedef 02-07-2010 08:16 PM

Thanks! WP 2.9.1, works fine.

There is just one problem with german chars. Instead of "ü", "ö" or "ä" there is something different. The UTF-8 option is turned on.

Any ideas?

Quantnet 02-08-2010 03:06 AM

I wonder if anyone get the avatar to work if they move avatar to file system instead of the default database.

Radjedef 02-08-2010 07:13 AM

Quote:

Originally Posted by Radjedef (Post 1976907)
Thanks! WP 2.9.1, works fine.

There is just one problem with german chars. Instead of "?", "?" or "?" there is something different. The UTF-8 option is turned on.

Any ideas?

Problem fixed :p
vBulletin was ISO instead of UTF-8.

If you have char problems, try this:http://www.vcharset.com/

Thx for the plugin, love it :)

caracena 02-11-2010 11:56 AM

Hi all,

Has anyone been able to pull vBulletin stats into WP? I would love to have a little widget in WP with:

Registered Users
Total Threads
Total Posts

Thanks!

Radjedef 02-11-2010 05:57 PM

*uninstalled*

Too much bugs with nextgen gallery. Fix it and I will install it again.

Gandham 02-15-2010 05:06 AM

My posts are without author.
I disabled vbbridge and added new admin account and set the account from which I made the posts to author. Still i my posts are without author.
Also my gravatar is missing in comments :(
Does this plugin make modifications to core wp-functions like get_author??

lycheepassion 02-15-2010 06:17 AM

So does this link the blog to the forum better? WP is on the root then forum is /forum.. RIght now I just have a page redirect to the forum, probably not the best.. Will this help me? :)

Brew 02-15-2010 04:34 PM

Is this working with vB 3.8.4?

Is there a version for vB 4.0.+?

Thanks!

Demo16 02-17-2010 10:41 AM

As for me is not working. I've uploaded the 3 files, activated the plugin, I left blank this fields:
VB User ID
VB Username
VB Forum ID

as I don't need comments using vbulletin. I just want to integrated users.
but when I click to the vbridge user settings I got blank page.

any idea?

Stephan Whelan 02-17-2010 06:18 PM

Quote:

Originally Posted by amjadz4 (Post 1960214)

You get this error when you have another plugin conflicting with it. Disable all other plugins and enable just the bridge. When you have it working, then enable the others one by one. If you encounter the same error, you have found the culprit. Sorry to say but you cannot use that plugin along side the bridge due to conflict. Try finding an alternative.

Thanks for your help previously but we've only just got round to restesting this. Even though we disabled all other plugins we still get the same error:

[Wed Feb 17 20:09:23 2010] [error] [client xx.xx.xx.xx] PHP Fatal error: Cannot redeclare get_userdatabylogin() in /home/xxxxx/xxxxx/blogs/wp-content/plugins/functions_vbbridge.php on line 3, referer: http://blogs.xxxxx.com/wp-admin/plug...us=all&paged=1

Any more ideas?

Demo16 02-18-2010 08:27 AM

Quote:

Originally Posted by Demo16 (Post 1984473)
As for me is not working. I've uploaded the 3 files, activated the plugin, I left blank this fields:
VB User ID
VB Username
VB Forum ID

as I don't need comments using vbulletin. I just want to integrated users.
but when I click to the vbridge user settings I got blank page.

any idea?

Ok now the mapping pages works, I've done the mapping but in WP there's still only admin user. Is this normal?

Demo16 02-18-2010 09:11 AM

Quote:

Originally Posted by Demo16 (Post 1985400)
Ok now the mapping pages works, I've done the mapping but in WP there's still only admin user. Is this normal?


Found the problem.
Is a path problem as I'm still working on a test wp website while my forum is in the right domain.

I have my wp website here:

www.mytest.com which is /var/www/html/mytest/
and my forum here www.mywebsite.com/forum which is /var/www/html/mywebsite_forum/

what I have to ut in this fields:
Forum URL:
Forum Relative Path:

shall I use also this?
$vwd = '/some/path/to/your/forum';

bye

Demo16 02-18-2010 02:05 PM

ok now I have:

www.mywebsite.com which is /var/www/html/mywebsite
and my forum here www.mywebsite.com/forum which is /var/www/html/mywebsite_forum/

but still not working, what are the correct urls for the above settings?

kersti 02-18-2010 05:53 PM

I've done everything in the readme, step by step...... all ok except - my test post did not post to my forum... now what do I do?

djxer0 02-19-2010 04:54 AM

I'm trying to set this up with Wordpress 2.9.2 and vBulletin 3.8.4 and am running into an issue.

I can set it all up but when I try to make a new post in Wordpress I get the following error...

Quote:

Warning: require_once(wpvbbridge/includes/class_dm.php) [function.require-once]: failed to open stream: No such file or directory in /home/immature/public_html/blog/wp-content/plugins/vbbridge.php on line 114
Here is line 114 from vbbridge.php

Quote:

require_once('wpvbbridge/includes/class_dm.php');
I'm stuck at this point so if anyone might be able to help I'd really appreciate it.

Demo16 02-19-2010 08:33 PM

Quote:

Originally Posted by Demo16 (Post 1985620)
ok now I have:

www.mywebsite.com which is /var/www/html/mywebsite
and my forum here www.mywebsite.com/forum which is /var/www/html/mywebsite_forum/

but still not working, what are the correct urls for the above settings?

no more support for this mod?

caracena 02-20-2010 12:40 PM

Quote:

Originally Posted by kersti (Post 1985761)
I've done everything in the readme, step by step...... all ok except - my test post did not post to my forum... now what do I do?

Make sure the Forum Admin User you are using has a different name that your WP users (no admin for example). If it is, change it in Vbridge Settings in WP, deactivate the plugin and activate it again. Also, make sure your paths in Vbridge Settings are correct.

Quote:

Originally Posted by djxer0 (Post 1986178)
I'm trying to set this up with Wordpress 2.9.2 and vBulletin 3.8.4 and am running into an issue.

I can set it all up but when I try to make a new post in Wordpress I get the following error...



Here is line 114 from vbbridge.php



I'm stuck at this point so if anyone might be able to help I'd really appreciate it.

Same as above... correct paths. Try with the complete URL for the Forum URL (http://www.mysite.com/forum) and the relative path in the second option (for the same example, the path would be /forum).

Quote:

Originally Posted by Demo16 (Post 1985620)
ok now I have:

www.mywebsite.com which is /var/www/html/mywebsite
and my forum here www.mywebsite.com/forum which is /var/www/html/mywebsite_forum/

but still not working, what are the correct urls for the above settings?

Same as above... full path first and relative in the second box.

Demo16 02-20-2010 12:56 PM

OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:

Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?

pujabrang 02-22-2010 12:03 AM

does it support 3.8.4???

CriStaS 02-25-2010 06:51 AM

Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

We need:
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

The hack :
PHP Code:

        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 

checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...

caracena 02-26-2010 10:25 AM

Quote:

Originally Posted by Demo16 (Post 1987265)
OK now it works tnx but I got one problem.

For example if I have a post which has a vb author and I click on the authors name the page can't find all the post of this author, only says:


Nothing Found
There are currently no posts in this section, please check back again later.

the problem is that my permalink use also the author name so category/post/author for this reason I got all blank pages.

Any clue why? mapping problem?

Althou in my case everything is working, I have the same problem but that is becouse "Find all posts from this user" searchs for WP posts. You would need to change the code in WP so it points to the user's posts in vB (like when you see at users statistics in vB)

Quote:

Originally Posted by pujabrang (Post 1988453)
does it support 3.8.4???

Yes.

Quote:

Originally Posted by CriStaS (Post 1991016)
Hello, thank you for your plugin!

Found a bug (at least for me)...

VB with restricted access (all forums are closed, authorised access only) + public WP:

Logged user have no problems.
Unauthorised user can see only "white screen" on WP page.

Short research and I found solution (hack) inside vb/global.php :

We have (~ 1000 line):
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

We need:
PHP Code:

...
if (!(
$vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
        
$allowed_scripts = array(
                
'register',
                
'login',
                
'image',
                
'sendmessage',
                
'subscription',
                
'ajax'
        
);
        if(
THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        elseif (!
in_array(THIS_SCRIPT$allowed_scripts))
        {
                if (
defined('DIE_QUIETLY'))
                {
                        exit;
                }
                else
                {
                        
print_no_permission();
                }
        }
        else
        {
... 

The hack :
PHP Code:

        if(THIS_SCRIPT == 'vbridge')
        {
                
#vbridge unauth hack...
        
}
        else 

checks if current caller is vbridge and passes global without auth tests.

I know that it isn't good way, but I don't have much time to fix this in a right way...

P.S. vB v3.8.4, WP 2.9.2, vbridge 4.01.13

By the way. It works on domain (WP) and sub.domain (VB) for me with small hack too...

All you need to do (I think) is map the users right from vB to WP. Make the group "Registered Users" from vB as Subscribers in WP but before that, install a plugin in WP that will let you set permissions based on WP user groups. WP doesn't really cares for your vB privacy settings so if you get blank pages, I'm sure you have something wrong with the bridge installation.

spwolf 02-27-2010 01:32 AM

Quote:

Originally Posted by Stephan Whelan (Post 1984865)
Thanks for your help previously but we've only just got round to restesting this. Even though we disabled all other plugins we still get the same error:

[Wed Feb 17 20:09:23 2010] [error] [client xx.xx.xx.xx] PHP Fatal error: Cannot redeclare get_userdatabylogin() in /home/xxxxx/xxxxx/blogs/wp-content/plugins/functions_vbbridge.php on line 3, referer: http://blogs.xxxxx.com/wp-admin/plug...us=all&paged=1

Any more ideas?

same here, disabled everything and still same error...

caracena 02-28-2010 10:12 AM

Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized ;). Sorry it's in Spanish :P

caracena 02-28-2010 07:27 PM

Hi all,

WP doesn't have a tracking system by itself so I decided to use a plugin called WassUp. It tracks visitors on your site and offers statistics as a widget. I can confirm that displays vBulletin users navigating the WP site with their usernames and all ;)

Ima so hapy!

Quantnet 02-28-2010 09:35 PM

Quote:

Originally Posted by caracena (Post 1993567)
Hi all,

After playing with WP and this plugin for like two months or so, I finally opend it to the public... The forum was already running and only changed the skin (first try to make one lol).

If you care to look at it, please send me a comment with your thoughts.

http://www.pescaydevolucion.com (fly fishing site in spanish)

PS: Didn't use vB for comments... just users and avatars customly and proportionally sized ;). Sorry it's in Spanish :P

i looked at your site and since it's in Spanish, i can't understand much.

I like to know how you get the avatar to display in WP from the user's VB avatar.

Do you store avatar in database or in file?

PlayersBay 03-01-2010 01:22 AM

I have an urgent problem with my site using wp-vb integration.

Suddenly the integration stopped working, have no clue why.

My site goes blank on wp part if I keep plugin installed, shows again when I put wordpress bridge functions off (but than my users can't access wordpress part).

I would appreciate help ASAP. $25/hour.

naoneo 03-01-2010 09:41 AM

To everyone who wants to access the CURRENT users avatar.
Instead of
PHP Code:

/image.php?u=<?php echo $reply['userid'?>

Use
PHP Code:

/image.php?u=<?php echo $userid get_option('vbb_VBUSERID'); ?>



All times are GMT. The time now is 11:12 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.03885 seconds
  • Memory Usage 1,911KB
  • 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_code_printable
  • (8)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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