Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,351 through 7,375 (of 32,519 total)
  • Author
    Search Results
  • 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.

    #168889
    Pascal Casier
    Moderator

    For the current time of where the user is (so NOT where the server is), you can only do it with javascript to my knowledge. Start from this:

    <script language="javascript">
    ourDate = new Date();
    document.write("The time and date at your computer's location is: "
    + ourDate.toLocaleString()
    + ".<br/>");
    document.write("The time zone offset between local time and GMT is "
    + ourDate.getTimezoneOffset()
    + " minutes.<br/>");
    document.write("The time and date (GMT) is: "
    + ourDate.toGMTString()
    + ".<br/>");
    </script>

    Pascal.

    #168887
    Pascal Casier
    Moderator

    For the current ip, you can add this function to your child theme or have it in a plugin:

    function get_the_user_ip() {
    if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
    //check ip from share internet
    $ip = $_SERVER['HTTP_CLIENT_IP'];
    } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
    //to check ip is pass from proxy
    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
    } else {
    $ip = $_SERVER['REMOTE_ADDR'];
    }
    return apply_filters( 'wpb_get_ip', $ip );
    }
    add_shortcode('show_ip', 'get_the_user_ip');
    

    Then use a shortcode [show_ip] where needed

    #168873
    Momshof
    Participant

    Hi. I am hoping someone can assist me with this request.

    I have installed BBPress and have created forums for my site.

    http://dtcdancecentral.com/DTCTest/forums/

    My background is dark on every page of the site, but I want to make the forums (once you drill down into a specific forum page & topics index page & replies page) white.

    The problem I am having is that these pages are not actual pages – I have no idea where they are. I thought I would find them in my pages but the only thing there is the Forum page I created and inserted the BBPress forum shortcode.

    I tried using the following code in the Divi Theme options & it worked; however, it changed all my backgrounds in all my other pages that I do not want touched :

    For these types of pages :
    1.http://dtcdancecentral.com/DTCTest/foru … community/
    2.http://dtcdancecentral.com/DTCTest/foru … ic-2-test/

    /*BBPress each indiv forum background – drill down 1*/
    #main-content .container {
    background: #ffffff !important
    }

    /*BBPress each topic/reply background – drill down 2*/
    #main-content {
    background: #ffffff !important
    }

    Thanks so much for any assistance you can provide.

    #168872
    rbfkak
    Participant

    Hi Robin W,

    Is there a way to include make these fields available to the get_available_tags function in bbpress-notify-nospam/bbpress-notify-nospam.php. Basically I’m trying to display these fields in the email notification area. Listed is the code for the get_available_tags function… Any input would be greatly appreciated. Many thanks.

    public function get_available_tags( $tags='' )
    	{
    		$tags 		= '[blogname], [topic-title], [topic-content], [topic-excerpt], [topic-url], [topic-replyurl], [topic-author]';
    		$extra_tags = apply_filters( 'bbpnns_extra_topic_tags',  null );
    		
    		if ( $extra_tags )
    			$tags .= ', '. $extra_tags;
    		
    		return $tags;		
    	}
    #168868
    Robkk
    Moderator

    After debugging everything, set WP_Debug to false.

    Here is a post explaining the bbp_setup_current_user was called incorrectly error.

    bbp_setup_current_user was called incorrectly

    Momshof
    Participant

    Thanks so much! I appreciate your assistance.

    I added the code to my Divi Theme customizer & it took care of the lines – πŸ™‚

    I wish I knew today how to use the page builder with BBPress. If it is not Divi – I have not learned how. Another item to research & learn.

    Is there a file or code I could add that would “hide” the reply text box & create a new topic text box all together from the forum pages until a user actually clicks on “reply” or “Create a Topic”?

    Do I need to create a new topic for this as it is still dealing with the “look”? If so – please let me know.

    #168852
    Robkk
    Moderator

    @tallsam Its not really an issue since it should show a list of items in the latest version of bbPress and since Stephen’s ticket he linked to has not been committed yet.

    IF @pinkishhue’s Custom CSS code does not work after you placed it in your child themes style.css file and have also tried adding !important on the end, you can try my custom php code snippet.

    Make sure to place this into your child themes functions.php file in your child theme.

    // Only return one entry for revision log otherwise it gets cluttered
    function bbp_trim_revision_log( $r='' ) {
     $arr = array( end( $r ));
     reset( $r );
     
     return( $arr );
    }
     
    add_filter( 'bbp_get_reply_revisions', 'bbp_trim_revision_log', 20, 1 );
    add_filter( 'bbp_get_topic_revisions', 'bbp_trim_revision_log', 20, 1 );
    Robkk
    Moderator

    This is how you remove the line.

    #main-content .container:before {
        display: none !important;
    }

    Also I updated this bbpress.php a little more, as I do not think you will be using page builder with bbPress pages.

    https://gist.github.com/robkk/f51753f1c7a5641796d8

    #168848
    Robkk
    Moderator

    @natinho68

    Ok I see now. When you click the author link on your production site, you can see it is trying to lead to the bbPress forum profile then it just redirects to the homepage for some reason. What we need to do is try to find what is causing the redirect.

    Can you do some troubleshooting to first see if you deactivate ultimate member and the bbPress addon, that the author links go to the regular bbPress forum profiles fine.

    Can you also try in a default WordPress theme too to see if the same issue is present.

    Troubleshooting

    #168846
    Robkk
    Moderator

    I cannot see the same issue you are getting with the generatepress theme and also twenty fifteen.

    Did you close and sticky a topic from the WordPress backend??

    Can you link to your site so I can see if this is a possible CSS issue?

    When you switch to a default theme to leave it as default, do not transfer custom code snippets that you may have from one theme to it. Same thing if you have custom code snippets in a seperate plugin to try to pinpoint where the issue is present.

    #168842
    Robkk
    Moderator

    Since you said it turns into a draft, I guess this might be a separate plugin causing the issue.

    Try some plugin troubleshooting to try to find what plugin is causing that specifically.

    Troubleshooting

Viewing 25 results - 7,351 through 7,375 (of 32,519 total)
Skip to toolbar