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)

Jafo232 02-15-2009 01:20 PM

Quote:

Originally Posted by Fraik (Post 1744659)
Just one problem thus far. I use excerpts for my forum comment posting and for some reason the link looks like this:

http://www.middleearthcenter.com/unc...ed/%postname%/

It gets the category right, but it doesn't have the right URL for the post name

Hmm, could you do a quick test and see if that happens when you have permalinks off?

Jafo232 02-15-2009 01:22 PM

Quote:

Originally Posted by joeymuk (Post 1744749)
Ah, I'm pretty new to vb.

I've found the global.php file, do I just add "$vbulletin;" to it somewhere? If you could provide me with steps I'd really appreciate. (I've never been so lost) lol

In Wordpress, once you have auto-integrated, if you want to use the $vbulletin object, it should be available to you just about anywhere, but you will probably have to globalize the object first:

Code:

global $vbulletin;

echo "Welcome " . $vbulletin->userinfo['username'];


joeymuk 02-15-2009 01:26 PM

Quote:

Originally Posted by Jafo232 (Post 1744837)
In Wordpress, once you have auto-integrated, if you want to use the $vbulletin object, it should be available to you just about anywhere, but you will probably have to globalize the object first:

Code:

global $vbulletin;

echo "Welcome " . $vbulletin->userinfo['username'];


I think I'm confusing you.

What I mean is how would I achieve this? http://www.poetryartonline.com/forums/ I know this ipb and the two systems are diffrent but with subdreamer it integrates the forum into the sd skin, I'm wondering how I can do the same but with your script. Have my VB forum displayed inside the wordpress theme?

Fraik 02-15-2009 01:43 PM

Quote:

Originally Posted by Jafo232 (Post 1744836)
Hmm, could you do a quick test and see if that happens when you have permalinks off?

It works fine with permalinks off. Perhaps its because I use a custom permalink structure?
Code:

/%category%/%postname%/

Jafo232 02-15-2009 02:06 PM

Quote:

Originally Posted by joeymuk (Post 1744842)
I think I'm confusing you.

What I mean is how would I achieve this? http://www.poetryartonline.com/forums/ I know this ipb and the two systems are diffrent but with subdreamer it integrates the forum into the sd skin, I'm wondering how I can do the same but with your script. Have my VB forum displayed inside the wordpress theme?

Yeah, most likely that is a custom mod. These are things outside of the scope of this plugin. Basically from what I see though, they are just making it LOOK like it is inside, but the code is custom.

Jafo232 02-15-2009 02:06 PM

Quote:

Originally Posted by Fraik (Post 1744860)
It works fine with permalinks off. Perhaps its because I use a custom permalink structure?
Code:

/%category%/%postname%/

I will try to get some time tonight to look at this. I will let you know what I find. :)

remotay 02-15-2009 03:50 PM

Great plugin, one serious problem. I upgraded from your previous release, and BAM all of a sudden my admin account does not exist. All of the Accounts made on vbulletin exist, but NOT my previous admin account. Infact, I had three wordpress admin accounts, all of which did not work.

Upon deleting the Vbbridge.php file, it now works again. Before I re-enable, I would love some input from the developer. I have the users mapped so Administrators on the forum are NOT administrators on Wordpress. I Want to have seperate admin accounts on both.

Jafo232 02-15-2009 04:12 PM

Quote:

Originally Posted by remotay (Post 1744975)
Great plugin, one serious problem. I upgraded from your previous release, and BAM all of a sudden my admin account does not exist. All of the Accounts made on vbulletin exist, but NOT my previous admin account. Infact, I had three wordpress admin accounts, all of which did not work.

Upon deleting the Vbbridge.php file, it now works again. Before I re-enable, I would love some input from the developer. I have the users mapped so Administrators on the forum are NOT administrators on Wordpress. I Want to have seperate admin accounts on both.

Yeah, once you switch integration on, it bypasses all of the Wordpress user and authentication processes, so if you want separate admin accounts, then you will have to leave integration off.

remotay 02-15-2009 04:27 PM

I don't plan on using the Vbulletin comments, or posting my Wordpress posts on Vbulletin, so if I turn integration off, Will I still be able to share users? That's the primary thing I want from the plugin.

Thank you for the quick reply. :)

Jafo232 02-15-2009 05:12 PM

Quote:

Originally Posted by remotay (Post 1745033)
I don't plan on using the Vbulletin comments, or posting my Wordpress posts on Vbulletin, so if I turn integration off, Will I still be able to share users? That's the primary thing I want from the plugin.

Thank you for the quick reply. :)

Integration has to be on to share users (that is what integration is :) ). In other words, you can't share just SOME users. It is either all or nothing. :)

I suppose if you edit it a bit you could have it turn the plugin off for certain users from certain IP addresses or other such criteria, but I have not included such code to date.

laztrix 02-15-2009 05:51 PM

Quote:

Originally Posted by Jafo232 (Post 1744832)
Import post INTO wordpress? This plugin does not do that. It will EXPORT a wordpress post to Vbulletin.

I have no idea why your WYSIWYG editor would disappear. Do you have a special non-stock version of the editor installed?

:) My bad, I thought that it works the other way, that post on forum will be shown in wordpress page, sorry for that.

About the other issue, it is a Turkish tranaslation of Wordpress but that shouldn't be a problem, should it ?

It is the standart, identical translation of wordpress ( http://www.wordpress-tr.com/indir/ )

ScreenShot:
http://img14.imageshack.us/img14/726...9diviksih0.png

RobInjection 02-15-2009 05:56 PM

Great plugin! I just tried upgrading (overwriting the previous files) and my admin privileges to my Wordpress back end have been stripped. When i try to go to /wp-admin/ I get the "You do not have sufficient permissions to access this page." error.

I tried logging in as the super admin account I have set up and I still get this error. I'm completely locked out. Any advice?

RobInjection 02-15-2009 06:05 PM

Also, while I have you here, is there any way to call the user's Avatar and User ID in WP? I would love to link to user profile pages within WP comments.

Fraik 02-15-2009 07:00 PM

Quote:

Originally Posted by RobInjection (Post 1745139)
Great plugin! I just tried upgrading (overwriting the previous files) and my admin privileges to my Wordpress back end have been stripped. When i try to go to /wp-admin/ I get the "You do not have sufficient permissions to access this page." error.

I tried logging in as the super admin account I have set up and I still get this error. I'm completely locked out. Any advice?

Try re-naming the plugin files via FTP. This should disable the plugin and let you back in...

RobInjection 02-15-2009 07:09 PM

Yea, that works. But then when I try to reactivate it, the same thing happens again.

Shana 02-15-2009 07:14 PM

Yeah, how would you reset all the settings? You should put that in your readme, btw, lol.

Jafo232 02-15-2009 07:22 PM

Quote:

Originally Posted by RobInjection (Post 1745193)
Yea, that works. But then when I try to reactivate it, the same thing happens again.

It sounds to me like you did not map users first? Remember, you are logging in as your VBULLETIN admin user, not Wordpress. As long as the plugin is active, it uses the VBulletin user info.

If you want to map users after the fact it is little involved (which is why I make a point of it in the readme :) ). You need to edit the options table and set the vbion variable to 0.

If I get some time here tonight or tomorrow, I will try to write up a script to reset the script so you can activate it again and start over.

Shana 02-15-2009 07:29 PM

You never mentioned that the users would remove the admin account, lol.

Jafo232 02-15-2009 08:03 PM

Quote:

Originally Posted by Shana (Post 1745206)
You never mentioned that the users would remove the admin account, lol.

Remove the admin account? No accounts are removed, they are replaced. When you disable the plugin, the users are still there.

Shana 02-15-2009 08:17 PM

The admin account shouldn't be replaced under any circumstances, it's the original and has all the settings / permissions, no? I put all users as 'regular users' assuming the admin account would be there. I cannot disable the plugin and re-enable it as the settings are still there.

It would be nice if the admin account stayed while the others were imported.

RobInjection 02-15-2009 08:24 PM

I had the plugin working fine before. Then I upgraded and it took away my WP access. I did not see any instructions to re-map users when upgrading :(

Jafo232 02-15-2009 09:02 PM

Quote:

Originally Posted by Shana (Post 1745249)
The admin account shouldn't be replaced under any circumstances, it's the original and has all the settings / permissions, no? I put all users as 'regular users' assuming the admin account would be there. I cannot disable the plugin and re-enable it as the settings are still there.

It would be nice if the admin account stayed while the others were imported.

Unfortunately, the Wordpress engine is not built that way. If you read a couple posts back, I show you how to disable the settings.

RobInjection 02-15-2009 09:03 PM

Woohoo, thanks for the tip about editing my database. I got it working.

Now my question is, is there any way I can call the user's avatar and their User ID within Wordpress? Then, this would be bliss!

Thanks

Jafo232 02-15-2009 09:03 PM

Quote:

Originally Posted by RobInjection (Post 1745268)
I had the plugin working fine before. Then I upgraded and it took away my WP access. I did not see any instructions to re-map users when upgrading :(

You do not have to remap users. Are you sure you are logging in with a VB user that is an administrator?

Jafo232 02-15-2009 09:08 PM

Quote:

Originally Posted by RobInjection (Post 1745301)
Woohoo, thanks for the tip about editing my database. I got it working.

Now my question is, is there any way I can call the user's avatar and their User ID within Wordpress? Then, this would be bliss!

Thanks

Yes, you can. Make sure $vbulletin is global (global $vbulletin;) then:

Code:

<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $reply['userid'] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">
Or if you mean the article AUTHORS avatar:

Code:

<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $vbridge[thread_starter] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $vbridge['postusername'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">

RobInjection 02-15-2009 09:41 PM

Awesome thanks.

I just noticed that all my users have been mapped to be Administrators.

This is really weird, because in the settings page the only Users that I set to map to anything were Admins to Admins.

Did I do something wrong?

RobInjection 02-15-2009 10:05 PM

Just to add to what I posted above,

All of my Wordpress users have been remapped. The plugin is causing WP to remap usernames to user IDs, resulting in all my post authors being changed.When I search for a user in WP the result would be a different user who is now occupying the 1st users previous ID.

Any idea why this is happening?

AzzX 02-15-2009 10:19 PM

1 Attachment(s)
I just noticed I have lost the Visual editor in Wordpress with the plugin enabled, disabling the plugin it comes back. See attached image.
I have tried disabling all my other plugins to find a conflict but couldn't find an issue.

The user list in Wordpress shows up as blank invalid users though the bridge is working fine using a vb admin. Is this OK?

Thanks.

RobInjection 02-15-2009 10:30 PM

Can you explain to me where I should declare the global $vbulletin?

I put this code into my comments section and it didn't work. It didnt grab any vB references.

Code:

<?php global $vbulletin; ?>

<?php echo $vbulletin->userinfo['username'] ?>'s

<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $reply['userid'] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar">


remotay 02-16-2009 01:56 AM

Another serious issue, Perhaps it's because I'm upgrading....

Upon enabling the new version of the Vbulletin bridge, ALL of my Wordpress users show as 'administrator' on wordpress. I have them mapped to become 'subscribers'. The only users mapped to be admins are Administrators.... I Had to disable the plugin for security purposes. Ugh >_>. Any suggestions on getting this to work properly now...?

AzzX 02-16-2009 06:31 AM

Quote:

Originally Posted by AzzX (Post 1745355)
I just noticed I have lost the Visual editor in Wordpress with the plugin enabled, disabling the plugin it comes back. See attached image.
I have tried disabling all my other plugins to find a conflict but couldn't find an issue.

The user list in Wordpress shows up as blank invalid users though the bridge is working fine using a vb admin. Is this OK?

Thanks.

If I upload vbbridge.php from the previous bridge vbbridgeIII the wysiwyg visual editor is fine and users are displayed properly in wp-admin. I have also tried the default Wordpress theme to see if this was an issue.

Shaliza 02-16-2009 07:39 AM

I'm way too scared to upgrade now, lol. I got this working perfectly from the 3.7 post before!

laztrix 02-16-2009 11:31 AM

Quote:

Originally Posted by AzzX (Post 1745663)
If I upload vbbridge.php from the previous bridge vbbridgeIII the wysiwyg visual editor is fine and users are displayed properly in wp-admin. I have also tried the default Wordpress theme to see if this was an issue.

I had the same issue when I set up the bridge.

So I tried something else:

I configured a working blog of mine that already has posts, comments and users for the blog that I want to bridge with Vbulletin.

As soon as I activate the bridge all the pages went blank!

I had to delete the plugin files to get it normal again. But this time when I upload the same files, wordpress goes blank.

Can anyone help me out with that !

wmlvb 02-16-2009 12:06 PM

great mod. will difidnitly look into this more

Can you tell me is there a wordpress addon that not just RSS feed titles, but actually puts Characters of most recent post from certain forums.

skariko 02-16-2009 01:37 PM

Do you know how can i have the link to logout with VBulletin link, using global $vbulletin?

Fraik 02-16-2009 04:04 PM

I am having a serious problem with the upgrade from the old to the new version. All of the old accounts that I had given a role have different names in the admin area. However people can log-in with their old permissions fine. It just doesn't seem to have their name right in several areas.

In the users listing, all my users have a role of "administrator" in the "ALL" tab. However, there are only 8 administrators in the "Administrator" role-tab. These administrators do have the wrong names though.

I was thinking perhaps I should delete all wordpress accounts save for a root admin account I can use? Then re-activate the plugin and re-map all the users?

Also the WYSIWYG editor is disabled for some reason.

laztrix 02-16-2009 04:43 PM

Quote:

Originally Posted by Fraik (Post 1746014)
Also the WYSIWYG editor is disabled for some reason.

That was the same deal with my installation.Another user did report the same issue.
I think that wouldn't be a coincidence.

skariko 02-16-2009 09:13 PM

Quote:

Originally Posted by Jafo232 (Post 1745308)
Yes, you can. Make sure $vbulletin is global (global $vbulletin;) then:

Code:

<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $reply['userid'] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $reply['username'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">
Or if you mean the article AUTHORS avatar:

Code:

<img src="<?php echo get_option('vbb_VBURL') ?>/image.php?u=<?php echo $vbridge[thread_starter] ?>&amp;dateline=<?php echo TIMENOW ?>" alt="<?php echo $vbridge['postusername'] ?>'s Avatar" class="avatar avatar-32 photo avatar-default" width="32" height="32">

I tried this but the link that i have is:

http://www.czeta.it/forum//image.php...ine=1234825805

without the number of the user. (it takes all the other variables like vbb_VBURL and other so i think that there's somthing wrong on user_id)

edit: i've solved it making this:

Code:

<img src="<?php echo get_option('vbb_VBURL') ?>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="32" height="32"
i don't know if it is right.. but it works to me :P

Shana 02-17-2009 12:51 AM

Quote:

Originally Posted by Jafo232 (Post 1745299)
Unfortunately, the Wordpress engine is not built that way. If you read a couple posts back, I show you how to disable the settings.

Could you please explain how we would disable and enable the plugin with the settings reset? I can't find it.

AzzX 02-17-2009 05:41 AM

Quote:

Originally Posted by Shana (Post 1746417)
Could you please explain how we would disable and enable the plugin with the settings reset? I can't find it.

I think Jafo was looking into doing a script that does this.
I just renamed the vbbridge.php file and deleted the plugin references in the wordpress database via phpmyadmin.


All times are GMT. The time now is 03:11 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.02098 seconds
  • Memory Usage 1,856KB
  • 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
  • (10)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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