Lampwrights Forum

Lampwrights Forum (http://www.lampwrights.com/index.php)
-   vBulletin Wordpress Bridge (http://www.lampwrights.com/forumdisplay.php?f=13)
-   -   Moving from old version to new? (http://www.lampwrights.com/showthread.php?t=78)

Ryan1938 03-01-2011 05:24 PM

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?

Jeff 03-02-2011 08:24 AM

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?

Ryan1938 03-02-2011 12:08 PM

Yep... It's me!

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

Thanks!

R.

Ryan1938 03-02-2011 12:11 PM

Quote:

Originally Posted by Jeff (Post 330)
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


Jeff 03-02-2011 12:49 PM

Quote:

Originally Posted by Ryan1938 (Post 332)
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.

Ryan1938 03-02-2011 12:56 PM

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.

Jeff 03-02-2011 01:02 PM

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?

kpmedia 03-04-2011 07:35 PM

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.

Jeff 03-11-2011 11:44 AM

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'];



All times are GMT -4. The time now is 06:53 PM.

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