Lampwrights Forum > Other Stuff > vBulletin Wordpress Bridge
Register Community Today's Posts Search

Reply
 
Thread Tools
03-01-2011, 05:24 PM   #1
Ryan1938
Junior Member
 
Join Date: Feb 2011
Posts: 5
Rep Power: 0
Ryan1938 is getting browny points
Moving from old version to new?

I am so damned tickled to see you working on this again Jeff. Thanks to everyone involved! And I would be very happy to contribute financially as well. I really depend on this plugin.

Now, question time...

Is there anything that I should be aware of when upgrading from the old version to this new one that was recently released here? Will it screw anything up at all?
Ryan1938 is offline   Reply With Quote

03-02-2011, 08:24 AM   #2
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
It should not. The old version would allow VB users to log into the WP admin, whereas this version does not. It only bridges the users when they comment.

This the "Jalopy" Ryan?
Jeff is offline   Reply With Quote
03-02-2011, 12:08 PM   #3
Ryan1938
Junior Member
 
Join Date: Feb 2011
Posts: 5
Rep Power: 0
Ryan1938 is getting browny points
Yep... It's me!

I'll try to upgrade one of my sites and see what happens!

Thanks!

R.
Ryan1938 is offline   Reply With Quote
03-02-2011, 12:11 PM   #4
Ryan1938
Junior Member
 
Join Date: Feb 2011
Posts: 5
Rep Power: 0
Ryan1938 is getting browny points
Quote:
Originally Posted by Jeff View Post
It should not. The old version would allow VB users to log into the WP admin, whereas this version does not. It only bridges the users when they comment.

This the "Jalopy" Ryan?
Quick question... Will the old "comment replacement code" that went on my WP templates to show comment count still work with the new plugin?

This is the code I speak of:

Code:
#### Vbridge Replacement code for comments
                        
                        if ($vbridge[id] > 0) {
                        ?>
                        
                        <a href="<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>" class="ico-comment fl">(<?php echo $vbridge[count] ?>) Comments</a> 
                        
                        <?php
                        }
                        else {
                        ?>
                        <!-- no post on the forum -->
                        <?php
                        }
                        ##End Vbridge Replacement

Last edited by Ryan1938; 03-02-2011 at 12:14 PM.
Ryan1938 is offline   Reply With Quote
03-02-2011, 12:49 PM   #5
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Quote:
Originally Posted by Ryan1938 View Post
Quick question... Will the old "comment replacement code" that went on my WP templates to show comment count still work with the new plugin?
Actually no it probably will not. The bridge currently does not post to a VB thread anymore, it uses the WP comment system. Hmm, didn't think about that... Might have to consider bringing that back into the code.
Jeff is offline   Reply With Quote
03-02-2011, 12:56 PM   #6
Ryan1938
Junior Member
 
Join Date: Feb 2011
Posts: 5
Rep Power: 0
Ryan1938 is getting browny points
Awe... So, the new version probably won't work for me. Here's my typical work flow:

1. Post feature article on wordpress.
2. The bridge automatically posts that article on VB as a thread.
3. Folks comment on the article through VB.
4. The comment count shows on WP an links to the VB thread.

I'd be happy to pay up for some development. I currently just have one site with problems. Garagejournal.com will no longer allow me to upload photos through wordpress if the bridge is activated.
Ryan1938 is offline   Reply With Quote
03-02-2011, 01:02 PM   #7
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
I am so booked it isn't even funny. Seriously, I am up at 5am and work until 5-6 every day.

I was working on the new WP roles the other day and it might fix the issue you are having with the old plugin. You can give it a shot anyway. Find this code:
Code:
        $user->wp_capabilities = array(strtolower(get_option('vbb_vbugroup_' . $vbulletin->userinfo[usergroupid])) => 1);
Replace with this (functions_vbbridge.php):

Code:
    $user->wp_capabilities = $wp_roles->roles[strtolower(get_option('vbb_vbugroup_' . $vbulletin->userinfo[usergroupid]))]['capabilities'];
And see if that fixes your upload issue?
Jeff is offline   Reply With Quote
03-04-2011, 07:35 PM   #8
kpmedia
Junior Member
 
Join Date: Jan 2011
Posts: 23
Rep Power: 0
kpmedia is getting browny points
I made the above change, to see if it would address this issue:
http://www.lampwrights.com/showthread.php?t=46

It does not.

Just wanted to share.

My own coding efforts have also failed so far.
__________________
.
Thanks.
Tip: You can also find me at digitalFAQ.com/forum, if I don't reply here.
kpmedia is offline   Reply With Quote
03-11-2011, 11:44 AM   #9
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Ryan,

Sorry I forgot a line here, the replacement should be:
Code:
$wp_roles = new WP_Roles();

$user->wp_capabilities = $wp_roles->roles[strtolower(get_option('vbb_vbugroup_' . $vbulletin->userinfo[usergroupid]))]['capabilities'];
Jeff is offline   Reply With Quote
Reply

Tags

vbulletin wordpress bridge



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Old Deprecated Version Jeff vBulletin Wordpress Bridge 0 01-20-2011 01:14 PM


All times are GMT -4. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.