Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Blog post linking not automatically adding new topics
Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 3:49 pm

The blog post linking plugin isn't automatically creating posts when the posts are published. It seems inconsistent; it worked once, but two posts were published that weren't added to the forum.

When the post is created and saved, it shows that it's linked to a forum post. However, when it publishes, it no longer shows a link. If I were to edit the post and update it - even if I don't change anything - then the forum post will be created.

I really need this to work automatically, as it was the big selling point for using simple press.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:05 pm

Can you explain a little what you mean by this bit...

When the post is created and saved, it shows that it’s linked to a forum post

How is it shown please?

This kind of a problem with the Blog Linking plugin is virtually unheard of and it is, of course, one of our most popular. The only thing that comes to mind is that there is always the possibility that you have another plugin that performs certain tasks when a new blog post is published and it and ours may be in some sort of contention. Do you have anything installed that may perform such tasks - and that means anything at all that may be related to blog post publishing?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:21 pm

Sure thing Andy. When a post is saved and set to publish, in the post list under the "forum linked" column it will say "Linked to forum: TFLtruck Posts." However, after it's published, that will disappear from the post list (the column is blank) and the forum topic isn't automatically created.

However, if I edit the post after it's published and update it, the forum topic will be created and the "forum linked" column will be populated.

I was searching around your forum and I found a similar topic, https://simple-press.com/suppo.....-comments/ where it seems that there is an issue with NextScripts SNAP plugin. I use that on my site, too, which might be part of the problem. You had responded asking for the list of hooks. I can provide that if you like.

Thanks for your help on this. You mentioned in the other post that for this forum, you use the Social plugin. I'm going to investigate that as a potential option if we can't get the blog post lining working with SNAP.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:30 pm

Gosh! Good find. I started to remember as I started to read the thread.

Yes - if you can pass us the code where those hooks are used then we can try a couple of things... See what happens - for example - if we ensure the blog linking process gets done first...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:43 pm

I've attached the plugin code that adds all the actions. It's actually the main php file renamed as a txt file. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:58 pm

Well let's give this a try. Find the code:

add_action( 'transition_post_status', 'nxs_snapLogPublishTo', 10, 3 );

in that plugin. There are two - I probably don't need to tell you that you need the one that is NOT commented out 🙂

Try changing that 10 to, say, 15... That will ensure this it gets processed after the blog linking code....

andy-signature.png
YELLOW
SWORDFISH
Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 6:45 pm

I made the change. I'll let you know if it works when we publish our next post.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 9:37 pm

okay, please let us know..

Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 29, 2016 - 7:45 am

It didn't work. A post published this morning and the forum topic wasn't linked or created.

Avatar
Roman Mica
Member
Free Members
sp_UserOfflineSmall Offline
Jan 29, 2016 - 10:29 am

Something else is amiss, too. The forum comments aren't showing up in the blog post comments properly. Check out the comments in this link and you'll see what I mean: http://www.tfltruck.com/2016/0.....ing-video/

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625