Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,476 through 9,500 (of 32,519 total)
  • Author
    Search Results
  • #158504
    eVersatile
    Participant

    That’s what I’m trying to avoid. I don’t want to have to use the shortcode to call onto the id because it would have to be self generating when a new topic is created.

    Robin W
    Moderator

    ok, if you have ftp access then…

    create a directory on your 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/loop-single-forum.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/loop-single-forum.php
    bbPress will now use this template instead of the original

    Then look at line 74

    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    
    

    The ‘size’ => 14 is the avatar size, so reduce this to what you want.

    #158489
    Robin W
    Moderator
    #158474
    Matthias
    Participant

    Hm, I’m trying to format the lead topic different different from the replies, but I even can not find ul.bbp-lead-topic im my source code.
    Did I miss something?

    Thanks
    Matthias

    #158467
    Robin W
    Moderator

    an ugly green background

    it was an example not a solution !

    If you want to get into this side you should learn about developer tools

    https://developer.chrome.com/devtools

    https://msdn.microsoft.com/en-gb/library/ie/gg589507(v=vs.85).aspx

    then you can quickly see what is being used.

    #158463
    –Q–Shadows
    Participant

    Hey,

    I meant adding a background similar to that we have here on bbpress.org forums (boxed up), the code u gave me just adds an ugly green background – http://imgur.com/ps2CL3l

    #158458

    In reply to: Oh Brother…

    markf1
    Participant

    Thank you Robkk,

    The bbPress is working perfectly in my child theme without having a bbPress.php file included in the theme at all, so I’m happy with it all now.

    I guess I mis understood the codex instructions or more likely was trying to make things more complicated than need be (i specialize in that).

    your reply helps me understand how it should be done. thanks!

    #158443

    Topic: Hide text from users

    in forum Plugins
    weirdman
    Participant

    is there any plugin that can hide a text within code ? li [hide] users shouldnt see this. only staff can see this. [/code]

    if there is any plugin or a way to do that pls help me out. thanks

    #158442

    In reply to: Layout in progress

    peter-hamilton
    Participant

    Hi Robkk, thanks for having a look again.

    I agree with the profile nav and am changing that next, have just downloaded the plugin you mentioned and will have a look at it, looks a lot bigger then the code I am using…but has a lot more functions I like to include like sharing those backgrounds on activity etc, will use it tomorrow.

    I also removed all Epicweb stuff so the forums page looks normal again, I was long focused on creating the right category/forum list, but ended up using a page with shortcodes in the end, so that code was just clutter anyway, so thanks again.

    Peter Hamilton

    #158440
    Robkk
    Moderator

    @smwln

    usually creating the bbpress.php file and removing the about author code should fix it

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

    #158426
    Robkk
    Moderator

    Does anyone know if this is a plugin or is this all back end coded?

    its all custom code

    The more I look at it, it appears to be the core WordPress “Howdy, User” admin bar

    that it , even in the source it says #wpadminbar

    #158423

    In reply to: Oh Brother…

    Robkk
    Moderator

    ok so copy page.php and rename the copied version to bbpress.php and make sure its at the root of your theme with the page.php file and single.php file and see if it works.

    you can test it out by removing the <?php get_sidebar(); ?> code and see if the sidebar is removed only on bbpress pages and posts.

    #158419

    In reply to: Error in permalink

    Robkk
    Moderator

    @david13_13

    yeah this could happen on an active site especially if a popular topic is posted after post #1001

    then someone bumped the topic to #4938

    you can check and see if a popular topic was posted between these posts by checking some topics post time.

    you can show consecutive numbers though starting from #1 on each topic using bbp_reply_position()to replace the reply id in loop-single-reply.php

    but if a spam post comes in it wont be consecutive anymore it will skip a few

    #158415
    Robkk
    Moderator

    you can also hide it with CSS since it isnt required

    i also included the topic form website field

    .bbp-reply-form #bbp_anonymous_website,
    .bbp-topic-form #bbp_anonymous_website,
    label[for="bbp_anonymous_website"] {
    	display: none !important;
    }
    #158411

    In reply to: Oh Brother…

    Robkk
    Moderator

    @markf1

    at the very top you posted code for your bbpress.php file

    it isnt suppose to have code for the bbpress archive-forum.php file it is suppose to be similar to the themes page.php file nothing else.

    maybe you doing the bbpress.php file incorrectly caused the issue.

    #158409
    Robkk
    Moderator

    @roboticrobots

    you should follow this just in case you were hacked

    https://codex.wordpress.org/FAQ_My_site_was_hacked

    #158404
    Robkk
    Moderator

    @supremor

    everyone is trying to help you out so any code, suggestions is for you and your issue.

    to help with the button because it looks to close to the input box try this css code

    .bbp-login-form .bbp-submit-wrapper {
    margin-top: 10px;
    }
    #158402
    Robkk
    Moderator

    @offgasin

    does this custom CSS help you

    div.bbp-template-notice, 
    div.indicator-hint {
    color: #fff;
    }
    #158399
    Robkk
    Moderator

    @robin-w

    they mostly communicate on SLACK especially a meeting on Wednesdays.. they do creep the forums sometimes though

    Any idea how I can get this to the attention of one of the authors


    @katiekat

    you could go on slack in the #bbpress channel and notify @jjj , there was another user who had an issue with subscriptions and he might look into it.

    Participate & Contribute


    @robin-w
    you might as well check the slack channel too , especially on Wednesdays

    #158398
    Robkk
    Moderator

    you can also call the bbp reply link link three times but removes some arguments you dont want to show and only show the ones you want.

    <?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => auto ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>
    #158397
    DuncanMarshall
    Participant

    It seems this is a known issue for WordPress when ordering by meta query. BBPress does this to order by “last active” which is the default (and in my case, desired).

    Loading a forum index, on my site, takes about 20 seconds.

    Here is the offending SQL:

        [9] => Array
            (
                [0] => SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1  AND wp_posts.post_parent = 9  AND wp_posts.post_type = 'topic' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed' OR wp_posts.post_status = 'private' OR wp_posts.post_status = 'hidden') AND (wp_postmeta.meta_key = '_bbp_last_active_time' ) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value DESC LIMIT 0, 15
                [1] => 19.448324918747
                [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), call_user_func_array, bbp_template_include, apply_filters('bbp_template_include'), call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_forum, bbp_get_template_part, bbp_locate_template, load_template, require('/themes/xx/bbpress/content-single-forum.php'), bbp_has_topics, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
            )

    There’s a ticket which seems to be addressing my problem here: https://bbpress.trac.wordpress.org/ticket/1925

    Unless I’m misreading it, the upshot is “We should probably be using post_modified on the topic instead of a meta value for ‘last activity’, so as to avoid using the JOIN… but we haven’t yet”.

    So how do other sites do it? This one, for instance? Or WordPress.org? They have more posts than I do, but have got around this issue somehow.

    Any solution?

    Thanks.

    #158395
    Robkk
    Moderator

    This is for TinyMCE

    /* This is for the button color */
    .mce-btn-group .mce-btn {
    	background: black;
    }
    
    /* This is for the icon color */
    .mce-toolbar .mce-ico {
    	color: white;
    }

    this is for the quicktags toolbar

    .wp-core-ui .button, .wp-core-ui .button-secondary {
    	color: white;
    	background: black;
    }
    #158393
    Robkk
    Moderator

    this would require some custom development

    i think you could do it fiddling with the reply form shortcode below

    [bbp-reply-form]

    but you have to make sure it gets the topics id first though im not sure.

    #158382
    Robin W
    Moderator

    ok, I’ve kicked the code around an adding this to your functions file will fix it.

    I may add it as an option to the profile at some stage, but not likely that soon, so paste this code into your functions file

    //* Code addition for bbP Profile Information Plugin
    add_action('register_form','myplugin_register_form');
    function myplugin_register_form (){
    	$rpi_label1 = ( isset( $_POST['rpi_label1'] ) ) ? $_POST['rpi_label1']: '';
    	$rpi_label2 = ( isset( $_POST['rpi_label2'] ) ) ? $_POST['rpi_label2']: '';
    	?>
    	<p>
    	
    	<p>
    		<label for="rpi_label1"><?php echo $rpi_options['item1_label'] ; ?><br />
    		<input type="text" name="rpi_label1" id="rpi_label1" class="input" value="<?php echo esc_attr(stripslashes($rpi_label1)); ?>" size="25" /></label>
    		</p>
    		<p>
                <label for="rpi_label2"><?php echo $rpi_options['item2_label'] ; ?><br />
            <input type="text" name="rpi_label2" id="rpi_label2" class="input" value="<?php echo esc_attr(stripslashes($rpi_label2)); ?>" size="25" /></label>
            </p>
    	
    	
    	<?php
    }
    
    add_filter('registration_errors', 'myplugin_registration_errors', 10, 3);
    function myplugin_registration_errors ($errors, $sanitized_user_login, $user_email) {
    	if ( empty( $_POST['rpi_label1'] ) )
    	$errors->add( 'rpi_label1_error', __('ERROR: You must include a first name.','mydomain') );
    	if ( empty( $_POST['rpi_label2'] ) )
    	$errors->add( 'rpi_label2_error', __('ERROR: You must include a last name.','mydomain') );
    	return $errors;
    }
    
    add_action('user_register', 'myplugin_user_register');
    function myplugin_user_register ($user_id) {
    	if ( isset( $_POST['rpi_label1'] ) )
    	update_user_meta($user_id, 'rpi_label1', $_POST['rpi_label1']);
    	if ( isset( $_POST['rpi_label2'] ) )
    	update_user_meta($user_id, 'rpi_label2', $_POST['rpi_label2']);
    }
    
    
    #158374
    Joe Dostie
    Participant

    Posting that code seems to have screwed up the thread…oh boy!

    Well in any case I have been doing some testing.

    It looks to me like bbPress is expecting to always be in the ROOT of the site.

    I can make some adjustments but it then appears to mess something else up.

    Take a look at this forum, I will leave it alone for a whole so you can look at it. But it explains the issue.

    If I make the forum a child page bbPress will not create the forum with the parent page.

    If you adjust the forum root setting to fix this, then bbPress takes over and the breadcrumb so the hierarchy is no longer correct.

    At least that’s how it appears to me…

Viewing 25 results - 9,476 through 9,500 (of 32,519 total)
Skip to toolbar