XenScripts WordPress to XenForo Bridge [Paid] [Deleted]

Between 20K and 30K visitors per day here and we have no issues with the bridge whatsoever with XF 1.2, its working as advertised.

Not saying I disagree with you about the support here, on the contrary, as I don't get it either why the modmaker is never around on the XF forums. But if your only holdback is if the bridge will work then dont worry: it does :)
 
Sorry for my absence. I've been busy with work and simply enjoying life.

WordPress 3.7.1, XF 1.2.3, and XenScripts are tossing an error in the server log which I am trying to track down. I'll start a thread in another area here to see if someone can help.

The error is related to the function is_user_logged_in() and xmlrpc in WordPress.

Otherwise, I've only upgraded tonight and will tinker with things to see if everything is working.

Have a great evening.
 
Is anyone willing to test out some code?

I made a change to one of the functions so that remote publishing is possible. I'm not sure of the dangers involved because the credentials for logging into the WordPress site involved using the WordPress user table and not the XenForo xf_user table. This means things may blow up in our faces ;)

Please send a private conversation if you are interested in trying the code change.
 
Sorry don't get me wrong, but are you the author of this mod now? Confused. :)

Hi

I'm sorry to cause any confusion. Let me explain. I am not Jamie, however, I've written a few snippets and rearranged some of the code now released as the last version available for download. Unfortunately I've been very busy with teaching and have not coded. Over the weekend, though, I worked through a few more issues and am willing to discuss the changes with anyone who has a license. If this code works then I am willing to submit it to Jamie, who has the final say on putting the code into the plugin.

Here are some samples of ideas ...

http://www.tuxreports.com/community/resources/categories/xenforo.12/
 
Last edited:
XenScripts Plugin Diagnostics 1.0.webp

Wrote an admin page for diagnostics. I was tired of trying to figure out some of the information. This could also help those trying to figure out why something is going wrong. There are two more sections to the page which are not included in the image. This is just a taste of what is on the page ;)

My guess is that some of this code could be used in the setup of the plugin to help during the installation.

Thanks to @xf_phantom for helping with the path to XenForo as well as XenForo version.

The author of the plugin has the final say if this makes it into the next release.

This code is not standalone and requires the XenScripts plugin.
 
My guess is that some of this code could be used in the setup of the plugin to help during the installation.
+Winning / Great idea.

This helps avoid so many problems.
  • Such and such doesn't work because of a trailing \
  • Such and such doesn't work because of a missing trailing \
  • You needed to type in the relative path to another directory.
  • URL won't work unless you add http://
  • Manually typing in things which should be easily discoverable.
  • etc etc etc.
 
  • Like
Reactions: LPH
Right, think I have the right addon space now...

I have had this excellent addon functioning on my site for about a year now, however this morning I updated Word Press using the auto-update feature. Since this time the forum works normally, but I can only access the Blog if not logged in.

If I am logged in then all blog pages and the dashboard pages are blank.

The version of WP under which the plugin worked: 3.4.2

Current version of WP after upgrade: 3.7.1

I have been able to get dashboard access by doing as you suggested and now that the plug-in is disabled the site is functioning normally (apart from only being able to log-in to WP with users created directly in the WP user table).
 
Right, think I have the right addon space now...

I have had this excellent addon functioning on my site for about a year now, however this morning I updated Word Press using the auto-update feature. Since this time the forum works normally, but I can only access the Blog if not logged in.

If I am logged in then all blog pages and the dashboard pages are blank.

The version of WP under which the plugin worked: 3.4.2

Current version of WP after upgrade: 3.7.1

I have been able to get dashboard access by doing as you suggested and now that the plug-in is disabled the site is functioning normally (apart from only being able to log-in to WP with users created directly in the WP user table).

There were significant changes to the pluggable.php file for user information in WordPress 3.5 and beyond. This caused a problem in this script. Luckily the fix is easy!

1. Open xf_replacement_user_functions.php
2. Replace your function get_userdata (NOT get_userdata_by function) with the following

PHP:
function get_userdata( $user_id ) {
 global $wpdb, $XF;

 if ( ! is_numeric( $user_id ) )
 return false;
$user_id = absint( $user_id );
 if ( ! $user_id )
 return false;
$user = wp_cache_get( $user_id, 'users' ); //check to see if the cache object already has the user
if ( $user ) {
 return $user; //it was in the cache}

$user = new WP_User( $user );
// $user = new StdClass; 
XF_User_Data::fillUserData($XF->visitor, $user, $user_id);
update_user_caches($user);

 return $user;
}

3. Save this file.
4. Upload the file.
5. Clear your browser cache.
6. Load site.
7. Login.
 
Please check xf_integration_object.php file ... near line 23. You should see this code:

Code:
  //cache of comment numbers
   protected $commentnumbers;

Now, look closely at numbers. Is it spelled correctly in your copy? Is the "r' present?
 
I will write up the instructions tomorrow, but what if you want to see the XenForo thread_id in your WordPress admin panel?

Now you can! The 3, 2, and 1 shown are the thread IDs for XenForo ... seen in the WordPress column from my test environment.

Screen Shot 2013-12-01 at 12.06.58 AM.webp

Why do I want this feature? Next up - some day - I'd love to get this so that I can change the thread_id right from that location. Imagine being able to change the thread tied to the WordPress post - ;) It's a challenge for me whenever I make a WP post and forgot to choose the category, etc .. and so no thread is created. Currently I have to go into phpMyAdmin and set the thread_id manually . ... Love to be able to do this within the panel .
 
There were significant changes to the pluggable.php file for user information in WordPress 3.5 and beyond. This caused a problem in this script. Luckily the fix is easy!
Many thanks for your reply.

Unfortunately this isn't working for me. I was careful with my file edit and not only cleared my cache, but also tried it on a newly installed browser which had never accessed the blog before. But I am still getting the blank page when the plug-in is enabled.

I have uploaded the file you asked me to edit as I am wondering if in the period between our purchase of the app today there has been an update an the files I have aren't current.

Thank you,
 
Last edited:
question, is there anyway to allow authors/editors (wp users in general) to pick/use their nickname like wp lets you do normally... with the plugin enabled, we can't edit anything having to do with user info so we can't set what nickname to display... is there anyway around that?
 
question, is there anyway to allow authors/editors (wp users in general) to pick/use their nickname like wp lets you do normally... with the plugin enabled, we can't edit anything having to do with user info so we can't set what nickname to display... is there anyway around that?
User management is handled by Xenforo.
I think you would change it in Xenforo.
Xenforo doesnt have nicknames, so you probably are out of luck.
 
question, is there anyway to allow authors/editors (wp users in general) to pick/use their nickname like wp lets you do normally... with the plugin enabled, we can't edit anything having to do with user info so we can't set what nickname to display... is there anyway around that?

This depends on if these authors/editors are also present in the WP database. If yes, then try this in your theme and see what is returned:

Code:
$current_user -> $user_login

I'm not home (but sitting at a diner eating a bowl of chili ...) but when I get home then I can look at the backend I've written for diagnostics.

Another possibility is to add an XF custom field and use it as a display name or if they use their username on twitter .. use it ... or ... let me look at the possibilities.
 
Is anyone aware of any WP plugins this bridge might conflict with? I'm only asking because I noticed the other WP bridge noted W3 Total Cache causes issues with theirs.

Thx
 
Is anyone aware of any WP plugins this bridge might conflict with? I'm only asking because I noticed the other WP bridge noted W3 Total Cache causes issues with theirs.

Thx

There is a list on the XenScripts website but I cannot find it right now. Caching is always an issue. I use Quick Cache and it seems to work. WP Super Cache never worked right for me. I never tried W3.
 
Back
Top Bottom