Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,201 through 6,225 (of 32,519 total)
  • Author
    Search Results
  • #176123
    khunmax
    Participant

    Robkk

    The above listed plugin plugin no longer works.

    Your code to register a top five works however the resulting page output from this snippet includes breadcrumbs, viewing x topics, and pagination. The pagination also links to spurious pages.

    What is required to style the output page so that it does not include breadcrumbs, viewing x topics, or pagination?

    Kind Regards

    Max

    #176120

    Topic: Change avatar size

    in forum Themes
    SK
    Participant

    How can I change the size and shape of the avatar without writing whole template files?

    It seems like height-width etc are hardcoded.

    <img alt="" src="http://domain.com/photo.jpg" class="avatar avatar-14 photo" height="14" width="14">

    #176114

    In reply to: I am Newbie

    Pascal Casier
    Moderator

    Hi,
    If you are having a small font for bbPress, then most probably your theme is having a standard small font size. CSS is indeed an option to go, but you will have to check in your environment where you have to copy this part. It might be something like:

    #bbpress-forums .bbp-topic-content,
    #bbpress-forums .bbp-reply-content  {
      font-size: 16px;
    }

    Otherwise you might try plugins like ‘bbp style pack’ to help styling your forum
    Pascal.

    khunmax
    Participant

    Problem:
    I want a New Topics page and a Top Ten Topics page for my forum.

    What I have done already:
    I used Robins shortcode to create the New Topics page set as follows:

    [bbp-display-topic-index show=’25’ template=’short’]

    It displays nicely with no search bar, breadcrumbs, viewing x topics, or pagination.

    I have reviewed Robkks code provided here:

    table with most popular topics

    The code is as follows:

    function rk_top_five_view() {
    bbp_register_view( 'top-five', __( '5 Most Popular Topics' ), array( 
        'meta_key' => '_bbp_reply_count',
        'posts_per_page' => '5' ,
        ' max_num_pages' => '1', 
        'orderby' => 'meta_value_num' ),
    false );
    }
    
    add_action( 'bbp_register_views', 'rk_top_five_view' );

    Unfortunately the resulting page output includes breadcrumbs, viewing x topics, and pagination. The pagination also links to spurious pages.

    What I need help with:
    What code do I need to add to Robkks snippet so that the output page is styled the same as the output from Robins shortcode with no breadcrumbs, viewing x topics, or pagination?

    Thanks in advance for your assistance.

    Kind Regards

    Max

    #176103
    Robkk
    Moderator

    Also, can you explain what you meant by “… or use a plugin like functionality. “.?

    This plugin its called Functionality, its like a plugin that can hold custom php code snippets.

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

    Thanks for the code. unfortunately it doesn’t work for my website

    Both of the code snippets I posted should show the forum search above a single topic, single forum, and in search results. Well unless your custom theme has custom bbPress templates with all the available hooks I am using in my code removed.

    can you tell me if its actually worth adding a child theme, if the parent theme is an individually created one by a web design company?

    I mean you do not have to.

    #176102

    Topic: I am Newbie

    in forum Installation
    newbiezo
    Participant

    Hey community!
    I just joined BBPress a day ago, and completely alien to it. I basically want to understand how can you increase font size for the forums as its pretty small. Also if you are telling me to do with CSS. Please tell me where can I find CSS and how can I do it? Where to paste codes, I am in urgent help, please support!
    Heres my community https://www.evilgamers.gq

    #176098
    haddly
    Participant

    Hi Robkk,

    Thanks for the code. unfortunately it doesn’t work for my website. Well, I have a vagrant set up on my computer with a copy website and i test everything there before i make real changes.
    I made a child theme and a style.css file (this works as my wordpress site recognises it) and i made a functions.php file and added the code you gave me. The thing is, i tried some other code that exists on https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#23-show%c2%a0the-bbpress-forum-search-everywhere and they didnt work either.
    any suggestions?
    would greatly appreciate any help.
    thx
    Dan

    #176096
    khunmax
    Participant

    OK… so the option to uncheck embed is already available in the back end of BBpress at: settings/forum/auto-embed links.

    So the plugin you linked to doesn’t really have anything to offer (other than stopping embeds in WP).

    Another ham-fisted way around this bug it to use the css:

    .bbp-reply-header a.bbp-reply-permalink {display:none}

    (which by the way bbpress have done on these forums)

    The downsides are:

    1. no numbering reference on replies if someone want to quote or link to old reply.
    2. In front end profile/replies no link on each reply to take user back to relevant thread.

    What do you think is best: display or not display?

    Are their any other options?

    #176094
    khunmax
    Participant

    UPDATE and BUMP

    After further testing I have discovered that the error in this code is not due to whether the user is admin or non admin.

    I (admin) have a two word username (blank space in the middle of the two words).

    I created a non admin user account also with a two word user name and get the same error. When that use clicks on the my profile link they are taken to Oops page.

    So in its current form Robins code does not work if the user has a username with more than one word in it.

    Any chance someone can fix this.

    Thanks in advance and kind regards

    Max

    #176089
    Robkk
    Moderator

    I dont get this logic, despite if it is only WP logic, not bbPress one.
    Maybe I missunderstool it all. New Users (Roles = Subscriber, Participant) have access to add new Posts, and attach them to taxonomies.

    Forum Users are forum USers, not Portal editors of Articles.


    @stagger-lee
    you may need to track back and look at any custom code you may have and see if any is granting users specific permissions that would grant your users to be able to do this. Of course your new forum users shouldn’t be able to do this by default. Regular subscribers/participants should only be able to edit their profile usually.

    #176088
    Robkk
    Moderator

    Look into this topic here for some help. Since you are just replacing the voices column you can do without some of the CSS and just put the views code in the voices column.

    https://bbpress.org/forums/topic/create-new-column-for-topic-posts/

    #176086
    Robkk
    Moderator

    You can turn off the revisions in Settings > Forums.

    https://codex.bbpress.org/features/revisions/

    #176080
    Robkk
    Moderator

    I couldn’t get it to see anything I put in my child theme, because it is accessed through plugins, not themes. I know I’ll have to update the file again manually as soon as I update bbPress.

    You don’t need to change anything in bbPress to do this type of thing, just put any template files in a child theme or custom theme package plugin (there is no info on this but this is possible too).

    https://codex.bbpress.org/themes/theme-compatibility/

    Also, that plugin only allows you to add new fields, not display existing ones. Doesn’t it seem odd that you would be prompted to enter data in fields on user profile edit, but then not have any of them show on view? By default the user fields should be available to show, at least standard ones like description, website, and social media profiles.

    This is the only plugin I can think of that might be easy for some users to display content. If you want contact Robin later in the support forum to see if he would add existing fields to it.

    How are some people not caring about this? It just seems so fundamental to me.

    There is a plan to add certain fields to the profile page in the future, mostly default existing fields for now.

    https://bbpress.trac.wordpress.org/ticket/2570

    #176078
    Robkk
    Moderator

    Use this PHP code place it into a child theme functions.php file or use a plugin like functionality.

    //display bbPress search form in search results
    function rk_bbp_search_form_in_search_results(){
    
        if ( bbp_allow_search() && bbp_is_search_results() ) {
            ?>
            <div class="bbp-search-form">
    
                <?php bbp_get_template_part( 'form', 'search' ); ?>
    
            </div>
            <?php
        }
    }
    
    add_action( 'bbp_template_before_search', 'rk_bbp_search_form_in_search_results' );

    Also look at this guide.

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#23-show%c2%a0the-bbpress-forum-search-everywhere

    #176075

    In reply to: Styling nested replies

    Robkk
    Moderator

    You can use this class before another class in a reply to style the threads.

    .bbp-threaded-replies

    This class only appears if you enabled threaded replies.

    https://codex.bbpress.org/features/reply-threading/

    #176060
    khunmax
    Participant

    BUMP

    Robin I have installed your OK FINAL ANSWER code listed above and all works as it should with one small BUG.

    If I am logged in as admin and then click on your MY profile link I am not taken to my BBpress front end profile page but rather to an error page:
    ———-
    Oops! That page can’t be found.

    It looks like nothing was found at this location. Maybe try searching?
    ———-
    Can anyone assist me to edit the code so when someone logged in as admin click on the my profile link they are taken to his or her BBpress front end profile.

    Thanks in advance for any assistance you can provide.

    Kind Regards

    Max

    khunmax
    Participant

    BUMP

    I can confirm that if you install the above code in your functionality plugin and then use the
    WP NICE SEARCH plugin set to all you can display your bbpress content in a nice ajax drop down in your sidebar.

    Nice Search also has the option to limit the search parameters by configuring its shortcode:

    [wpns_search_form only_search=”my_custom_post_type”]

    I want to use this shortcode in the sidebars for my forum conent and limit the search to just Forums, Topics and Replies (no WP stuff included). However, I can not figure out what I should put in the NICE SEARCH shortcode as the BBpress custom post types.

    I have tried both of the following as a trial but they didn’t work:

    [wpns_search_form only_search=”bbp_register_topic_post_type”]

    and

    [wpns_search_form only_search=”ntwb_bbp_topic_cpt_search”]

    Can anyone assist me with what the correct format of the BBpress custom post type(s) that I should be entering into the NICE SEARCH short code.

    Thanks in advance for any assistance that is offered.

    Kind Regards

    Max

    #176049
    Robin W
    Moderator

    several ways to achieve this, you can do it by creating different roles

    eg

    Custom Capabilities

    #176043

    In reply to: Freshness Link

    Fuskeduske
    Participant

    Found a solution, if anyone is looking for the same i found the following in /includes/forums/template.php

    bbp_forum_last_reply_url which seems to have resolved my issue.

    #176038

    In reply to: Freshness Link

    Fuskeduske
    Participant

    Noone? 🙂

    I have tried the following

    bbp_forum_last_reply_permalinkinstead of bbp_forum_last_topic_permalink but that links to the reply only.

    I have too tried using bbp_reply_url, but that does not seem to work either.

    Is it true that there are no function for this yet, and it therefore have to be created? If so, where is bbp_reply_url – bbp_forum_last_reply_permalink – bbp_forum_last_topic_permalink located? Because then i might be able to figure the rest out myself.

    #176028
    Robin W
    Moderator

    This plugin has a shortcode that lets you display recent topics by forum or forums

    https://wordpress.org/plugins/bbp-style-pack/

    see dashboard>settings>bbp style pack>shortcodes for options

    #176016
    arnalyse
    Participant

    I encountered the same Problem as Loc: The count returned by bbp_get_user_reply_count does not update with the user’s activities in the forums. The bbp_get_user_reply_count_raw computes the count directly from the database, which is computationally more expensive, but delivers a correct count.

    Furthermore Robkk is right: I just had a look at the source code of bbPress 2.6-alpha, and has added and hooked some functions to correctly increase and decrease the post count on user’s actions such as creating and deleting posts.

    #176015

    In reply to: Search not working

    Robin W
    Moderator

    This is probably because in the bbPress default theme package, there is a template called content-search.php. In some newer themes there is also a template of the same name. And since the bbPress templates don’t necessarily need to be in a bbPress folder, the bbPress plugin is choosing the template from your theme before the template that is actually in bbPress.

    Copy content-search.php from the bbPress plugin templates and place it in a child theme in a folder called bbpress.

    https://bbpress.org/forums/topic/bbpress-search-only-showing-last-item/#post-175880

    Functions files and child themes – explained !

    So create a directory on your child theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-search.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-search.php
    bbPress will now use this template instead of the original

    #175992
    IndigoO
    Participant

    Oh, wait. I got that one too! LOL

    I found that a code block had been added to my member home page by the second code snippet. I deleted that block and all good now.

    Thanks for your help!

    #175990
    IndigoO
    Participant

    EDITED: I first added the second code snippet you provided, then realized I needed to other one, so I deleted that second snippet and used the first at the end of the functions.php file in my child theme. It does not place a small “edit profile” link centered at the top of my forum main page, which is a help (thanks), but it also places the following text at the bottom of my members home page when logged in: “Click edit button to change this code.”

    That is not a clickable link and it is also not in the right location. Also, I can’t see where that specific text is being defined to edit the wording, which I’d want if it was a working link. It would be great to also have the edit link on the members home page, not just the forum main page, or even better to be able to add it to the sidebar that shows on all member area pages, but at least I’d like to remove this text from the non-forum page.

    Thanks in advance if you can sort this.

Viewing 25 results - 6,201 through 6,225 (of 32,519 total)
Skip to toolbar