Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,326 through 7,350 (of 32,505 total)
  • Author
    Search Results
  • #169054
    Robkk
    Moderator

    Still not entirely sure how this will rank image will function since I think you are just allowing users to input a custom image url, but here is an example using BuddyPress xprofile fields. It grabs the available field called “Rank” and displays the content after the reply author details.

    function rkk_display_rank_image () {
        $user_rank = xprofile_get_field_data( 'Rank', ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) );
        echo '<div class="bbp-rank-image">';
        echo '' . $user_rank . '';
        echo '</div>';
    }
    add_action ('bbp_theme_after_reply_author_details', 'rkk_display_rank_image');
    #169053
    lissyhunnybee
    Participant

    I use the bbp style pack plugin with this shortcode in a widget to display just like that:

    [bsp-display-topic-index show='4' template = 'short']

    You can see on my home page how it displays. Mine is only set to show 4 but you can have it show however many you like.

    http://www.lissyhunnybee.com/

    #169051

    In reply to: Avatar Size

    Robkk
    Moderator

    You can customize the <?php bbp_reply_author_link(); ?> and add more attributes to it like what is explained in this guide.

    bbp_reply_author_link

    The functions you found, show the default arguments set for the links.

    #169049
    Robkk
    Moderator

    bbPress 1x standalone is not going to work with any new WordPress plugins, unless you use custom code to allow it to somehow.

    The plugin list labeled Legacy on this site, is for plugins that with bbPress 1x. The plugins section on this site, pulls plugins that work with bbPress on wordpress.org, are plugins that work with the plugin version of bbPress 2.

    Your users do not really have to type a code?? They just they could just type regular smilies in text and it would output to the icon.

    :) :( :P

    Also I just told you, WordPress has smilies and emojis that you can use. The bbPress plugin can use WordPress’s library too. SO you may not need a plugin.

    I am guessing you want something like a custom quicktag button that will show a dropdown of the smiles on your site. I can create a ticket for this if you want, and then we can see what the devs think of trying to add this to core.

    #169042
    deanhills
    Participant

    Apologies about bumping the thread. I was new to the forum. I tried BBPress as standalone first and that didn’t want to work with the WP plugins. I then made it part of a WP Website, and that didn’t work for the smiley plugin WP-Monalisa. Suggest that it should at the very least be removed from the bbPress list of plugins as it is listed here. AND it didn’t work for my stand alone Website.

    I really don’t want my visitors to have to type a code first before I see the smiley. I want it as one would find everywhere else in real forums. Without a plugin. I also don’t want to code it. WordPress is supposed to be for people who don’t have to get under the dashboard, preferably stay out of it. I spent probably a few hours last night researching this and I know for a fact I’m not the only one asking WordPress and especially bbPress to add smileys to people who make posts without having to load a plugin for it – or in the very least create a dedicated plugin by the developer of the bbPress that works at the time of downloading the stand alone software or WP Plugin.

    #169040
    Robkk
    Moderator

    @kiss_the_sky

    Not entirely sure what the exact code is.

    I think it is caching the forums using the transient api. That plugin I mentioned definitely has this type of feature though, uses a custom query I think.

    https://codex.wordpress.org/Transients_API

    Momshof
    Participant

    Hello Robkk. Thank you for responding. I am fairly new to creating a site & do not have the knowledge base yet to create the code for this to happen. I was hoping someone more knowledgeable than I may have already written this code for their site & would share the info.

    I am running Divi by ET which allows me to insert code into an epanel so I would not have to dig into files & take the risk of destroying anything for that end.

    Thank you for the link. I had not come across that tutorial info before.

    #168994

    In reply to: Avatar Size

    lissyhunnybee
    Participant

    I have found that the following files have functions that might be making the size stick no matter what

    From bbpress\includes\topics\template.php

    function bbp_get_topic_author_link( $args = '' ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'post_id'    => 0,
    			'link_title' => '',
    			'type'       => 'both',
    			'size'       => 80,
    			'sep'        => '&nbsp;',
    			'show_role'  => false
    		), 'get_topic_author_link' );

    And from bbpress\includes\replies\template.php

    function bbp_get_reply_author_link( $args = '' ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'post_id'    => 0,
    			'link_title' => '',
    			'type'       => 'both',
    			'size'       => 80,
    			'sep'        => '&nbsp;',
    			'show_role'  => false
    		), 'get_reply_author_link' );

    If someone could write me a function for just the size part perhaps that would work? I don’t know enough to be able to write one myself lol

    #168993

    In reply to: Avatar Size

    lissyhunnybee
    Participant

    I tried looking at those files but they don’t have the same code for the avatar size as the other two I edited, so I don’t know where to do from there lol

    This forum looks to have a similar issue, the avatar for the first post has an 80px image scaled up to 100px whereas the replies are fine.

    I guess I am stuck with it for the time being lol

    #168978
    Robkk
    Moderator

    Copy the bbPress templates into your child theme in a folder called bbpress.

    Theme Compatibility

    The files you may need to edit are in

    loop-forums.php
    loop-topics.php
    loop-replies.php

    For widgets I think that would only be in the widget settings, and not really a frontend thing. You may need to create a new widget with your own terms if it bugs you too much in the backend.

    #168975
    Robkk
    Moderator

    That crashed my sight for some reason. Any thoughts?


    @tallsam

    Did you place the code snippet I placed earlier correctly?? It seems to work fine on my test site.

    Same thing goes for @pinkishhueβ€˜s code.

    These both work if you want to show only 1 revision log on the Frontend of your forums.

    But first, is there going to be an update to bbpress that will remove the extra revision statements? If so, any thoughts on when this will be ready?

    Not really remove the statements, but just make 1 visible. Have no idea when @netweb’s code will make it into core.


    @tallsam

    Do you want them all gone?? This topic is all about just having one visible on the frontend.

    Also there might be a bug about the revisions somewhere I think. Haven’t fully checked that one out though.

    But you can always disable the revision logging from being displayed in the forums in Settings > Forums, there will still be revisions on the edits in the backend though, since it is a post type in WordPress. And hide the existing revisions with CSS using the first half of pinkishhue’s code.

    There is a way to limit the total number of revisions kept per post though in WordPress.

    But if you do want to completely remove the revisions you can use a plugin that @casiepa listed, but this may remove ALL revisions of any post or plugin using the revision system in WordPress. Some custom css plugins may use it, and clearing the revisions may lose all your saved styles.

    Robkk
    Moderator

    GoodNews (actual), purchased from CodeCanyon.

    Which one there are three different types of themes from themeforest with this name.

    Robkk
    Moderator

    Did you make your forums hidden? Hidden forums are only seen by admins and mods

    Did you clear any cache/do you think you set up caching correctly? Caching is a common issue that could cause issues for beginners?

    Could there be a plugin/php code snippet you may have activated that may be causing this issue? A plugin/custom php code snippet could conflict with bbPress somehow.

    Troubleshooting

    #168969

    In reply to: smiley emoticons

    Robkk
    Moderator

    @deanhills

    I have just tried to load the wp-monalisa plugin and it turned everything in my Forums OFF.

    What exactly did it turn off?? I have an issue where the smiley code won’t paste and that is it.

    Was a bit disconcerting as when I logged into the Forum the forum index did not show and the links to the Forum would not work, nor the pages.

    Link to your forum so I could see this. It may just be a bbPress theme compat/theme issue.

    There must be a hick up somewhere as I don’t have anything special – just the BBPress Forum plugin and the Ultimate Member plugin.

    I could replicate an issue a little with using a default theme and while having TinyMCE activated, and the default toolbar editor tab is the HTML one it doesn’t seem to work unless I switch to TinyMCE and back.

    It does work with bbPress and how its default quicktags editor though.

    #168968
    Robkk
    Moderator

    @deanhills

    First don’t bump up 7 year old topics, it is annoying.

    Second that bbPress in this topic was a standalone forum software and is entirely different from the plugin version now.

    bbPress can use WordPress’s supplied smilies.

    https://codex.wordpress.org/Using_Smilies

    πŸ™‚ πŸ™ πŸ˜›

    And even its emojis

    https://codex.wordpress.org/Emoji

    πŸ’€ πŸ‘» πŸ‘½ 😺 😸 😹 😻 😼 😽 πŸ™€ 😿 😾 πŸ™Œ πŸ‘ πŸ‘‹ πŸ‘ πŸ‘Š

    #168963
    Robkk
    Moderator

    There is a plugin called bbp style pack that has a shortcode that basically outputs the same thing.

    kiss_the_sky
    Participant

    GoodNews (actual), purchased from CodeCanyon.

    Robkk
    Moderator

    A. image upload option to tool bar

    You can use the simple external link image button and oembed for images hosted on imgur.

    There are two plugins that can add image uploading in bbPress though.

    gd bbPress attachments for file attachments upload is not through the toolbar though

    BuddyPress Forum editor which adds a TinyMCE upload image button, but requires BuddyPress, and I am not sure how this could work with TinyMCE Advanced.

    B. video upload option to tool bar

    oembed will you embed youtube videos automatically by placing the url of the video straight into the forum post.

    C. more options (font size, family, remove formatting, et etc) to the tool bar

    You would need to enable tinymce in bbPress either through a plugin like the bbPress enable visual tab plugin or by adding the code snippet in this guide.

    Enable Visual Editor

    To have the extra buttons, the plugin TinyMCE Advanced would help, as long as you have teeny mode set to false in code snippet or enable the extra buttons through the bbPress visual tab plugin.

    #168921
    Pascal Casier
    Moderator

    Hi, let me try to cut these questions in different parts.
    I only get email notifications on some new topics and replies.
    Some basic things: You need to subscribe to the forum to get new topics. You need to subscribe to the topic to get the replies. You will not get notifications for your own topics that you post.
    Said that, it seems that on some forums there are issues in getting out the emails. You could try by installing a plugin like https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/ and I would also suggest to use an SMTP tool (like postman smtp or other) that has good logs so you can find out what is happening.
    I can’t find the setting to ensure I get notified whenever a new post is added.
    As you are on the bbPress forum, I suppose you talk about ‘topic’ and not ‘post’ ? If you talk about new topics, you need to be sure to be subscribed to the forum. You could use a plugin e.g bbP Manage Subscriptions to have the overview of who is subscribed to what forum.
    I cannot find their emails or names at all in my user tab of my wordpress admin….
    If you just use bbPress on WordPress, you have to find them there. If not, you will have to ask in a pure wordpress forum. If you would also use BuddyPress, then it’s better to ask in their forum.

    Hope it gives you some directions.
    Pascal.

    #168915
    Pascal Casier
    Moderator

    I must admit I’m not an expert in RTL…

    I would propose you start from here: https://codex.bbpress.org/getting-started/bbpress-in-your-language/persian-%D9%BE%D8%A7%D8%B1%D8%B3%DB%8C-fa_ir/

    Pascal.

    #168907
    MaxPeerawat
    Participant

    how to display get topic of 2 forum?

    I want to get display topic of freshy(forum) .

    How to ?
    Now I used ” do_shortcode(‘[bbp-single-forum id=648]‘); ” but it’s show all.
    How to get topic from freshy(forum)?

    #168901

    In reply to: Avatar Size

    lissyhunnybee
    Participant

    I managed to fix my original issue which was caused by a social login plugin creating default avatars from facebook profile pictures, however I have come round full circle lol

    I decided I wanted the avatar on the topic page larger and so changed the sizes from 80 to 120 in the only files I can find the code in, loop-single-topic.php and loop-single-forum.php

    This has successfully changed the image sizes in the listings (kept to 50px via css) but has had no effect on the topic page. I have searched and searched and feel like I am banging my head on a brick wall lol

    #168900
    LikeBtn
    Participant

    Here is the hack we are using to make our custom filter work:

    <?php
    
    function likebtn_notifications_get_notifications_for_user($action, $item_id, $secondary_item_id, $total_items, $format = 'string')
    {
        global $wp_filter;
    
    	$return = '';
    
        if (count($m) == 3) {
    		// Do something here
    
            // We modify global wp_filter to call our bbPress wrapper function
            if (isset($wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications'])) {
                $wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications';
            }
    
        	return $return;
        }
    
        return $action;
    }
    // bbPres has a bug: 
    // https://bbpress.org/forums/topic/return-value-in-bbp_format_buddypress_notifications/
    // https://buddypress.trac.wordpress.org/ticket/6669
    // Filter must be called before corresponding bbPress filter
    add_filter('bp_notifications_get_notifications_for_user', 'likebtn_notifications_get_notifications_for_user', 5, 5);
    
    // Wrapper for bbp_format_buddypress_notifications function as it is not returning $action
    function likebtn_bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format = 'string')
    {
        $result = bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format);
        if (!$result) {
            $result = $action;
        }
        return $result;
    }
    #168894
    iexperience
    Participant

    Hello community,

    My requirement is that I need just a single forum. So ive created a forum and now I have to create topics and assign it to that forum. The name of the forum comes in the slug.

    Is there anyway I dont have to create this forum. How about siteurl/bbpressslug/ simply lists all the topics and these topics dont have any assigned forum. What is the shortest way to accomplish this.

    Also in that case, how do I use shortcodes like the following
    [bbp-topic-form forum_id='$forum_id']

    Thanks

    #168890
    Pascal Casier
    Moderator

    Well, if you have a good backup of your database, you can always launch this query:
    DELETE FROM wp_posts WHERE post_type = "revision";
    Pascal.

Viewing 25 results - 7,326 through 7,350 (of 32,505 total)
Skip to toolbar