vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings (https://vborg.vbsupport.ru/showthread.php?t=134521)

redraider 04-15-2008 12:21 AM

You can see an example here:
http://scorechase.com/gmat/showthrea...9430#post49430

As you can see %postname% is not converted into a qualified URL.

superthang 04-15-2008 09:59 AM

very nice work

await 3.7 release (gold)

redraider 04-15-2008 11:49 AM

On further investigation I see this, the permalink system on my blog is like this:
/%year%/%postname%/

it gets converted to 2008.... somehow the plugin is not converting the %postname% variable to the correct postname.

redraider 04-16-2008 06:28 PM

Any one?

trigatch4 04-16-2008 06:29 PM

If you have WP 2.5 they have a funky new "default" way of writing %postname% urls. They sometimes remove short words like "if", "and", "the", etc... go to your permalink settings and try to make it write out the COMPLETE title in the %postname% and that might fix it.

joshmv 04-16-2008 08:29 PM

I'm also waiting on 3.7, so I hope the plugin won't be far behind.

redraider 04-17-2008 05:33 PM

Quote:

Originally Posted by trigatch4 (Post 1492383)
go to your permalink settings and try to make it write out the COMPLETE title in the %postname% and that might fix it.

How do I do that?

maidos 04-18-2008 07:33 PM

can u make this compatible with vb 3.7 since on vb.com they will release the gold version next week

zmsan 04-18-2008 10:25 PM

Quote:

Originally Posted by maidos (Post 1494050)
can u make this compatible with vb 3.7 since on vb.com they will release the gold version next week

That would be sooooooooo coool!

trigatch4 04-19-2008 09:10 PM

Quote:

Originally Posted by maidos (Post 1494050)
can u make this compatible with vb 3.7 since on vb.com they will release the gold version next week

Dude... he has said a million times once it is gold he will probably start working on it but he would NOT begin working on ANYthing that wasn't the production release. What are you going to do once 3.7 GOLD comes out? Tell him to hurry up?

The demand for his mod is pretty obvious - I'm sure he realizes how many people want it. And on top of that, he is offering it for free. Get real - be patient.

redraider 04-20-2008 11:47 AM

i agree we should be patient, this mod is a great one! ... one question though ... if i upgraded to 3.7 would that break this mod substantially? Anyone knows?

trigatch4 04-20-2008 01:35 PM

redraider: you could always do a FULL backup including your files and databases and THEN install 3.7. If anything breaks, take vbulletin down and revert to your backup.

I'm guessing that it WILL break stuff because 3.7 has so many more social features that relate directly to the users. And... this information is obviously being stored in the USER table which this mod correlates with the WP table.

Just my guess...

Jafo232 04-21-2008 11:45 AM

Quote:

Originally Posted by trigatch4 (Post 1495161)
redraider: you could always do a FULL backup including your files and databases and THEN install 3.7. If anything breaks, take vbulletin down and revert to your backup.

I'm guessing that it WILL break stuff because 3.7 has so many more social features that relate directly to the users. And... this information is obviously being stored in the USER table which this mod correlates with the WP table.

Just my guess...

Actually, no data is being saved to the Vbulletin tables. Chances are, 3.7 won't break anything, but I have not really tested it and am still awaiting a gold release.

redraider 04-21-2008 01:05 PM

Hi Jafo,

Could you help us solve this problem. The problem started after we upgraded to WP2.5 and latest vbridge.:

On further investigation I see this, the permalink system on my blog is like this:
/%year%/%postname%/

%year% gets converted to 2008.... somehow the plugin is not converting the %postname% variable to the correct postname when the thread is posted to the forums. The "Read More" Link has this URL

2008/%postname% instead of 2008/name-of-the-post ... in other words %postname% doesnt get changed to the correct URL

dustin999 04-24-2008 04:24 AM

I've tried everything, and I'm missing something simple I'm sure. I've reinstalled vbulletin (3.6.9) and wordpress (2.5) countless times and still can't get to the admin panel in wordpress after I turn on the integration.

What am I missing? At first I had the same admin user in WP and VB, so I just tried a fresh install of both with separate admin usernames. That didn't work. I've tried creating a new admin user for wordpress before I turn on the integration, that doesn't work. I'm mapping administrative users in vb to administrative users in wp, but that doesn't work. I tried not mapping administrative users, that doesn't work. Essentially no matter what I do, I end up with the "do not have sufficient permissions to access this page" error when I try to login to the wp dashboard

What's the proper way to integrate wp and vb and still preserve login functionality for wp admin? Please someone help me, I'm desperate and have been beating myself up with this for hours!!!

FYI, I've searched the forum and found references to this issue with the WP/VB bridge, but nothing actually gives me a solution.

Please help!

Thanks,
Dustin

dustin999 04-24-2008 10:49 AM

So, I'm still totally confused, and wondering if my version of wordpress (just downloaded yesterday) isn't supported yet by this mod? I decided to trace through the mysql changes vbbridge is making to see what was going on, and found that my administrator users were getting the wrong meta_value in the wp_usermeta table (I'm using wp_ as my wordpress table prefix).

As a workaround, I hacked vbbridge.php in the plugins directory, editting line 492 of the most recent version of vbbridge. I commented out line 492, and replaced it with this:

$usermeta_value = preg_replace('/a:1:\{s:23:"administrator\|user role";i:1;\}/', 'a:1:{s:13:"administrator";b:1;}', serialize(array(strtolower(get_option('vbb_vbugrou p_' . $vbulletin->userinfo[usergroupid])) => 1)));
$sql = "UPDATE " . $GLOBALS['table_prefix'] . "usermeta set meta_value = '". $usermeta_value ."' where user_id = '". $results->ID ."' and meta_key = 'wp_capabilities'";

In short, the problem I had was that vbbridge wanted to assign this value to the wp_capabilities column in my wp_usermeta table:

a:1:{s:23:"administrator|user role";i:1;}

However, wordpress had been assigning the following value to wp_capabilities in the wp_usermeta table:

a:1:{s:13:"administrator";b:1;}

I'm not sure I understand that whole string. Originally I just tried changing "administrator|user role" to "administrator" but apparently I have to change the s:23 to s:13 too for it to work.

Right now things appear to be working for me (knock on wood), but I'd like to know if this is normal for me to have to make these changes, and if anyone else has experienced this.

I'm guessing if this is an adequate solution, I'll probably need to do the same thing with other user roles as well.

Thanks,
Dustin

Tomahoochi 04-27-2008 12:25 PM

I'm having the same issue as dustin999. None of the wp_capabilites are being transferred correctly for ANY tpye of user. I'm running WP 2.5.1 now, but it was doing the same thing in 2.5.

dustin999 04-27-2008 03:00 PM

Yeah, I'm confused. In the mod information/requirements, it says it requires wordpress 2.5 or greater to work. But from everything I've seen, it's not compatible with wp 2.5 at all, at least not without the edits I mentioned above. Strange...

pspcrazy 04-28-2008 03:53 AM

Thanks for the pm dustin, I did what you did as well but a little differently i did it when i last posted so i forgot what i did :) Basically it was the same thing as you did, without any commenting needed :)

evershawn 04-30-2008 04:42 AM

I added this to my wordpress vb install and now I cannot log into my wordpress anymore, I just get a message of: You do not have sufficient permissions to access this page.

I tried deleting the plugin and it's still saying it. I think my whole website is borked now.... not a happy camper

Clayton 04-30-2008 05:05 AM

there is an explanation for this in this thread

can't recall exactly where or what

remove the plugin from your server

as mentioned, sorry if this is vague, it is explained in this thread

and I used it to correct my site

look at the instructions it warns you not to click something until you have done all the steps or else this may happen

you can reverse it

evershawn 04-30-2008 06:21 AM

ya, I did all the steps and everything worked according to plan until I tried to log into the admin again.

CompuJonathan 04-30-2008 06:44 AM

Quote:

Originally Posted by evershawn (Post 1503001)
I added this to my wordpress vb install and now I cannot log into my wordpress anymore, I just get a message of: You do not have sufficient permissions to access this page.

I tried deleting the plugin and it's still saying it. I think my whole website is borked now.... not a happy camper

Rename the plugin file in your wp-content/plugins folder. That should let you back into the admin for wordpress. I just changed mine to vbbridge1.php.

ikki83 04-30-2008 09:04 AM

so guys.. does it work with 3.7? :)

lim(x?-5x?) = ∞ 04-30-2008 11:06 AM

I think it's better to wait for 3.7 port :)

tekknikal 04-30-2008 12:48 PM

Quote:

Originally Posted by lim(x?-5x?) = ∞ (Post 1503243)
I think it's better to wait for 3.7 port :)

unless it works already...?

ikki83 04-30-2008 01:04 PM

i use this only for users integration, not for comments integration... if user integration works, i'm ok :)

mikesz 04-30-2008 01:37 PM

This MOD worked fine with 3.6.8 but I noticed when I upgraded to 3.6.10 everything seemed to work BEFORE I turned on the Turn Auto-Integrate switch. I was able to create a message and post it to a forum etc. But when I flipped the switch to go, I got You do not have sufficient permissions to access this page. WORSE than that, NOW nothing works, no user can get in now, well the can but as soon as you click on the site admin link you get the message for ALL logins after that. In effect the whole wordpress system is useless, you can do nothing with it and nothing seems to be able to clear it even deleting the vbbridge and rerunning upgrade, once its corrupted, it done.

Same exact conditions on the 3.7.0 system which I updated today but vbbridge is seriously broken.

Please advise, mikesz

mikesz 04-30-2008 01:45 PM

I think "integration" may be negatively impacted as well. Certainly they would get that same You do not have sufficient permissions to access this page. error message if you tried to access them in wordpress.

BTW, when I first noticed the problem wth 3.6.10, I was trying to integrate the WP page into a new template page that I created to make it look more like my forum and less like WP so I got side tracked on troubleshooting the problem but when I did the installations today, first on 3.6.10 and then on 3.7.0, I did straight installed according to the instuctions and got the permisions problem on both versions AFTER I flipped the automation switch. The error didn't show up before that...

HTH, mikesz

Jafo232 04-30-2008 03:46 PM

Ok, I have uploaded version 3.03 which should address the "You do not have sufficient permissions to access this page" error with new installs. The plugin also appears to be 3.7 compatible.

redraider 04-30-2008 04:02 PM

Jafo could you please help me with the problem where the "Read More" URL doesnt get posted properly?

Thanks

Hi Jafo,

Could you help us solve this problem. The problem started after we upgraded to WP2.5 and latest vbridge.:

On further investigation I see this, the permalink system on my blog is like this:
/%year%/%postname%/

%year% gets converted to 2008.... somehow the plugin is not converting the %postname% variable to the correct postname when the thread is posted to the forums. The "Read More" Link has this URL

2008/%postname% instead of 2008/name-of-the-post ... in other words %postname% doesnt get changed to the correct URL
__________________

nicholas.alipaz 04-30-2008 04:33 PM

I am on a Windows Server. Is there anything that would cause this not to work because of it? I am having tons of path issues. Even issues finding global.php.

I defined $vwd as F:\Domains\mysite\forum and it doesn't seem to work. What should I use if this isn't right?

pspcrazy 04-30-2008 05:16 PM

Wow thanks for fixing the bugs ;) Now I can go wild and upgrade, your great as always!!

VNefedov 04-30-2008 05:23 PM

Thanx Jafo232! Have new version installed.

Jafo232 04-30-2008 05:33 PM

Quote:

Originally Posted by nicholas.alipaz (Post 1503573)
I am on a Windows Server. Is there anything that would cause this not to work because of it? I am having tons of path issues. Even issues finding global.php.

I defined $vwd as F:\Domains\mysite\forum and it doesn't seem to work. What should I use if this isn't right?

You may want to try running this script in your wordpress document root and calling it directly:

Code:


<?php

// current directory
echo "My current working directory is " . getcwd() . "\n";

?>

It could point you in the right direction.

tekknikal 04-30-2008 06:18 PM

thanks for the update. will be trying this on my test site today. will first update vb, then wp.
edit -> updated my test site. i closed the forums, deactivated the plugin.. updated to vb37.. then turned on forums (forums worked)..then updated plugin. for some reason the content on the main page wasnt loading. i went directly to the wp cp though (manually went to url) and reactivated the plugin + configured it, and now everything seems to work...

nicholas.alipaz 05-01-2008 12:39 AM

Quote:

Originally Posted by Jafo232 (Post 1503644)
You may want to try running this script in your wordpress document root and calling it directly:

Code:


<?php

// current directory
echo "My current working directory is " . getcwd() . "\n";

?>

It could point you in the right direction.

Thanks for the quick response. I will give this a shot tomorrow and report back. I'll see if we can get a little info for those people using IIS.

mikesz 05-01-2008 02:56 AM

Hello Jafo,

I have just installed 3.03 on 3.7.0 with WP 2.51 and functionally, it works correctly now.

The display on the mapping page is also working correctly for the box / dropdown content but the dropdown on the selection of the forum is "mudged" like the mapping page was in the previous version that did not work.

It recognizes forum users as it should but the odd thing is that you have to refresh the WP page because the first screen does not have the member logged in but the refresh brings up the correct page with the correct member greeting at the top of the page. So, it "looks" like its not working on the first pass but the refresh brings up the correct screen.

The other oddity that I noticed was that I entered the URL in the vbbridge setting for my forum and it got pretty confused like, it loaded www.mysite.com/www.mysite.com in the browser so I got a fair number of 404 until I removed it in the vbbridge setting so the URL field there is now empty and it works happily.

Thanks for the quick turn around. I appreciate it.

edit :

I can not find any definition in WP for class="inputbox" though I am sure that it was there at some point it does not seem to exist now. I changed the "size" parameter to "tabindex" and it now act like a regular dropdown menu which is fine with me. I could not get it to display the five line box for some reason, though if I copied that code to an html file it did display as intended but not in WP?
BTW, near the end of that function, it has a <P> tag that doesn't appear to be related to anything and it doesn't close either as far as I can see.


regards, mikesz

nicholas.alipaz 05-01-2008 11:54 AM

Jafo, it looks like the directory I named earlier is correct minus the \forum.

F:\Domains\joomla

is what came up in my test. So is this the directory I should specify for $vwd? Or do I need the \forum part as well?

If so, won't this cause some issues with forward slashes versus back slashes? If so, what would I need to change?

As for the rest of the setup in Vbridge Settings:
For my Forum URL, should it be the root of my forum? i.e. - http://community.mysite.com/forum
Forum relative path would be: /forum

I am sorry for so many questions, it seems that things always seem to be so different on IIS and I just want to confirm these settings before I mess it up again. ;)

Thanks again for your time,
--
Nicholas

Jafo232 05-01-2008 12:09 PM

It looks like you uploaded that script into your Joomla directory.. Is that where wordpress is?


All times are GMT. The time now is 10:53 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.01949 seconds
  • Memory Usage 1,839KB
  • 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
  • (2)bbcode_code_printable
  • (8)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