Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

No categories available for Wordpress comment integration?

Hi all, I just installed/enabled the Wordpress Vanilla plugin, and it works great for the most part--comments are posted to my forum under a new discussion with my Wordpress article as the original comment, just how I want.

My problem is it defaults to posting wordpress articles/comments in my first forum category, and I want to post wordpress content in a different default category. But on the "Vanilla Comment Integration" page, the drop-down select only has one option: "No Category". Here's a screenshot of what I'm talking about:

Has anyone run across this? I don't know if it's a Vanilla issue or a Wordpress plugin issue, so I'm not sure where to start looking.

My Vanilla forum has 3 main categories with 3 sub categories under each of those. How can I get that drop-down select in the WP plugin to recognize my forum's categories so new WP posts/comments are created in the category I select? Thanks.

Comments

  • do these cat have guest permissions?

    could you point /categories.json/all

    When they made this plugin they didn’t really focus on either side being private.

    grep is your friend.

  • @x00 said:
    do these cat have guest permissions?

    Hmm, I think that was it, which is unfortunate, because I don't want any categories to have guest permissions. But I gave custom permissions where guests could view-only the category I wanted, and doing that had it appear in the WP Plugin drop-down menu.

    I noticed that the WP plugin created a user named "System" and it didn't have any roles assigned, so I assigned it the member role but that didn't seem to do the trick. Is leaving one of my categories "open" to the public the only way to have WP post comments to a specific forum?

    could you point /categories.json/all

    I'm not sure what file you mean here, sorry.

  • it is just a question of it detecting the category, they is likely a manual config override to set the categories. The important thing is your blog cannot be private, under this system.

    grep is your friend.

  • x00x00 MVP
    edited March 2013

    Try this

    get the category id by visiting the category

    in the url if it says say

    http://yourforums.org/categories/categoryname

    http://yourforums.org/categories<b>.json</b>/categoryname

    and enter

    You see something like

    {
    
         "Category": {
             "CategoryID": "9",
             ....
    

    or

    {"Category":{"CategoryID":"9",...
    

    where 9 could be any number. Write down that number

    Visit the comment integration page with the dropdown
    Follow these steps to get the javascript console

    a window will popup at the bottom, enter at >

    jQuery('#widget-discussions-categoryid').replaceWith('<input type="text" id="widget-discussions-categoryid" name="widget-discussions-categoryid" value=""/>');
    

    (make sure you select all of that)

    then enter

    This will give you a text box in place of the drop down select. You can close the console but don't refresh the page.

    Enter the number in the text box. Then click save changes.

    Hopefully this will work for you.

    Note: Obviously if guest can't view the category, then guest can't view the embedded comments, they would have to be logged in to see them.

    grep is your friend.

  • it should be

    http://yourforums.org/categories.json/categoryname

    in case the wasn't clear

    grep is your friend.

  • Thanks. I gave your steps a try, but it didn't produce a text pop-up like you said, but that's ok. I think for the time being I'm going to try keeping that one category public to guests. Doing so also allows me to display discussion titles on my Wordpress sidebar with that widget.

    Still, thanks a ton for pinpointing that it was my category privacy causing that problem of not being able to select it.

Sign In or Register to comment.