• Resolved 007elt

    (@007elt)


    Hi,
    I would like to use Frontier Post as a type of forum/chat in my private members only area which I set up with Ultimate Member. (I know about BBPress, WP Foro and other things but have some issues with them and find Frontier Post very handy)

    I have some post categories that I use for writing the public blog which are visible on the public site which I do not want my members to see or select when they are writing their own posts in the private member area. (e.g. if they accidentally select my “ad” category their post would show up on my front page).

    Is there any way I can hide several public use category NAMES from their view so they cannot select them when they are writing their posts for the private area or create categories that private members only have access too.

    (I realize it is possible to restrict viewing of post categories for logged in / logged out users but I want to restrict the visibility/use of some of the category NAMES for some of the people typing in the posts)

    Thanks in advance for any help.

    • This topic was modified 4 years, 8 months ago by 007elt.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author finnj

    (@finnj)

    Several ways:

    In Frontier Post settings, you can add Categories to excluded (will apply fronall users)

    In Frontier Post Capabilities: you can set allowed Categories per user profile, also be aware that if needed you can add an additional user profile “Frontier Author”, if needed, in Frontier Post Advanced settings

    Also check shortcode options: https://wpfrontier.com/frontier-post-shortcodes/

    Thread Starter 007elt

    (@007elt)

    Dear Finnj,
    Thank you very much for your kind response and tips. I realized that I can do this when I adjust category id in both settings and capabilities. I had trouble getting things for my normal members to work in their user roles despite adding capabilities, but I found I could assign them an additional Frontier Author role and that seems of have solved the issue. Things looked good, but then I was concerned about everyone accessing the medial library. Voila! I discovered you have created a great media library restriction plugin too. Super! You have answered my prayers! I do this website as a volunteer and have been testing so many plugins for my members only area…yours is really great idea, flexible and easy to work with. Before I get too excited, will you continue to be updating the plugins for WordPress?

    Plugin Author finnj

    (@finnj)

    Yes, I will continue to update it.

    I will not release a lot of new functionality, but will keep it running and test it with new WordPress versions.

    Plugin Author finnj

    (@finnj)

    And thank you for the kind words

    I am actually using the plugin at some site I run.

    It is 7 years since I started with Frontier Post, and it has shown as a pretty stable plugin.

    Their might be a significant span between releases, but as long as it works, it should be OK

    Thread Starter 007elt

    (@007elt)

    Hi again,
    I would also need to restrict the size of media that non-editors & non-administrators can upload. The server default is 35MB …think that would be too much for others users. Do you have any idea here?
    Thanks for any pointers!

    Plugin Author finnj

    (@finnj)

    Hi,

    Sorry, I do not know how to change this

    I am sure there is a plugin that can help.

    the 35mb must be a php set limit, and can probably be changed in either php.ini or in wp-config.php

    try to google it ??

    Thread Starter 007elt

    (@007elt)

    Hi again,
    Thanks for your response. In case this helps you or anyone else, I did some googling and experiment and this helped.

    https://www.ads-software.com/support/topic/how-to-limit-file-upload-size/

    I added the following to my child functions php and it seems to be working C:

    // Users cannot upload large files Limit upload size for non-admins. Admins get the default limit
    function increase_upload_size_limit( $limit ) {
    if ( ! current_user_can( ‘manage_options’ ) ) {
    $limit = 1048576; // 1 MB
    }
    return $limit;
    }
    add_filter( ‘upload_size_limit’, ‘increase_upload_size_limit’ );

    See also
    https://www.ads-software.com/support/topic/how-to-limit-file-upload-size/
    Plugin below appears to be only for images and not files!
    https://www.ads-software.com/plugins/wp-image-size-limit/

    Plugin Author finnj

    (@finnj)

    Hi 007elt

    Thanks, I will post it on the Restrict media support forrum as well

    Do you mind rate Frontier Post, the last review that is over 1 year old says the plugin is abandoned ……

    Plugin Author finnj

    (@finnj)

    I have updated the documentation of Action and Filters, and added a demo plugin to show how they can be used

    I find it better to package small code pieces in plugins rather than in functions.php, as plugins can be activated/deactivated, and easily be moved between installations.

    You might be able to use it yourself – You can use the one I made, and copy/paste/change it

    https://wpfrontier.com/actions-and-filters-hooks-in-frontier-post/

    There are a few things to be aware of with plugins.
    – a directory in plugins folder (lower case, no spaces, nu underscores
    – a php file with exact same name as the directory
    – a readme.txt file

    Thanks for the review,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Frontier Post Hide Categories?’ is closed to new replies.