Forum Replies Created

Viewing 15 replies - 136 through 150 (of 407 total)
  • @enkoes – I’ll try to replicate this and get back to you.

    Have you ever had moderation enabled, or is this your first time trying to activate that feature?

    @optimizingmatters – is there a function or hook we can utilize to flush/reset AutOptimize when users make style changes using our Style Pack plugin?

    It sure would be a nice touch to automatically do this for our plugin users whenever needed, and would cut down on some “it’s not working” support topics (no offense to @ajtruckle and not single him out, it’s a common reoccurring theme if you check our support topic history).

    @chiechai – I reached out to AccessAlly directly in order to obtain a temporary account to help troubleshoot your issue. @nomi has replied to you above, and I got a reply email also stating the AccessAlly uses bbPress in a specialized way, apparently not compatible with this plugin (which has been coded to work with the default bbPress plugin, not the heavily modified CommunityAlly version).

    They are offering direct support and/or assistance with the modifications you wish to apply to CommunityAlly. I can’t speak for them, but sounds they’re being proactive on trying to implement wishlist features for their customers. If they can’t help you immediately, perhaps it will be added in the near future.

    Sorry I couldn’t directly help with this issue. Marking as resolved. Good luck with your community! πŸ‘

    Any way to buy you a coffee or anything like that?

    @reedy

    Yes, this really @robin-w ‘s plugin. All donations can go to him, which do help motivate future additions/enhancements.

    http://www.rewweb.co.uk/donate

    5-star reviews help us out too if you haven’t already done so πŸ™‚

    πŸ‘

    The other possibility that came to mind is to provide individual styling options for each button independently. Odd use-cases such as yours would find that helpful, but the vast majority of use-cases would find it unnecessary, overkill, and cumbersome. I think the code snippet I gave you is the best approach for now. If that ever changes, I’ll tag you in the topic that discusses those button styling/class changes.

    Thank you for the responses. I’m not familiar with CommunityAlly. I’m going to spend some time researching it and, if possible, playing around with it so that I can dig into your issue better. I’ll update this topic when I find out something worth sharing.

    Sorry you ran into an issue.

    The only time I’ve personally seen that “not authorized” message is when I thought Style Pack was activated, but it was actually deactivated (usually during active development on a test site). Mentioning it because it may be worth double-checking that Style Pack is indeed activated.

    Just to confirm:

    1.) You do have bbPress installed/activated?

    2.) It is an admin user trying to access the Style Pack settings that’s seeing that “not allowed” message?

    3.) If so, is that admin user also assigned the bbPress keymaster role?

    If all of that checks out, get back to me and I’ll try to replicate the issues on my test server with the AccessAlly/CommunityAlly plugins.

    πŸ‘

    As usual, let us know if you run into any other issues.

    @ajtruckle – absolutely!

    Change the targeted selectors in your CSS code:

    From:

    #bbpress-forums a.subscription-toggle:link,
    #bbpress-forums a.favorite-toggle:link
    
    &
    
    #bbpress-forums a.subscription-toggle:hover,
    #bbpress-forums a.favorite-toggle:hover

    To:

    aj-topic-buttons
    
    &
    
    aj-topic-buttons:hover

    The rest of the CSS can stay the same.

    Then in the “Topic/Reply Display” tab, for the new #26 option, select “Use class” and set “aj-topic-buttons” as the class name.

    I’m going to mark this as resolved, but feel free to post here if you have any issues or questions.

    @optimizingmatters – turns out that was unnecessary for this particular issue, but extremely helpful for future reference! Thanks for chiming in!

    @reedy – Yes, that makes perfect sense.

    Here’s the overall problem I’m facing. There’s no good/straightforward way to distinguish whether the bbp_forum_subscription_link() function is being used in the default way within the forum template, or being used within a custom fancy sentence with icons like you’re using it. Style Pack just hooks to the link itself to adjust classes. There is NOTHING within the bbPress hooks to differentiate what the surrounding content is before/after that subscribe link hook. Your case is a rare, non-traditional case, and the vast majority of bbPress users will never experience what you are.

    With that said, I do like the way you’re utilizing the subscribe link, and want you to be happy with it. Here’s an updated code snippet that will let you accomplish that. Add it to your theme’s functions.php file (or with the Code Snippets plugin):

    /* 
     * code snippet to strip the auto-added "new-post-button" class from custom forum subscribe link
     * https://ww.wp.xz.cn/support/topic/new-subscribe-link-css-class/
     */
    function reedy_remove_new_post_button_class( $html ) {
    
            // strip "new-post-button" class from forum subscribe link html
            $pattern = '/class="subscription-toggle new-post-button"/' ;
            $replace = 'class="subscription-toggle"';
            $html = preg_replace( $pattern, $replace, $html );
                    
            return $html;
            
    }
    add_filter ('bbp_get_user_subscribe_link' , 'reedy_remove_new_post_button_class', 11, 1 );

    This is nearly identical to the last code snippet I posted, but with 2 changes:

    1.) Hooking into “bbp_get_user_subscribe_link” instead of “bbp_get_forum_subscribe_link”.

    2.) Priority “11” instead of “10” so that it gets executed AFTER Style Pack has done its’ thing with the Forum Button style class settings.

    I’ve tested this and it is working. All other forum buttons will have the “new-post-button” class. The subscribe button will have only the “subscription-toggle” class, but NOT the “new-post-button” class.

    That should set you straight πŸ˜‰

    I got a chance to look into both Style Pack and bbPress.

    Neither bbPress, or Style Pack add a “.new-post-button” class at any time, anywhere, to anything.

    The only exception would be if you have “new-post-button” set as the custom class with the Style Pack “Forum Buttons” tab ( /wp-admin/options-general.php?page=bbp-style-pack&tab=buttons ):

    You could also verify that by looking at the “Plugin Information” tab ( /wp-admin/options-general.php?page=bbp-style-pack&tab=plugin_info ) and at the bottom, looking specifically for the “Forum Buttons” value saved in the DB:

    ————————————————–

    I also got a chance to look at your site. I do indeed see the “.new-post-button” class being added to the “Subscribe” link.

    I can’t tell you exactly which file that CSS class is styled in because you have AutOptimize enabled, which is caching/concatenating CSS styles, but I can see the styling code is as follows:

    a.subscription-toggle.new-post-button {
      font-size: inherit;
      padding: inherit;
      background-color: inherit !important;
      color: #eb805b;
      text-transform: inherit;
    }
    
    .new-post-button {
      font-size: 20px;
      border-radius: 4px;
      margin: 20px 0;
      text-transform: uppercase;
      color: #fff;
      background-color: #40a474;
      font-family: Segoe UI,Helvetica Neue,Helvetica,sans-serif;
      transition: color .1s ease-in-out,background-color .1s ease-in-out;
      border: 1px solid transparent;
      cursor: pointer;
      padding: 10px 20px;
    }

    Considering Style Pack doesn’t include built-in settings for some of those things for Forum Buttons (like text-transform, transition, cursor, and so on ), my guess is that another plugin, or possibly even your theme is setup to automatically append the “new-post-button” class to “<a href>” tags/links.

    Temporarily disabling AutOptimize and inspecting the CSS source files responsible for that code may help identify the culprit and resolve the issue. This is the preferred route, and at least you’ll know what’s doing it for future site development/enhancement purposes.

    If you strike-out with that, worst-case, here’s a code snippet you can add to your theme’s functions.php file (or with the Code Snippets plugin). It will find that “new-post-button” class and strip it from the forum subscribe link:

    /* 
     * code snippet to strip the auto-added "new-post-button" class from custom forum subscribe link
     * https://ww.wp.xz.cn/support/topic/new-subscribe-link-css-class/
     */
    function reedy_remove_new_post_button_class( $html ) {
    
            // strip "new-post-button" class from forum subscribe link html
            $pattern = '/class="subscription-toggle new-post-button"/' ;
            $replace = 'class="subscription-toggle"';
            $html = preg_replace( $pattern, $replace, $html );
                    
            return $html;
            
    }
    add_filter ('bbp_get_forum_subscribe_link' , 'reedy_remove_new_post_button_class', 10 , 1 );

    @reedy – I just got off work, but I will look into this shortly and see if I can replicate what you’re saying. As far as I’m aware, Style Pack does not add the “.new-post-button” class to the forum subscribe link. But if bbPress is adding it, I should be able to remove/replace it, either automatically or with an option. I need to see it happening, and follow the code trail to the source doing that.

    A few questions though.

    1.) Why/where are you using the bbp_forum_subscription_link() function? I’m assuming it’s because you DON’T want to use the forum subscribe link/button settings from Style Pack’s “Forum Buttons” tab.

    2.) In case I can’t replicate it, do you have a link you can share with me showing it in action? You can email it to me privately at [email protected] if you don’t want to post it publicly here.

    @ricoto – sorry I missed this! I guess because it was marked as resolved already, it’s easy to overlook.

    I haven’t tested this, and don’t currently have any plans to add it to Style Pack, but I do appreciate you sharing this.

    My initial feedback is that you’ve only targeted large displays ( @media screen and (min-width: 767px) ). I wonder if you’ll still have alignment issues on screen widths less than 767px?!?!? May be worth testing and adding a CSS code snippet to account for them as well.

    Thanks for sharing! I hope others using Kadence theme and the “Post Comments as bbPress Topics” plugin find your CSS code snippet useful!

    @reedy – Version 5.6.0 has just been released which includes these new features.

    Head over to the “Topic/Reply Display” tab (wp-admin/options-general.php?page=bbp-style-pack&tab=topic_display) for the new settings. They have been labeled in the top image. #26 is the specific one you requested, but #27 may be of interest as well.

    You don’t HAVE TO set any value since the default setting is to NOT apply any styling to the topic Favorite/Subscribe buttons (default bbPress links, which is what you requested), but you can style them as buttons, or add a custom class if you choose.

    #27 will allow you to change the ” | ” separator between those links if you want something different.

    Thank you for requesting this! It’s a good one!

    Marking as resolved, but feel free to post here if you experience any issues.

Viewing 15 replies - 136 through 150 (of 407 total)