Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

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

    Oh that was what you were trying to change, I thought you meant title tag and all that. Yeah whats in the blue bar is coming from your theme, it probably shows Archive for all archive pages.

    You can also see if you to yoursite.com/topics it shows the same thing. I bet your theme authors can give you a function to modify it for bbPress pages using the bbPress condtionals bbp_is_forum_archive()and bbp_is_topic_archive()

    #165785

    In reply to: How to modify

    Robkk
    Moderator

    INstall this plugin

    https://wordpress.org/plugins/wp-admin-no-show/

    or just use this code.

    add_action('after_setup_theme', 'remove_admin_bar');
    
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }

    You can follow this to add a profile link to your menu.

    Layout and functionality – Examples you can use

    #165783

    I’d like to add some custom buttons/functionality to the visual editor in the forums on my site. I have some working code that adds the buttons and functionality to TinyMCE in the WordPress admin for pages and posts but I haven’t been able to get it working in the editor for the forums. Here’s some of that code (exluding the actual JS) that adds two buttons (labeled braille and simbraille) to the visual editor in admin.

    `//custom braille font buttons for tinyMCE
    function braille_add_buttons( $plugin_array ) {
    $plugin_array[‘braille’] = plugins_url( ‘/js/nba-editor.js’, __FILE__ );
    return $plugin_array;
    }
    function braille_register_buttons( $buttons ) {
    array_push( $buttons, ‘braille2000’, ‘simbraille’ );
    return $buttons;
    }
    function braille_font_buttons() {
    add_filter( “mce_external_plugins”, “braille_add_buttons” );
    add_filter( ‘mce_buttons’, ‘braille_register_buttons’ );
    }
    add_action( ‘init’, ‘braille_font_buttons’ ); `

    I found another post in the bbPress forum from somebody else trying to do the same thing (https://bbpress.org/forums/topic/hook-into-bbpress-teeny-mce/) and someone suggested applying a filter to bbp_get_teeny_mce_buttons but that poster couldn’t get it working and I can’t figure out how to adapt the already working code I have to this either. I think eventually that poster found a work around but I really need to get this working so any help would be greatly appreciated!

    The forum is located at http://natlbraille.wpengine.com/forums/
    I’m using bbPress 2.5.8 on WordPress 4.3. If you need any additional info I’m happy to supply it, just ask. Thanks in advance for any help!

    #165780
    Robkk
    Moderator

    Add this to your functions.php file in your child theme or functionality plugin to remove the display name changer in bbPress and also WordPress.

    add_action('show_user_profile', 'remove_display_name');
    add_action('edit_user_profile', 'remove_display_name');
    
    function remove_display_name($user) { 
        
        if ( bbp_is_single_user_edit() ) {   
            ?>
            	<script>
            		jQuery(document).ready(function() {
            			jQuery('#display_name').parent().hide();
            		});
            	</script>
            <?php 
            
        } else {
            ?>
            	<script>
            		jQuery(document).ready(function() {
            			jQuery('#display_name').parent().parent().hide();
            		});
            	</script>
            <?php }
            
    }    
    #165770
    Robkk
    Moderator

    1. How can I get people visiting on the website to login in or register and view their profile? Whenever I look at my website in incognito mode, there is no sign up or register button or view profile button.

    You may need to add login or register menu items, or you can use the bbPress login widget and add links to your default WordPress register page or the page you put the [bbp-reigster] shortcode.

    2. If people can register, how can can that registered person create a new topic? I can’t seem to find that tab thing on bbpress on my website.

    What tab thing? just scroll at the bottom of a forum you created and you should see a topic form.

    3. How can I make the forum so that only registered people can reply and non registered people to only look at the forum?

    I think as long as you do not have any private forums or enable anonymous posting you can do this by default.

    4.How can i get registered users to unsubscribe

    You are not really specific on what to subscribe to, but you can unsubscribe to forums and topics by following this guide. You can only unsubscribe to forums and topics if you are already subscribed to them though.

    Subscriptions

    In other words how can i make the forum on my page like the one on bbpress ?

    Hard work and custom development.

    #165767
    Robkk
    Moderator

    Does what is in this guide help any??

    Creating Content

    #165765
    Robkk
    Moderator

    @antonhoelstad

    All you had to say was that you did not edit files, if you did not edit any files.

    You did not need to post ALL of the code in the templates that just included any specific keywords to search. If you started fresh from on bbPress then you just posted the default templates.

    Do not post full template code, on this site use soemthing like gist.github so I do not have to scroll through all of that in this topic, or even in the forums search on this site.

    Did you even try putting the templates into a child theme like I said above??

    #165755
    Robkk
    Moderator

    I explain how to here. Simply go to your forum profile and go to subscriptions and hit the red Xs.

    Subscriptions

    #165731
    Robin W
    Moderator
    #165724
    frank tredici
    Participant

    I want to install forum / help desk / q&a type plugin and I am considering bbPress for this.

    Does bbPress allow for private posts whereby the submitter must register to the site and can only gain access to their own posts by logging in? Also, can posts be kept private so no other member can see them?

    #165713
    Robkk
    Moderator

    Add this custom CSS for it to display in a sort of list.

    #bbpress-forums .bbp-forums-list li {
        display: block;
    }
    #165707
    Robkk
    Moderator

    This one is tough but it has to do with using <?php wpautop() ?>. Also know that the user description field is just a field inherited from the WordPress default profile fields.

    https://codex.wordpress.org/Function_Reference/wpautop

    #165706
    Robkk
    Moderator

    I guess maybe try the conditional that is in this code. 13 is the topics forum id.

    function bbp_forum_thirteens() {
        $topic_id = bbp_get_topic_forum_id();
        
        if ( $topic_id == 13 ) {
            echo '<p>THIS is another test Thirteen</p>';
        }
    }    
        
    add_action( 'bbp_template_before_single_topic', 'bbp_forum_thirteens' );
    #165705
    gptxffa
    Participant

    yes sir!

    I tried Satrya’s code in the functionality plugin you recommended and it did work :D!

    Thank you 😀

    #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

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