Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,626 through 5,650 (of 14,141 total)
  • @robin-w

    Moderator

    you need to learn how to look at classes in ‘developer’ in your browser, and then you can do all this yourself.

    an example of the relevant image code is

    <div class="tc-avatar" style="float:left;border-radius: 25px;"><a class="tc-profile-link" href="http://gos.rewweb.co.uk/users/admin/"><img alt="" src="https://secure.gravatar.com/avatar/dd803ad797ee5ca256d4be78c98fb305?s=96&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/dd803ad797ee5ca256d4be78c98fb305?s=192&d=mm&r=g 2x" class="avatar avatar-96 photo" width="96" height="96"></a></div>

    and the text

    <div class="tc-content" style="padding-left:50px ; top: 50%;transform: translateY(-50%);position: relative;"><a class="tc-profile-link" href="http://xxx.com/users/admin/">admin</a>303</div>

    @robin-w

    Moderator

    updated this – latest version does not error

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    try

    dashboard>tools>forums>repair forums and run one at a time

    @robin-w

    Moderator

    bbp topic count

    and use shortcode

    [display-top-users]

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    bbpress uses

    edit_topics and edit_replies so doesn’t use the capabilities above

    but suspect your code needs an if statement, so I’d do

    // check frontend user privileges
    if ( is_user_logged_in() && ( (current_user_can('edit_posts') || current_user_can('edit_pages') ) ) $canEdit = true ;

    @robin-w

    Moderator

    this

    Function reference

    suggests

    pll_register_string($name, $string, $group, $multiline);
    ‘$name’ => (required) name provided for sorting convenience (ex: ‘myplugin’)
    ‘$string’ => (required) the string to translate
    ‘$group’ => (optional) the group in which the string is registered, defaults to ‘polylang’
    ‘$multiline’ => (optional) if set to true, the translation text field will be multiline, defaults to false

    so maybe

    pll_register_string( 'slug_users', '_bbp_user_slug', 'polylang' );

    @robin-w

    Moderator

    it’s a computer, they do that !

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    ok try

    dashboard>tools>forums>repair forums

    and start with

    Recalculate parent forum for each topic and reply

    but if that doesn’t work, run each one in turn

    @robin-w

    Moderator

    @selvaperux – can you raise a fresh topic, and explain further what you are after – thanks

    @robin-w

    Moderator

    admins don’t get subscription emails by default either

    @robin-w

    Moderator

    without knowing precisely how you want your forum to work, then no

    you create groups, uses belong to groups and forums belong to groups, so if

    forum a and forum b both allow group 1, then any user in group 1 can access both forums

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    but if you really want this box gone then,

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit to remove

    <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?>
    
    						<p>
    							<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> />
    
    							<?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php else : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php endif; ?>
    						</p>
    
    						<?php do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>

    and save

    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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    then repeat for form-reply.php removing

    <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
    
    						<p>
    
    							<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
    
    							<?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php else : ?>
    
    								<label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    
    							<?php endif; ?>
    
    						</p>
    
    						<?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>

    @robin-w

    Moderator

    this box is not ticked by default

    @robin-w

    Moderator

    add this to your theme’s custom css settings

    .bbp_topic_subscription {
    display : none !important ;
    }

    @robin-w

    Moderator

    can you a specific example of one that is wrong?

    @robin-w

    Moderator

    '_bbp_user_slug' => 'users', // User profile slug

    is definately the slug

    so is the context right – maybe ‘polylang’ which seesm to be the default?

    and possibly change it’s hook to ‘plugins_loaded’ to make sure bbpress and polylang have both loaded before firing

    but i’m guessing 🙂

    @robin-w

    Moderator

    depends on why you are getting them at the moment.

    You can turn off all subscriptions for the whole site in

    dashboard>settings>forums>Allow users to subscribe to forums and topics

    If you just mean for you as a user or admin, then just unsubscribe from forums and topics in your profile

    additionally you may have other bbpress plugins that are sending you emails.

    @robin-w

    Moderator

    It isn;t on my site, so a css thing with your theme.

    but glad it works, and thanks for testing !!

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    you can only merge topics in bbpress, so yes merge two topics

    @robin-w

    Moderator

    the variable mismatch fix now does both split and merge

Viewing 25 replies - 5,626 through 5,650 (of 14,141 total)