Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 5,842 total)

  • Robin W
    Moderator

    @robin-w

    since bbpress just uses wordpress then anything that works in wordpress

    eg code

    https://stackoverflow.com/questions/21928355/list-currently-logged-in-users-wordpress

    or plugin

    WP-UserOnline

    There are probably lots more examples, I just googled ‘wordpress list logged in users plugin’


    Robin W
    Moderator

    @robin-w

    add this to your theme’s custom css section

    #bbpress-forums div.reply {
    width: auto !important;
    }


    Robin W
    Moderator

    @robin-w

    1. try

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


    Robin W
    Moderator

    @robin-w

    great – glad to have helped


    Robin W
    Moderator

    @robin-w

    bbpress does not directly provide for image upload, so you’ll need to use a plugin such as

    GD bbPress Attachments

    Whatvere plugin you use, suggest you contact that plugins author for what works well with it


    Robin W
    Moderator

    @robin-w

    let me see if I can contact the author


    Robin W
    Moderator

    @robin-w

    This is hopefully close to what you want – play with the numbers

    #bbp-forum-76 {
    	padding-top : 10px ;
    }
    
    #bbp-forum-76 li.bbp-forum-info a.bbp-forum-title::before {
    	font-family: FontAwesome;
    	content: '\f058';
    	color: #6190C3;
    	font-size: 50px;
    	padding-right: 30px;
    	position: relative;
    	top: 15px;
    }

    Robin W
    Moderator

    @robin-w

    ok, I worked out an easy way to do that

    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-reply.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-reply.php
    bbPress will now use this template instead of the original
    and you can amend this

    so replace line 61 which reads

    <div class="bbp-reply-content">

    with

    <?php
    	//now check if it is the topic author
    		$author = bbp_get_reply_author_id(bbp_get_reply_id()) ;
    		$current_user = get_current_user_id() ;
    		if ($author == $current_user) {
    			echo '<div class="bbp-reply-content bbp-author">' ;
    		}
    		else echo '<div class="bbp-reply-content">' ;
    	?>
    

    then just add the bbp-author css styling to your theme’s custom css

    eg

    .bbp-author {
    background : green ;
    }

    you might require

    .bbp-author {
    background : green !important;
    }

    depending on where you put the css.

    In reply to: Per-forum moderators

    Robin W
    Moderator

    @robin-w

    @shland01 – I’ve answered in the other link, so post that here for completeness

    Specific Moderator per forum?


    and I’ll only update the other one


    Robin W
    Moderator

    @robin-w

    Does the existing plugin still work?

    Old plugins can be very stable and not need much updating.

    If it works, I might contact the author.

    But I need someone to confirm it works first (big difference between updating a working plugin and getting a non-working one going again !)


    Robin W
    Moderator

    @robin-w

    I haven’t got 2.6rc3 live at the moment as I’m tied up supporting the live version. However I’d guess that moderator support per forum is front end only, as they’ll have a participant role when you access the backend.

    I presume that the user is participant and sees no options for topics and replies in the admin section – yes ?


    Robin W
    Moderator

    @robin-w

    Stills shows under User Roll

    even after this ?

    Anywhere in your theme (i put on a custom page template), use this:

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_role");
    In reply to: RKK Login Widget gone?

    Robin W
    Moderator

    @robin-w

    I presume Rkk has deleted.

    my styles pack plugin has a shortcode

    [Profile label=’This is the label’] will show

    which will let you add that as a text box beneath the standard bbpress login.

    bbp style pack

    once installed and activated – go to

    dashboard>settings>bbp style pack>shortcodes to find what the options are


    Robin W
    Moderator

    @robin-w

    try

    #bbp-forum-9 li.bbp-forum-info a.bbp-forum-title:before {
    	font-family: FontAwesome;
    	content: '\f058';
    	color: #6190C3;
    	font-size: 30px;
     }	

    Robin W
    Moderator

    @robin-w

    no problem, sorry we couldn’t help


    Robin W
    Moderator

    @robin-w

    the edit time is set in

    dashboard>settings>forums>forum user settings > disallow editing after

    default is 10 mins

    you can set this to as may 9’sd as yo like eg

    9999999999 to make it pretty well always editable !


    Robin W
    Moderator

    @robin-w

    Just wondering how the script makes the decision if Iā€™m creating or editing a topic.

    not an area of the plugin I’ve yet delved into ! hense the quick and dirty !


    Robin W
    Moderator

    @robin-w

    is the code still in there – I can’t see it and you seem to have gone back to the original center alignment


    Robin W
    Moderator

    @robin-w

    that’s something that a plugin is adding – what email/bbpress additional plugins are you running?

    I know you are fixed, but this information will help someone else who later has the same problem šŸ™‚


    Robin W
    Moderator

    @robin-w

    this css should work

    #bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img {
    	max-width: 100%;
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }

    presume your theme has a custom css area you can put this in ?


    Robin W
    Moderator

    @robin-w

    plugin updates can do funny things.

    can you just say where exactly you did

    ‘switching from HTML email type to PLAIN text’

    Thanks


    Robin W
    Moderator

    @robin-w

    the quick and dirty solution is to get the topic IP before executing bbp_insert_reply and reset it afterwards

    eg (untested)

    $reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content);
    $reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id);
    //get the topic IP so we can reset it later
    $ip = get_post_meta( $topic_id, '_bbp_author_ip', false );
    bbp_insert_reply($reply_data,$reply_meta);
    //reset the topic IP
    update_post_meta( $topic_id, '_bbp_author_ip', $ip, false );

    I could spend a long time working out a more elegant fix, but hopefully the above will be enough !


    Robin W
    Moderator

    @robin-w

    ok, I know why it is doing it, I’ll do some digging to see how to get around

    your function calls

    bbp_insert_reply

    this function is in

    /includes/replies/functions.php starts line 29

    This creates the reply, and then on line 64 it has

    // Update the topic
    	$topic_id = bbp_get_reply_topic_id( $reply_id );
    	if ( !empty( $topic_id ) ) {
    		bbp_update_topic( $topic_id );
    	}

    bbp_update_topic is held in

    /includes/topics/functions.php starting line 818

    has a check to see if you are creating or editing a topic.

    if you are not editing a topic, it presumes that you are creating so starting line 884

    // Update associated topic values if this is a new topic
    	if ( empty( $is_edit ) ) {
    
    		// Update poster IP if not editing
    		update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );

    since at that point your call via bbp_insert_reply and bbp_update_topic is NOT an edit, it assumes it is a new topic and updates with the current user IP as above.

    let me think about easiest way to fix.


    Robin W
    Moderator

    @robin-w

    I cannot see from user ned what the problem is.

    if you have two sites, one working and one not, then you will need to go through every setting to see where the difference is.

    Even if you gave me access to both sites – I could still spend hours working out what is wrong, so sorry that is beyond free help.


    Robin W
    Moderator

    @robin-w

    ok, so do you have a plugin adding images (eg GD bbPress Attachments) or how do you do this?

Viewing 25 replies - 1 through 25 (of 5,842 total)