arno8 (@arno8)

Forum Replies Created

Viewing 22 replies - 1 through 22 (of 22 total)
  • @arno8

    Participant

    Anyone please??

    @arno8

    Participant

    go to user>all users search for all your sites keymasters.

    then click edit by each users avatar

    after that you are in the edit profile page for that particular user and in the url it says
    user_id=(number)

    get all the user id numbers and then you can stack them using commas in a css code like this

    .type-reply.user-id-1,.type-reply.user-id-2,.type-reply.user-id-3 { background: yellow; }

    @arno8

    Participant

    Bump, got this working

    Now looking for a way to add icons in front of my Sub forums , tried this code:

    add_post_type_support('forum_sub_forums', array('thumbnail'));
    
    function ks_forum_icons() {
    	if ( 'forum_sub_forums' == get_post_type() ) {
    		global $post;
    	    if ( has_post_thumbnail($post->ID) )
    	    	echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));
    	 }
    }
    add_action('bbp_theme_before_forum_sub_forums_title','ks_forum_icons');

    but that didnt do anything.

    @arno8

    Participant

    Anyone found a fix for this?

    In reply to: 2 roles instead of 1

    @arno8

    Participant

    Thank you sir 🙂

    @arno8

    Participant

    Sorry to come back late to this @robkk , I got this working with

    #bbpress-forums .type-reply.user-id-6 {
        background:url(https://www.primeknights.com/wp-content/uploads/2014/09/Naamloos-2.jpg) repeat;
    }
    #bbpress-forums div.odd.user-id-6 {
            background:url(https://www.primeknights.com/wp-content/uploads/2014/09/Naamloos-2.jpg) repeat;
    }

    Thnx for your help 🙂

    @arno8

    Participant

    yes

    @arno8

    Participant

    Still shows like:

    @arno8

    Participant

    you put the add filter code into your child themes functions.php or if you have a functionality plugin put it there.

    This worked perfectly.

    if you got it to work send a link to the post so i can check it out.

    i dont get it work 🙁

    @arno8

    Participant

    @robkk it only worked on 1 topic, how can i get it working for the enitre forum?

    @arno8

    Participant

    And where would I add the add_filter code please?

    @arno8

    Participant

    Thanks man, I can’t wait to see this properly 😀 hopefully soon.

    btw the site I wanna add it to is http://www.primeknights.com, so u can get an idea of what I’m trying to do.

    @arno8

    Participant

    Thanks this did it man , could you help me with this to:

    im trying to add small images in front of the roles, every role has a different one, so im trying to add a class depending on the role, i know i gotta make edits in loop-single-reply.php

    right here somewhere

    
    	<div class="bbp-reply-author">
    
    		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    
    		<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
    
    		<?php if ( bbp_is_user_keymaster() ) : ?>
    
    			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>

    You got any ideas?

    @arno8

    Participant

    Still no clue where to add `$reply_id = bbp_get_reply_id( $reply_id );
    $abc_role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );`

    I tried on the location where u said, like this:

    <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    $reply_id = bbp_get_reply_id( $reply_id );
    $abc_role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
    	<div class="bbp-meta">
    
    		<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
    
    		<?php if ( bbp_is_single_user_replies() ) : ?>
    
    			<span class="bbp-header">
    				<?php _e( 'in reply to: ', 'bbpress' ); ?>
    				<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
    			</span>
    
    		<?php endif; ?>
    
    		<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
    
    		<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    
    		<?php bbp_reply_admin_links(); ?>
    
    		<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
    
    	</div><!-- .bbp-meta -->
    
    </div><!-- #post-<?php bbp_reply_id();?>-->

    But this just shows the custom code on the website instead of running it.

    please help on this 🙂

    @arno8

    Participant

    Im not using phpbb, im using bbpress

    @arno8

    Participant

    sure there’s no easier way?

    @arno8

    Participant

    anyone please

    @arno8

    Participant

    where do i place it? and do i change the blabbermouth to my custom role name?

    @arno8

    Participant

    .

    @arno8

    Participant

    pity 🙁

    @arno8

    Participant

    Ahh your right, and what about the images?

    In reply to: Add forum roles

    @arno8

    Participant

    I used this code, and added a few new ones but when i try assignem them it only shows 1

Viewing 22 replies - 1 through 22 (of 22 total)