Support Forum

Wishlist Member and Blog Post Linking

NS Neil Shearing
Neil Shearing
Member

Hi,

Thanks for creating Simple:Press. I recently upgraded for the support and some of the plugins, one of which was “Blog Post Linking”.

Initially, I couldn’t get “Blog Post Linking” to work with my setup which consists of WordPress, Wishlist Member and Simple:Press despite testing different permissions and user groups.

I then installed Simple:Press on another domain running on the same server, to test the server configuration. On the second domain, “Blog Post Linking” worked, so I figured it was most likely a problem with Wishlist Member on the original domain.

I then paid $47 to upgrade Wishlist Member to the newest version, thinking maybe that was the problem, but it didn’t help.

Finally, I disabled Wishlist Member and immediately “Blog Post Linking” started working and a link to the forum appeared when I edited my test post. I re-enabled Wishlist Member and even though the link to the forum on the test post didn’t disappear, a brand new test post didn’t have one created.

I don’t really want to disable and re-enable Wishlist Member each time I make a blog post.

Is this a problem between Wishlist Member and Simple:Press permissions, or is it something that needs a coding fix?

My server info is:
WishList Member v2.80 | Build 2119 | WordPress 3.9 | PHP 5.3.22 on litespeed

Thanks,

Neil Shearing.

22 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

We use both WishList Member and our Blog Linking plugin on this site with no apparent problem so the qyick answer is no – there is no conflict.

Now I am not a WishList expert by a long way but might this have anything to do with the way you are using WishList? I admit that we have only used it here, i believe, for posts that are NOT private or subject to membership but are open for all to read. Could that be the difference?

NS Neil Shearing
Neil Shearing
Member

Thanks for your reply.

So, just to clarify, you have the Wishlist Member plugin installed and active along with Simple:Press, but don’t actually use it to protect content?

Neil.

YS Yellow Swordfish
Yellow Swordfish
Member

If I recall correctly we protect just two pages. All of our standard ‘blog’ posts are public. This isn’t really what we use WishList for on this site…

YS Yellow Swordfish
Yellow Swordfish
Member

I already understood what was happening and was really just awaiting a definitive answer to my question in post 2 above. However, now I see from your video that indeed the post in question is being protected by WishList so I have to assume WL is stopping us from creating the forum topic and post. Which is the only logical explanation I think.

I can’t find a filter call in WishList that might account for it but I really do not know, of course, just what they do and how they intercept the post during the save process.

We can try one thing if you fancy trying put a small edit to the plugin code?

NS Neil Shearing
Neil Shearing
Member

Yes, I’m happy to make an edit.

I should mention, having the WishlistMember plugin active, even when I try to make a post without the content being protected, still stops the link to forum being created.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – I must start right out by saying I do not know if this will make any difference. It really depends, as I said earlier, on how WishList s intercepting the post. But we can try it and see.

So the file is in the forum-plugins location and by default that would be:

/wp-content/sp-resources/forum-plugins/blog-linking/sp-linking-plugin.php

Locate this block – fairly near the top:

add_action('save_post',                     'sp_linking_save_blog_link');
add_action('draft_to_publish',                'sp_linking_publish_blog_link', 10, 1);
add_action('future_to_publish',                 'sp_linking_publish_blog_link', 10, 1);
add_action('pending_to_publish',            'sp_linking_publish_blog_link', 10, 1);
add_action('new_to_publish',                 'sp_linking_publish_blog_link', 10, 1);

and change it to:

add_action('save_post',                     'sp_linking_save_blog_link', 1);
add_action('draft_to_publish',                'sp_linking_publish_blog_link', 1, 1);
add_action('future_to_publish',                 'sp_linking_publish_blog_link', 1, 1);
add_action('pending_to_publish',            'sp_linking_publish_blog_link', 1, 1);
add_action('new_to_publish',                 'sp_linking_publish_blog_link', 1, 1);

as I say – worth a try!

NS Neil Shearing
Neil Shearing
Member

Thanks for that. I edited the code. Unfortunately, the situation remains the same. A brand new post, unprotected or not, didn’t auto-create a link to the forum until I disabled Wishlist Member.

MP Mr Papa
Mr Papa
Member

will let Andy weigh in on his suggested changes… 

but curious why you are using wishlist to protect the forum?  with forum permissions, no need…  let the forum control who has access…  see:  http://codex.simple-press.com/codex/faq/problem-with-post-edit-buttonow-to/problem-with-post-edit-buttonow-to-configure-simple-press-with-membership-plugin/

wishlist and sp work great this way…  including blog linking as Andy said we use them here…

NS Neil Shearing
Neil Shearing
Member

That appears to be a valid solution. I had already seen the page you linked to, but assumed it had to happen within Wishlist protection. I’ll test what happens with the forum outside Wishlist protection. Thanks.

Neil.

MP Mr Papa
Mr Papa
Member

glad to help.  please let us know how you get along or if any questions along the way…

NS Neil Shearing
Neil Shearing
Member

When the forum is outside Wishlist control, guest visitors see…

“The requested group does not exist or you do not have permission to view it”

Is it possible to redirect guest users only to a different page on the website, such as a registration page, and have the forum work normally for those with access?

NS Neil Shearing
Neil Shearing
Member

I just made a test post, initially protected, then unprotected, and neither formed the automatic link to the forum, despite the forum being unprotected. So it appears than an active Wishlist Member plugin is still an issue for me.

YS Yellow Swordfish
Yellow Swordfish
Member

I have just been running some tests with WishList turned on trying to link with both a protected post and an  unprotected post. In both cases the lining worked as expected.

I also searched WishList code for the hooks that might effect post publishing in a plugin and could not, in fact, find any reference to them – simply reinforcing my puzzlement.

My first question would be – are you using any WishList plugins that might actually be responsible? And secondly – have you talked to WishList about this problem?