Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,051 through 8,075 (of 32,505 total)
  • Author
    Search Results
  • #165702
    Robkk
    Moderator

    @gptxffa this fix is in @satrya’s post you can change the conditional in the function to other areas on bbPress.

    In @mvaneijgen’s topic I helped him make it work for his feedback-no-search.php template.

    New Topic Form Shortcode Issue

    #165701
    Robkk
    Moderator

    Okay I tested it for awhile today, and I got it to work with this.

    function bbp_forum_thirteen() {
        $forum_id = bbp_get_forum_id();
        
        if ( $forum_id == 13 ) {
            echo '<p>THIS IS FORUM Thirteen</p>';
        }
    }    
        
    add_action( 'bbp_template_before_single_forum', 'bbp_forum_thirteen' );
    #165699
    Robkk
    Moderator

    THat should only be for avatars or gravatars and nothing else. You even see that option under a header tag that says Avatars.

    The only settings bbPress uses in the discussion settings is the Moderation and Blacklisting settings.

    Moderation and BlackListing

    You might need to do some troubleshooting just in case to see what might be causing the issue.

    Troubleshooting

    Robkk
    Moderator

    For the line-breaks missing it might be some CSS from your theme maybe causing the issue, but link to a post that should have line breaks so I can check and make sure.

    ALso fix the oversized avatars using this CSS.

    default size bbPress 14px avatar.

    #bbpress-forums p.bbp-topic-meta img.avatar,
    #bbpress-forums ul.bbp-reply-revision-log img.avatar,
    #bbpress-forums ul.bbp-topic-revision-log img.avatar,
    #bbpress-forums div.bbp-template-notice img.avatar,
    #bbpress-forums .widget_display_topics img.avatar,
    #bbpress-forums .widget_display_replies img.avatar {
       margin-bottom: 0px;
       vertical-align: middle;
       border: 1px single #ddd;
       width: 14px;
    }

    default size profile image

    #buddypress div#item-header img.avatar {
        width: 150px;
    }
    #165685
    aluxi33
    Participant

    Nevermind.

    Right now I am using the (bbpress) Forum Search on my Main Sidebar. I also have the bbpress shortcodes listed below. If I check this box: Forum Prefix (Prefix all forum content with the Forum Root slug (Recommended), my search works but then it disables my bbpress shortcodes. How can I make the bbpress shortcodes work with the Forum Prefix box checked?

    http://mysite.com/view/latest-topics/

    #165670
    TheMK850
    Participant

    I was following the layout and functionality examples you can use and it didn’t work for me.

    Step 1 worked for me just fine.
    I inserted the following code into my functions.php (i am using a child theme)

    //create vertical list
    function custom_bbp_sub_forum_list() {
      $args['separator'] = '<br>';
      return $args;
    }
     add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_sub_forum_list' );

    Then I moved onto step 2 and added this into my functions.php as well

    function remove_counts() {
    $args['show_topic_count'] = false;
    $args['show_reply_count'] = false;
    $args['count_sep'] = '';
     return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );

    It removed the counts but it didn’t look like a list anymore

    #165669
    DevynCJohnson
    Participant

    Why not add the below code to the theme’s functions.php file?

    //Subscribe by default
    function subscribed_by_default(){
    echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>';
    }
    add_filter('bbp_theme_after_topic_form_subscriptions','subscribed_by_default');
    add_filter('bbp_theme_after_reply_form_subscription','subscribed_by_default');
    #165668

    In reply to: Manage Subscriptions?

    DevynCJohnson
    Participant

    @jrb9406 , I will use my forum as an example. Notice that the link address for the “subscribe” link on my bootloader article forum (http://dcjtech.info/forum/articles/bootloaders/) ends in ?action=bbp_subscribe&forum_id=517&_wpnonce=120c4cdb3d. So, to start your code, you need to get a list of forum IDs and the name of the forum for a particular ID. Then, you can list forum names and use their ID for the subscription. Obviously, action=bbp_subscribe calls the subscribe function/code. However, I am not sure about the _wpnonce=120c4cdb3d.

    I hope that gives you a good start.

    #165663
    boriskamp1991
    Participant

    Hi guys! Im checking Google’s Search Console every once in a while. I found out that some 404’s were found on reply feeds like this:
    /forums/reply/11781/feed/
    /forums/reply/11978/feed/
    /forums/reply/12250/feed/
    etc, you get it.

    Where do these come from? I would like to solve the 404’s permanently offcourse, not that I redirect them and new ones like this appear next week.

    Thanks guys!

    #165662

    In reply to: Manage Subscriptions?

    jrb9406
    Participant

    Thanks!

    I’ve been working on some code to do this. I just figured someone might have thought of developing a plugin for it.

    I haven’t done html coding in 15 years, and I’m just picking up css and php. I guess it’s a learning experience.

    #165660

    In reply to: Manage Subscriptions?

    Robkk
    Moderator

    Subscribing to forums after registration is custom development for now. You may need to hire a developer to create this for you.

    You already have an area in your profile.

    Subscriptions

    #165639
    Robkk
    Moderator

    I thought wp super cache was disabled, I see this in the source code of the page you linked to.

    <!-- Dynamic page generated in 1.134 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2015-08-21 00:20:54 -->
    
    <!-- super cache -->

    You most likely need to flush the cache to see everything correctly and up to date.

    #165634
    Robkk
    Moderator

    Also know instead of placing code in your child theme you could paste any custom CSS in the many custom css plugins or the custom CSS module in Jetpack for example, and PHP code functions into a plugin like functionality.

    https://wordpress.org/plugins/functionality/

    #165633
    gptxffa
    Participant

    I see, thanks for the advice.

    I will try to see what I can accomplish with the code above and let you know 😀

    Thanks

    #165630
    Robkk
    Moderator

    Alright just so you know I can’t really do Admin access type stuff anymore, I am following some guide from the WordPress.org codex about moderators not needing to gain admin access because they will be going too far, its something like that. I also got a talking to, to stop doing it by some people on this site to, I mostly helped with commercial products because I could find the issue faster if I am more hands on and find a bbPress/theme/plugin bug faster, than telling the users to just ask the theme/plugin author. Plus in this case I do not really need to have an admin account, so you can delete that account you created for me again.

    From what I can see the downloaded theme is Jolene and you can just edit the Biker theme since it is already a child theme. If the Biker theme is frequently being updated (which it really shouldn’t), then I guess creating a grandchild theme like what you are doing would be the best approach.

    #165625
    Robkk
    Moderator

    Go to Settings > Forums and change the forum root to show Topics by Freshness.

    Then add this function to your child themes functions.php or into a functionality plugin.

    function recent_bbpress_topics() { 
     echo do_shortcode("[bbp-forum-index]");
    }
    
    add_action('bbp_template_after_topics_index','recent_bbpress_topics');

    Plus I swear I helped you on the forum avatar being too huge issue.

    #165617
    Robkk
    Moderator

    Troubleshooting is always the first answer to most questions on here.

    Troubleshooting

    #165606
    Robkk
    Moderator

    @mei-ling

    Well I did mess up the code anyway, you can copy the code I edited above to see if it works again if you want.

    -Don’t Drink and Code.

    #165605
    Robkk
    Moderator

    @arikg

    Those shortcodes really weren’t designed for situations like that. It wasn’t meant for a 1 page app for your forum, it doesn’t use something like Iframe, or anything like that.

    But if you want to say create a page about a plugin, and you have a certain forum for a plugin. You can create that page and below all the content you can place the single forum shortcode to display any support posts about this specific plugin.

    #165603
    Robkk
    Moderator

    I cannot reproduce on my wampserver with the permalinks with ID plugin so it is not that.

    I did find information about this though, the #038; should be &which makes sense.

    If you search for this kind of error in google, you will see countless posts of themes, plugins, and WordPress itself having the issue, So maybe make sure you have everything up to date.

    There are some fixes online too, but they are mostly saying edit WordPress core files to fix it

    #165594
    AntonHoelstad
    Participant

    Now I’ve tried again from the very beginning, with all the original files for the plugin etc. It has the exact same issue – which means that the problem must be in one of the following files coding – since these are the only ones with the “bbp-search-request” and/or “bbp_search” in it.

    Can you see any problems or issues with these files?

    templates/default/bbpress/form-search.php

    https://gist.github.com/anonymous/496fd16abe6f4188e4a0

    includes/search/functions.php

    https://gist.github.com/anonymous/bdb60f2e51201ffb2cf5

    includes/core/actions.php

    https://gist.github.com/anonymous/7eed8ef36becd703a5a7

    bbpress.php

    https://gist.github.com/anonymous/626d687f57dfaaa257ca

    templates/default/bbpress/loop-search.php

    https://gist.github.com/anonymous/83570d171156e157fb3d

    includes/core/options.php

    https://gist.github.com/anonymous/10fe8cfcaa4518241184

    includes/admin/settings.php

    https://gist.github.com/anonymous/bad7e43a34fe3e9a7428

    includes/common/shortcodes.php

    https://gist.github.com/anonymous/daa4af269bcf8613a871

    includes/core/template-functions.php

    https://gist.github.com/anonymous/94e2f94a2e0cca8f18f4

    includes/search/template.php

    https://gist.github.com/anonymous/25e84781cab341c71496

    #165592
    arikg
    Participant

    I use the https://codex.bbpress.org/features/shortcodes/
    to embed a forum in a page [bbp-single-forum id=$forum_id]
    it works great, but when the user clicks on a thread it opens in the usual bbPress slug and not within the page. I want the forum to be fully embedded in the page and also that the links from e-mail about replies will direct people to this page and not the default forum.

    #165579
    gptxffa
    Participant

    Hello,

    Obviously everyone knows what the default Forum index page looks like
    default forum index

    However I would rather be able to have the most recent topics displayed above the index like this page setup using the short codes:
    desired forum indexdesired forum index

    I cant figure out how to actually change the appearance of the forums index. I have the page in the picture above up and running, however when someone clicks on the breadcrum “forum” link, it takes them back to the default forum index, not the page i created with the recent topics listed above.

    Thanks for the help 😀 Preston

    #165585
    Robkk
    Moderator

    Try some troubleshooting. I am thinking a possible plugin issue with the menu items. The forums only being visible to Admin is the tricky one I can’t really pinpoint.

    Troubleshooting

    #165580
    Robkk
    Moderator

    I have been changing a bit of translations in the code – that’s why you might find a mistake here. What I don’t understand is, that when I upload all the original files, it still does the same mistake.

    Can’t you tell me if there’s some specific files that I should re-upload as original, in case I’ve changed something in them?

    What files did you edit, if you did edit any files?? I hope you did not edit the bbPress plugin files in the plugin directory of your site??

    I’ve never used child themes before, so I’m not sure how to do this.

    This will help you learn about creating a child theme.

    https://codex.wordpress.org/Child_Themes

    After creating the child theme just copy the bbPress templates to your child theme in a folder called bbpress.

    Or second option: Could you rewrite the htaccess hack so it might work? 🙂

    You really shouldn’t need an htaccess hack at all, that is why I said don’t use it yet.

Viewing 25 results - 8,051 through 8,075 (of 32,505 total)
Skip to toolbar