Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,976 through 9,000 (of 32,519 total)
  • Author
    Search Results
  • #161065
    Robkk
    Moderator

    @snecz

    i gave you two shortcodes for each instead

    place the two functions into your child themes functions.php or add the snippets to a functionality plugin.

    [bbp-topic-stats]

    function rk_bbp_topic_stats() {
        $stats = bbp_get_statistics();
        echo "<dl role='main'><dt>Topics</dt><dd><strong>";
        echo esc_html( $stats['topic_count'] );
        echo "</strong></dd></dl>";
    }
    
    add_shortcode('bbp-topic-stats', 'rk_bbp_topic_stats'); 

    [bbp-reply-stats]

    function rk_bbp_reply_stats() {
        $stats = bbp_get_statistics();
        echo "<dl role='main'><dt>Replies</dt><dd><strong>";
        echo esc_html( $stats['reply_count'] );
        echo "</strong></dd></dl>";
    }
    
    add_shortcode('bbp-reply-stats', 'rk_bbp_reply_stats');  
    #161064
    Robkk
    Moderator

    @sina_mech

    add this into your child themes functions.php file or put the snippet in a functionality plugin.

    function rk_new_topic_button() {
    	echo '<a href="#new-topic-0" class="bbp-new-topic-button button btn input[type="button"]" >New Topic</a>';
    }
    
    add_action('bbp_template_before_topics_loop','rk_new_topic_button');
    #161062
    Robkk
    Moderator

    add this to your child themes functions.php file or insert this snippet into a functionality plugin and all links posted to your forum would just return plain text.

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4    );	
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4    );
    #161058
    Stephen Edgar
    Keymaster

    Either comment out the code section using standard PHP syntax or simply remove that chunk of code ๐Ÿ™‚

    #161055
    Robin W
    Moderator

    If your site is that busy, you really should have a test site

    https://codex.bbpress.org/creating-a-test-site/

    Dan & Jennifer
    Participant

    Hi there!

    We’re trying to move our forums from a custom Q&A platform to bbPress… very glad there is now an importer! ๐Ÿ™‚

    So I copied example.php to myimport.php, changed the class name, and updated the tables/columns that apply (the ones that exist in the old database).

    And ran the import…

    But I keep running into import errors for fields that don’t apply as they don’t exist in the other database, like forums_table.the_reply_count

    So for a field that just does not exist in the old database, what’s the proper syntax for “ignore this”? ๐Ÿ™‚

    For example, this one…

    
    // Forum topic count (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'forums_table',
    			'from_fieldname' => 'the_topic_count',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_topic_count'
    		);
    

    I looked for this on the importer codex page, but just don’t see it. ๐Ÿ™‚

    Thanks!
    Dan

    #161045
    snecz
    Participant

    Thanks Robkk. [bbp-stats] is working. But I need topic count and replies count separately and in different places.
    So I’ve tried with <?php echo esc_html( $stats['topic_count'] ); ?> and <?php echo esc_html( $stats['reply_count'] ); ?> but this code doesn’t work on my home page.
    Why is that?

    #161040
    andrew55
    Participant

    I recently moved our bbPress installation from one folder to another. Everything seemed to go well, accept when I loggged in, my admin account lost all admin privileges.

    Fortunately, I have another second test bbPress installation and could see what admin status looks like in phpmyadmin.

    So, in the first installation, using phpmyadmin, in the metavalue of the wp_usermeta table, I changed:

    a:2:{s:10:"subscriber";i:1;s:15:"bbp_participant";b:1;}

    to…

    a:2:{s:13:"administrator";b:1;s:13:"bbp_keymaster";b:1;}

    It seems to work. My admin account has admin privileges.

    Now I understand the administrator and bbp_keymaster in the string, but what about the rest of the characters? For example, I changed s:10 to s:13.

    Is this OK?

    I’m just not sure what these other characters mean and what they need to be.

    Thanks for any help.

    #161037
    sndstrm
    Participant

    I already coded a private bbPress Plugin, that extends it to something like Mailman.
    It just periodically catches mails to @forum.domain.tld via IMAP and adds a new reply to the topic with the Mail content (quotation skipped).
    The notification is tweaked: the Reply-To header is replaced by reply-[topic-id]@forum.domain.tld, so the user can easily reply to the topic. But this is currently done by completely replacing the bbp_notify_topic_subscribers function with my own one (including the original content, just replacing the Reply-To).
    All calls to bbp_subscription_mail_headers and bbp_subscription_from_email or bbp_subscription_to_email are just called with $headers or the address itself. As of 1.5.6 the Reply-To is no longer set by bbPress.

    Will there be a way to include the topic-id (preferred in header altering) in upcoming releases? Or maybe a solution by bbPress itself to respond to notification Mails?

    xenous
    Participant

    you can configure the noreply email simply with:

    
    add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email');
    function no_reply_email(){
        $email = 'noreply@yourdomain.com';
        return $email;
    }

    bbPress uses BCC for sending subscription emails and the noreply email is used as to field. This is for better hardware (cpu and memory) usage as if you were to loop each user subscribed to content it would be troublesome.
    you can change that default to email address as well with :

    
    add_filter('bbp_subscription_to_email','my_bbp_subscription_to_email');
    function my_bbp_subscription_to_email(){
        $email = 'noreply@yourdomain.com'; // any email you want
        return $email;
    }

    I hope this helps.

    #161013
    Robkk
    Moderator
    #161004
    Robkk
    Moderator

    @katootje Robin forgot he already had this type of functionality in one of his other plugins.

    bbp additional shortcodes

    #160999
    Robkk
    Moderator

    @casnbug

    its definitely something wrong with the freshness link just cant tell if a code snippet could be affecting the code or what.

    you can go through the basic troubleshooting for general issues by following this post

    Before Posting

    Robkk
    Moderator

    @digitalninjaza

    this should do what your talking about

    function rk_topic_description() {
    	    	echo bbp_topic_excerpt();
    }
    
    add_action('bbp_theme_after_topic_title','rk_topic_description');
    #160994
    Robkk
    Moderator

    use the bbpress stats widget or shortcode [bbp-stats] in a page

    for just all topics it would placing these in a template.

    these come the template content-statistics.php which you could copy into child theme into a folder called bbpress and customize.

    <?php echo esc_html( $stats['topic_count'] ); ?>

    for just replies it would be

    <?php echo esc_html( $stats['reply_count'] ); ?>

    #160993
    Robkk
    Moderator

    i think this would require making a bbpress.php file from a copy of the page.php file and then make sure the sidebar is still there.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    if you need help it would be helpful to also contact your theme author about this.

    #160991

    In reply to: Tittle

    Robkk
    Moderator

    i donโ€™t now where to insert the code you told and also thanks for your help

    alright do you know what FTP is?? or how to upload files through your hosts file manager??

    because you would bascially just copy that file from here

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout/

    and put it into your child theme (if you have a child theme) and put it into a folder called bbpress.

    Then you would have to create categories for every forum you have for it to have this effect like phpbb has.

    if you need a better explanation on certain things please just ask and i will try to help you.

    #160976
    KikoPavon
    Participant

    Hello:
    I just changed my theme. Now i am running the eleven 40 pro with Genesis. The problem is that i do lost all the buttons in my html and visual editor of my forums.
    Any idea how to bring them back? I tried https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/ bur it doesnยดt work. I also tried https://codex.bbpress.org/enable-visual-editor/ but no rusults.
    Help please?

    #160962
    oldmankit
    Participant

    I just installed bbPress version 2.5.6 on WordPress 4.1.1 on a local development server (XAMPP).

    After activiting the plugin, if I visit any frontend page on my site I get an error appear right after the Admin Bar.

    Warning: in_array() expects parameter 2 to be array, null given in localhost\wp-content\plugins\bbpress\includes\common\functions.php on line 1446

    I did some searching and found many people have a conflict with NextGen Gallery, however I don’t have that plugin installed.

    I can confirm this error still happens with 2015 theme.

    #160960

    In reply to: Tittle

    wuichy
    Participant

    The thing is that im new in wordpress this is my webpage http://www.wuichy.com and i don’t now where to insert the code you told and also thanks for your help

    #160931
    Robin W
    Moderator

    sorry without spending a large amount of time and code, best I can come up with.

    #160925
    Robin W
    Moderator

    yes, just create a topic, no forums, and then create a page with the following shortcode

    [bbp-single-topic id=$topic_id]

    That way you’ll just have a page with that one topic.

    #160915

    In reply to: Post Type

    Robin W
    Moderator
    #160912
    Robin W
    Moderator

    ok, so is it the same with plugins disabled and default theme as per

    Before Posting

    and how is your forums page constructed – eg shortcodes, bbpress.php file etc.

    #160888
    Robin W
    Moderator

    ok,

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

    contains a highly customisable latest activity widget

    and

    https://wordpress.org/plugins/amr-shortcode-any-widget/

    turns any widget into shortcode

Viewing 25 results - 8,976 through 9,000 (of 32,519 total)
Skip to toolbar