XenScripts WordPress to XenForo Bridge [Paid] [Deleted]

Showcase and a few other add-ons that I own add fields to the xf_user database. I do not know how to do this but it makes sense that custom fields such as google profile need to be added to this bridge. I'll put it on the "to do" list but this is out of my scope of knowledge. Jamie might have some ideas.

Update: After thinking a moment, I know how to add a field to a database because this script adds a thread_id to the WP database. My initial thought was ... there might be an alternative way. Jamie has a php comment in that area to support WP profile information available in the future.

So currently you are not aware of a way to pull a custom user field from XF and store it in the WP database? Ok thanks.
 
@lph - can you help me out with something I am trying to achieve. Since after the integration the WP profile is inaccessible, I am not able to insert the author google plus profile into their posts. Would it be possible to save this URL into XF and then call it from the user posts?

Or any other suggestions to do this?

I am also looking to be able to show custom user fields in WP posts too, would be great if this was supported.
 
  • Like
Reactions: LPH
No promises but these are features listed in the Things To Do.

Sorry, user sync is not on the list. Of course, if someone else figures this out then please step forward. :whistle:

XenScripts 1.3 alpha Admin Panel TTD.webp
 
No promises but these are features listed in the Things To Do.

Sorry, user sync is not on the list. Of course, if someone else figures this out then please step forward. :whistle:

View attachment 48593
User sync like what the other XF-WP bridge does where it adds the XF user to the WP database? That way you won't have addon issues plus if you ever decide to drop the bridge you aren't stuck?
 
User sync like what the other XF-WP bridge does where it adds the XF user to the WP database? That way you won't have addon issues plus if you ever decide to drop the bridge you aren't stuck?

It looked to me like they were having the same issues with caching plugins. The password setting on import into WP is also an issue. There were discussions in another thread regarding that sync and passwords would be an issue. In fact, as someone pointed out, XF 1.2 will be changing the password functions. So any work would need to wait until after learning more about XF 1.2.

Sorry.

Updated for clarity.
 
  • Like
Reactions: DBA
Still not satisfied with the look. The text is definitely in need of clarity. Let me know if you have any suggestions.

The key is to make room for more options ...

XenScripts 1.3 alpha Admin Panel Comment Settings Page.webp
 
Having tried implementing the bridge, the more i believe the user sync is essential for compatibility, so many plugins rely on the user data in WP, just changing the user_id in wp_user & wp_posts to match the id's in XF unfortunately does not resolve all compatibility issues, therefore the user user sync and a manual mapping for current WP users would be really useful,

This could probably be done on a separate settings page of the plugin where it reads the user name and users id from both the wp_user table and the xf_user and allows the user to override the automatic mapping of the user id's.

This data then could then be read to provide the mapping for synchronisation of the tables, references for all types of data (posts, customs fields, other) to correctly identify the user in either system. where the user is new on both XF & WP, a new user could be created in both DBs with synchronised ids say from ID 1000 onwards...

Just my thoughts but it would really help compatibility, if anyone knows how to technically implement the above it would be great if you could share your thoughts!
 
There is user sync code in this bridge, along with a 'fakedpassword' for placing an XF user not matched in the WP database into the wp_user table. This code could be expanded but it's above my pay grade. As Mart456 stated - maybe someone could share some code to get it to work.

Just for clarity --- The admin panel was planned to be expanded so that more features could be added. For example, version 1.3 has a separate user settings page. I'm running into problems, though. Options are not being set properly. More important, the WordPress plugin books I have, searches in Google, and just tinkering are not helping solve the issues. This is why I stated - no promises.
 
Just realized, I can't even show About Author (description) when using this plugin, unless I am missing something. The basic fields should at least map in future version.
 
Just realized, I can't even show About Author (description) when using this plugin, unless I am missing something. The basic fields should at least map in future version.

What would be ideal would be an author bypass. If they implemented that along with support for canonical linking, I'd consider using this plugin again.
 
Just realized, I can't even show About Author (description) when using this plugin, unless I am missing something. The basic fields should at least map in future version.

This definitely works. because I have it on my sites showing fine.

First, enter information into the about you /account/personal-details (XenForo - not WP)

Second, make sure that your WordPress theme has the author-description information

PHP:
<?php the_author_meta( 'description' ); ?>

I suspect it's the first step you are missing ... but ... I've been known to be wrong :eek:
 
What would be ideal would be an author bypass. If they implemented that along with support for canonical linking, I'd consider using this plugin again.

I'm sorry. Please clarify what you mean by an author bypass. What are you trying to accomplish?

Specifically where do you want canonical linking? WordPress posts placed in XenForo are now trimmed so that there is no longer duplicate content. The look is the same as the resource manager first post in a thread. Were you thinking somewhere else?
 
Just came back to reply that it works and noticed your post too. I guess we can get other custom fields to work the same way then?

I have not tried this (sorry - I don't multitask - but switch) - but --

Within your WP theme, make a call to any item stored in the XF database.

For example, to get alerts, I use:

Code:
$XF->visitor->get('conversations_unread')

I'd have to dig into XF but maybe this would get you started. Then you can share with us ;)

Of course, if I get done with my current task then I'll look into this one.

I'd love to be able to pull an author's number of likes, ratings, number of posts in forum, etc .... sort of like how the forum shows to the left of each post .. that would be nice in what becomes available in the WP theme comments area.
 
I'm sorry. Please clarify what you mean by an author bypass. What are you trying to accomplish?

Specifically where do you want canonical linking? WordPress posts placed in XenForo are now trimmed so that there is no longer duplicate content. The look is the same as the resource manager first post in a thread. Were you thinking somewhere else?

Have an author group that would not be managed by XenForo. When using the plugin, you would have to edit the username of the XenForo user, since it was used as the author name. It also required some heavy mySQL lifting (if I recall correctly) in order to properly associate users. By having a select author group that would bypass the plugin, it doesn't drastically affect my current workflow. Authors would still login to Wordpress directly, bypassing the XF/WP plugin.

When I had the plugin installed, forum posts (even truncated) would outrank the original post on the blog. If there was a canonical link, that would tell Google that the actual source is the blog.
 
@cmeinck

Replaced post

I think a better approach is to get the plugin behavior to not interfere with other WP plugins. Instead of what I was thinking. Since I don't use user sync then I'll have to play with it locally. Maybe others can chime in. After all, I'm just learning :D
 
Last edited:
When I had the plugin installed, forum posts (even truncated) would outrank the original post on the blog. If there was a canonical link, that would tell Google that the actual source is the blog.

rel=canonical is in the head of the XenForo style.
 
Last edited:
User sync like what the other XF-WP bridge does where it adds the XF user to the WP database? That way you won't have addon issues plus if you ever decide to drop the bridge you aren't stuck?

It's worth noting that this is already available as an experimental feature within the plugin. There's a checkbox on the settings page to enable it, it just comes with a warning to only use it if you know what you're doing as it can really screw with your wp_user table (i.e. take careful backups before using it, please). Might be worth trying if you're having problems with other addons.
 
It's worth noting that this is already available as an experimental feature within the plugin. There's a checkbox on the settings page to enable it, it just comes with a warning to only use it if you know what you're doing as it can really screw with your wp_user table (i.e. take careful backups before using it, please). Might be worth trying if you're having problems with other addons.
Hmm was not aware of this, I'll have to check it out.

Just to clarify, this will keep the users in wp if I were to disable/remove this plugin?
 
Back
Top Bottom