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 linking plugin - regenerate posts / comments
Avatar
Thibault Guyot
Rookie
sp_UserOfflineSmall Offline
Oct 22, 2015 - 7:18 am

Hi everybody,

I'm not sure I'm posting in the right place, but hope so.

I'm managing a website of press news in France and using the simple press forum with WordPress.

 

We recently installed the "blog post linking" simple press plugin and ran into several issues / questions :

1. When using the scheduling blog post feature in WordPress, the forum topic is not created when the publishing date comes, I need to modify the blog post manually and then save again afterwards to create the topic.

 

2. I got something like 3k+ articles published on my website with a lots of comments (10k+) and I was wondering if there was a way (or just some tips) to re-create all the associated topics and forums replies. If you have any advice about how to achive that.

 

3. We're also using extensively "taxonomy" in wordpress and simple press plugin "Template Tags and Widgets" to "tag" forum topics with the taxonomies we're using in the articles of the site and we wanted to customize the automatic creation of the forum topic so it's using the taxonomies of the originating article as tags in topic. How can we modify the automatic topic creation to add new features such as the one explained above ?

 

If you can share any info / insights about these questions, it would greatly appreciated.

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 22, 2015 - 9:27 am
  1. I am unable to reproduce any problems with scheduled posts and must also say that we have no other reports of any failures at this time. The plugin uses WordPress filter/action hooks to fire the topic creation on scheduled blog post save. Is it possible that you have other third-party hook usage active that may be stopping the topic creation code from running?
  2. The only thing that comes to mind would actually be to make coded calls to the filter/action hooks that Blog Linking uses and let it respond accordingly. I have not tried this of course but the theory is probably workable. It would need  a lot of support code loaded. And it would need to be donei n fairly small numbers at a time.
    It must be noted also that any topics created from old blog posts will shop up in the forums with the date and ordering in which the actual forum posts are created. There is basically no way around this.
  3. It should be a fairly straightforward task to write an action hook that will create forum tag entries based on blog post categories (or tags come to that). I am sure we could advise on that if you decide to try it at some point.
andy-signature.png
YELLOW
SWORDFISH
Avatar
Thibault Guyot
Rookie
sp_UserOfflineSmall Offline
Oct 23, 2015 - 9:53 am

1. It seems that the problem comes from an incompatibility between blog linking and nextscript plugin who publish schedulded post on facebook and twitter. Did you encounter this kind of issue before ? Could you give me some leads if you have regarding this kind of problem ?

Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 23, 2015 - 10:12 am

That's a new one on me I am afraid. No other reports.

However - we blog link al of our posts on this site and we use a plugin called 'Social' that sounds like it does the same thing - and we have no noticeable problems. Although I admit I have not yet tried it with a scheduled post....

And = it might just be that the ordering of the actions hooks would help - i.e., move the forum action hooks to trigger before the other plugin hooks. Do you know how to check the ordering of hooks?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thibault Guyot
Rookie
sp_UserOfflineSmall Offline
Oct 23, 2015 - 10:18 am

Thanks for the answer.

Unfortunately i don't kown : please guide me on how to check the ordering of hooks 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 23, 2015 - 3:15 pm

I would assume the tiw that might want to be examined are:

add_action('future_to_publish'....
add_action('pending_to_publish'....

which I would think you will find somewhere in the other plugin's code. If you can find those, paste here the entire function call sop we can see what sequence they are using.

Sorry - but there is no real alternative to looking at the code files unless you ask the plugin authors themselves.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thibault Guyot
Rookie
sp_UserOfflineSmall Offline
Oct 28, 2015 - 12:44 pm

Concerning the last problem, i turned off the CM tooltip GLossary plugin with which i had some other issues. Now plannification works with nexscript and simple press linking post working together.

 

Unfortunately i have another problem :

 

I created a form by hand on the "front" of my site with which users writes posts. I wish that whenever they publish those post linked topic would be created in simple press's forum.

The form uses a 'POST' method which uses the wp_insert_post and wp_update_post from wordpress.

My worrie is that when users use those forms and a post is published no linked entry is added to the forum.

Nevertheless 'save_post', 'pending_to_publish' [...] hooks  from wordpress are executed when wp_update_post or wp_insert_post function is used

How can i linked blog linking functions to my form ?

 

I try to put the status of my article in 'future' with a scheduled date and I still have the issue.

Even when I desactivate all the plugins.

 

Could you shed your lights on my problem

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 28, 2015 - 12:49 pm

Without going all through the same process to setup a test scenario I can't be sure - but an initial guess would be that your form is missing the 'Link to Forum' post form and thus the required post variables. Does that sound likely?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thibault Guyot
Rookie
sp_UserOfflineSmall Offline
Oct 29, 2015 - 5:15 am

Maybe, how can i had these 'Link To Forum' variables to my form ?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 29, 2015 - 7:25 am

The form is initialised using the WP  'admin_init' action hook. I am unsure why this hook - it has been a long time - and I will investigate that curiosity. So that is probably no good. You could try adding some sort of do_action() hook to your form and setting up an add_action() call. That would need to invoke the sp_linking_blog_link_form() SP function.

However - that forum is set up to display in a WP meta box. You may be better off adding raw form code to your own form. That would need the sp_populate_post_form() function in the blog linking 'forms' folder.

Remember - I am still unsure of it would work. You might still need to 'include; some code files. We have never tried this.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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