WordPress.org

Ready to get started?Download WordPress

Forums

Social
Only for blog posts, not for pages? (21 posts)

  1. Viktor Leberecht
    Member
    Posted 2 years ago #

    Hi,

    thank you for this great plugin. But as wordpress is more and more becoming a cms and pages have been around since ...??? i am a bit surprised that you do not seem to have a broadcast function for pages, and also no manual adding / importing of social comments on pages.

    Surprised me even more as the commenting function on pages is included.

    So are the above-mentioned functions really not there or am i just not aware of how to activate?

    Otherwise: if it were possible to add that function it would be great.

    Kind regards, Viktor

    http://wordpress.org/extend/plugins/social/

  2. Alex King
    Member
    Plugin Author

    Posted 2 years ago #

    Use the "social_broadcasting_enabled_post_types" filter with a little custom code to enable whatever post types you like.

  3. Viktor Leberecht
    Member
    Posted 2 years ago #

    Thanks a lot for the reply, but i do confess not knowing enough about coding to start using filters. And i somehow assume that this is true for about 90% percent of your users.

    So I would really appreciate if there was a nice option in the plugin where i can set this with a simple click.

    Now i know, you are doing the plugin for free, and i appreciate your work.

    But though it might not be polite to talk about your competition, the plugin wordbooker does a very good job of this. One can choose to enable it on posts and/or pages and you get a lot of options how you want it to work. NO coding needed.

    OK, he does not support twitter, but as far as facebook is concerned i would encourage you to take a look at what he does - and he does it all on his own; no whole group of developers, and for free as well.

    If any of this sounds like criticism: it is not meant be, please attribute it to me being german and maybe not knowing how to express myself in a way that it comes across as encouragement.

    Kind regards, Viktor

  4. prof_jerz
    Member
    Posted 2 years ago #

    I just installed Social yesterday and LOVE it. It solves so many problems.

    Like Viktor, I'd really like to use Social with pages, and like Viktor I would appreciate a bit more guidance for how to implement the solution you described, Alex.

    If there's someone else with the skill to turn Alex's answer into a set of instructions, there are at least two Social users who'd be grateful.

    Thank you!

  5. Alex King
    Member
    Plugin Author

    Posted 2 years ago #

    You can learn about the WordPress API here:

    http://codex.wordpress.org/Plugin_API

  6. drewshane12
    Member
    Posted 2 years ago #

    I totally agree with both of these people. It would be much appreciated if Broadcast Pages was added into this plugin.

    Thanks!!!!

  7. Viktor Leberecht
    Member
    Posted 2 years ago #

    Dear Alex, i am sure you have an awful lot of work on your desk, and maybe foun dour request disturbing.

    But as i do not seem to be the only one wishing for a standard integration of Social into pages i would kindly ask you to reconsider instead of just pointing us to the documentation how to code it ourselves (after we pointed out not to know about coding).

    How about picking up our suggestion for the next release?

    Kind regards, Viktor

  8. drewshane12
    Member
    Posted 2 years ago #

    What he said

  9. prof_jerz
    Member
    Posted 2 years ago #

    While I have not yet had the time to teach myself the WordPress API, I have posted some details about how to hack the source code to get the desired effect.

    http://jerz.setonhill.edu/blog/2012/07/24/hacking-the-wordpress-social-plugin-to-include-pages-in-addition-to-posts/

    Pages are considered a special type of post that is hierarchical. The Social plugin has a line that specifically excludes hierarchical posts from getting the social treatment. I just commented out the bit of code that checks to see whether a post is hierarchical.

    Yes, I will probably have to re-do that hack every time the Social plugin produces an update, but for now, I can live with the kludge.

    Thanks again for a wonderful plugin.

  10. Viktor Leberecht
    Member
    Posted 1 year ago #

    I tried the professors solution, and it worked as far as posting is concerned. Thank you so much Profesor Jertz.

    Now all we have to do is:
    -get Alex King and mailchimp to adopt it
    -and what i do not know yet is, if social comments will also be imported for pages, because i do not see that button one finds with articles to check for social comments.

    But anyway, thanks again.

    I am still considerng switching back to Wordbooker, but this might stop me.

    Once more an urgent appeal to Alex king and Mailchimp to make social work for apges as well

    Kind regards, Viktor Leberecht

  11. bwp
    Member
    Posted 1 year ago #

    Prof. Jerz, I tried adding the following comment to your blog but apparently the "WP-Sentinel" system you use is not very good. (Big red scary warning, you're an attacker blah blah, "Variable comment of the POST method triggered the filter 'common comment types').

    Anyway, thanks for the quick hack. Here's what I tried to post there:

    Guys, I'm pretty sure the "Find Social Comments" is just added to the WP 3.4 banner menu by Social, AND that it appears all the time, independent of and unrelated to the post OR the page you're viewing. I don't think Prof. Jerz's hack changed it. (I haven't applied the hack, and the Find Social menu appears everywhere as I describe.)

    FYI I've added a question on Hooks and Filters to the support forum on wordpress.org -- Alex has mentioned it several times but I don't see any actual documentation on the available filters...

  12. Viktor Leberecht
    Member
    Posted 1 year ago #

    @bwp: in my self hosted wordpress blog (everything updated to the most recent versions) the "find social comments" does not appear in the menue. I have gone over the settings multiple times, there is no option for that.

    So i guess i´ll make that a separate support thread.

  13. bwp
    Member
    Posted 1 year ago #

    Viktor, are you at WordPress 3.4.1? I think the reworked menu bar is brand new with that release. (And I think I liked it better the old way.)

    If you're at that version of WordPress, and then you uninstall and reinstall Social, it should work...?

  14. Viktor Leberecht
    Member
    Posted 1 year ago #

    Thx for trying to help. I already tried deactivating and reactivating. That did not work.
    I have opened a separate thread for this menue question
    http://wordpress.org/support/topic/find-social-comments-in-menue-bar-1?replies=1

  15. bwp
    Member
    Posted 1 year ago #

    Yes, I noticed... but you also marked it "Resolved"?

    Also, I suggested uninstalling(deleting the plugin)/reinstalling, not merely deactivating/reactivating. Kind of a big difference, and it might help...

  16. Viktor Leberecht
    Member
    Posted 1 year ago #

    Thx again fro trying to help. I simply did not want to got to the trouble of having to set it all up again, which one often has to do when deleting and reinstalling (with some plugins the settings will not be kept when uninstalling). So i hoped for the easy solution with deactivating, which very often solves problems.

    I now tried uninstalling (deleting), cleaning up the database and reinstalling, but i still do not have those menues.

  17. mindctrl
    Member
    Posted 1 year ago #

    This should do it.

    /* Enable social plugin on pages */
    function jp_enable_social_pages() {
      return get_post_types(array('public' => true));
    }
    add_filter( 'social_broadcasting_enabled_post_types', 'jp_enable_social_pages');
  18. Viktor Leberecht
    Member
    Posted 1 year ago #

    Thx a lot mindctrl for taking the time.

    Though i don´t know much about coding i see this is more sophisticated than the solution of Pro Jerz who just commented out the exclusion of pages.

    But as the professors solution works as far as enabling social for pages, may i ask what is the advantage of your solution?

    Also - sorry - as a non coder i would need help to know where to include this in the code

    Thx, Viktor

  19. mindctrl
    Member
    Posted 1 year ago #

    @Viktor, this code would go in your child theme's functions.php, in a custom plugin, or somewhere else you wanted to put it. The benefit to doing it this way is that you're not editing the core plugin files, but are hooking into it instead, which means you don't have to redo it every time the plugin is updated.

    I noticed this doesn't add the "Social Comments" link on the admin under Pages that lets you manually fetch new comments. I haven't looked more at the code to see if it works automatically or what needs to be done to add that link to the admin page list.

  20. Viktor Leberecht
    Member
    Posted 1 year ago #

    @mindctrl, Thx again for taking so much time, especially in explaining things to a non coder.

    I don´t work with a child theme, have never gotten deeper into the more sophisticated parts of how to set wordpress up with chikld themes etc. I simply do not have the time to aquire all the necessary knowledge, as i run my three blogs (and all the research and writing necessary for them) besides a full-time job; not to forget private life ;-)

    So thanks again, i guess i will just have to hope that Alex King and mailchimp will soon release a new version that does include pages support (and maybe also fix the problem reported elsewhere, that scheduled broadcasting does not work).

    Kind regards, Viktor

  21. theyavvy
    Member
    Posted 1 year ago #

    @Viktor Thank you for opening this thread and stating such a clear point.

    mindctrl's solution worked perfect for me.

    in wordpress go to the apperance tab, then editor. On the right hand side you will find a file called functions.php, past mindctrls code in there at the bottom and save.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.