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 - Categories
Avatar
Jamey Turcic
Member
Free Members
sp_UserOfflineSmall Offline
May 13, 2013 - 3:05 pm

Hello.  We have a forum setup, that has "Create and link blog post from topic" option enabled for all users (and all site members have publish permissions).  I have modified the code slightly to turn this option into a radio instead of the checkbox, and it is auto selected, so that any topic created in this particular forum is always automatically turned into a blog post.  We want users to use this method of posting to WP instead of the WP TinyMCE authoring tool.

What we would also like to do is force any of these linked blog posts to be in a single category, which we call "Member Posts".  Are there any suggestions for forcably setting a single category through the Blog linking plugin, instead of displaying the category list?

THanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 13, 2013 - 6:40 pm

eek. you edited core code?  means you will lose changes on updates... better to use our api for making changes though havent look to see if what you did is possible - but we can always add more hooks...

if you just leave the category checkboxes empty, it will use whatever you have set up in the wp settings for the default category...  If you want to hide the category selection to prevent a selection, add this css to your sp theme (again, have your own theme and not one of ours):

#spCatList {display:none}

Avatar
Jamey Turcic
Member
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 3:28 am

No worries, I completely understand the downside of editing core files and that it will regress my changes on new revs. Unfortunately I couldn't find any hooks for this plugin in the codex that would allow us to accomplish what we are trying to do, which is force this option enabled for this forum and ensure it can't be unselected.

I was able to hide the category list, and all posts are going to the Wp default, however the hope is to use a different default for forums generated posts. If such a hook exists I'd love to go that route.

 

thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 3:35 am

so we are quite close to another release of sp and the blog linking plugin (just waiting for wp 3.6 to drop)... so its a good time to go through what you are doing and the use case to see if we can add some hooks if needed...

we have quite a list of hooks in core, but must admit are a bit more lacking in our plugins.. but happy to add them...

so lets walk through what you need...  on the forum topic creation, you would like a hook on the options form for the optional blog linking portion? so you can replace it with your radio, pre selected?

and then also a filter on the listed categories, so perhaps you could replace with a hidden field preset to a given forum?

sorry, getting late... ;)

Avatar
Jamey Turcic
Member
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 6:13 pm

Nailed it!  :)

It doesn't even have to be a radio button.  That's just what I did because with radio, if there is only one and it is selected, it's effectively force enabled.  :)   As long as we can force enable the option, whether there is a pretty green button is gravy but not required.

The second item you have correct as well, just a hook that let's us preselect and lock the category for which forums generated blog posts are assigned to.

Thanks a ton for your great work on SP, and openness to explore these features for a future version of the plugin.  Oh, and your end user support is unmatched, bravo!

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 14, 2013 - 10:11 pm

okay...  have opened a ticket and see if we can get something in place for next release...

Avatar
Jamey Turcic
Member
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2013 - 12:10 am

Sorry to bump an old thread, but I installed the new version and can't seem to find this feature.  Did it make it in?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2013 - 12:13 am

No, it did not...  was too late for 5.3...  but the ticket is open and will be considered...

Avatar
Jamey Turcic
Member
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 5:17 pm

Can you share the bug number with me, and I'll just track via Mantis and not have to follow up here?  Thanks Papa!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 12, 2013 - 9:43 pm

okay, I am thoroughly and utterly confused...  I am not sure what I posted on Aug 6... :(

I was having a discussion with a user in another topic regarding a late ticket that did not make into 5.3 but think it got posted over here by accident...embarassed

but it gets worse...

in post 6, I talk about a ticket and seeing what we can do for 5.3...  I cannot find such a ticket... so a bit clueless and puzzled at moment...

yet it seems like some work was done... 

the blog linking plugin does include the alluded to filter on the category list... so you can use the filter 'sph_blog_link_categories' to whittle down the available choices and you can even select on by default...  maybe I did put that in 5.3...  but seems what you wanted...

and there does seem to be a filter on the initial radio for blog linking too...  use 'sph_blog_link_form' as the filter...

so in the end, think I did do it, under a general filters ticket we had opened... and then posted in the wrong forum...

whew...

 

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625