Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,076 through 4,100 (of 14,265 total)
  • In reply to: a link on the picture

    @robin-w

    Moderator

    might have been too complicated, maybe just try

    add_action( 'bbp_theme_after_topic_freshness_author', 'rew_freshness_display_reply');
    
    function rew_freshness_display_reply ($topic_id = 0) {
    		$topic_id   = bbp_get_topic_id( $topic_id );
    		$link_url   = bbp_get_topic_last_reply_url( $topic_id );
    		
    		$anchor = '<a class="rew_freshness_display_image" href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '"><img class="plato" style="width: 29px; height: 20px;" src="https://webershoot.com/mesimages/transplato.png">' . '</a>';
    	
    echo '<p class="platopost">'.$anchor.'</p>';
    }

    @robin-w

    Moderator

    can you give me the exact error please

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    ‘Oops! That embed can’t be found’ is not a bbpress error, it’s a wordpress one.

    but looking at the link below, I’d suggest it is related to your permalinks, and maybe the fact that you are using ID’s and a plugin for that

    https://wordpress.org/support/topic/wp-document-revision-plugin-permalink-does-not-work-to-embed/

    @robin-w

    Moderator

    try

    function rew_change_text( $translated_text, $text, $domain ) {
    	if ( $text == '<strong>Error</strong>: Your reply cannot be created at this time.') {
    	$translated_text = '<strong>Error</strong>: New moderation message';
    	}
    	return $translated_text;
    }
    
    add_filter( 'gettext', 'rew_change_text', 20, 3 );

    @robin-w

    Moderator

    what theme are you using ?

    In reply to: a link on the picture

    @robin-w

    Moderator

    Try

    add_action( 'bbp_theme_after_topic_freshness_author', 'rew_freshness_display_reply');
    function rew_freshness_display_reply ($forum_id = 0) {
    	// Verify forum and get last active meta
    	$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id );
    		$link_url  = $title = '';
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    
    		if ( bbp_is_topic( $active_id ) ) {
    			//then reset forum_id to the forum of the active topic in case it is a sub forum
    			//$forum_id = bbp_get_topic_forum_id($active_id);
    			$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    			$title    = bbp_get_forum_last_topic_title( $forum_id );
    		} elseif ( bbp_is_reply( $active_id ) ) {
    			//then reset forum_id to the forum of the active topic in case it is a sub forum
    			//$forum_id = bbp_get_reply_forum_id($active_id);
    			$link_url = bbp_get_forum_last_reply_url( $forum_id );
    			$title    = bbp_get_forum_last_reply_title( $forum_id );
    		}
    		
    		$anchor = '<a class="rew_freshness_display_image" href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '"><img class="plato" style="width: 29px; height: 20px;" src="https://webershoot.com/mesimages/transplato.png">' . '</a>';
    	
    echo '<p class="platopost">'.$anchor.'</p>';
    }

    @robin-w

    Moderator

    looks like you have already solved this?

    @robin-w

    Moderator

    if you are using copy/paste then paste as plain text

    In reply to: a link on the picture

    @robin-w

    Moderator

    what is your existing code?

    In reply to: Private forums

    @robin-w

    Moderator

    great – glad you are fixed !

    In reply to: Private forums

    @robin-w

    Moderator

    yes – that is no problem – just go into dashboard>users>edit and you can select which groups they belong to

    In reply to: Private forums

    @robin-w

    Moderator

    nothing automatic, I’d suggest you just create a check list or drop down list in your contact form

    In reply to: Private forums

    @robin-w

    Moderator

    set up a page and use a contact form plugin, then set the redirects in the private groups plugin forum visibility tab to that page

    In reply to: Private forums

    @robin-w

    Moderator

    set forum to public and use private groups to protect it – ie set at least one group ! Then use forum visibility

    In reply to: Private forums

    @robin-w

    Moderator

    @robin-w

    Moderator

    you seems to have an inline style which is overwriting any other styling eg

    style="height: auto !important;"> and <p style="height: auto !important;"

    from this code.

    <div class="bbp-reply-content" style="height: auto !important;">
    
    		
    		-ad-client="ca-pub-8895339382096709" data-adsbygoogle-status="done"><ins<p><strong>1. The Profession of Faith—The Shahada</strong></p>
    <p>&nbsp;</p>
    <p style="height: auto !important;">The Profession of Faith, the shahada, is the most fundamental expression of Islamic<br>

    It may be related to where you are importing the text from

    @robin-w

    Moderator

    Great – glad you are fixed 🙂

    @robin-w

    Moderator

    sorry, I don’t understand the question?

    @robin-w

    Moderator

    the one above should work – I changed

    $forum_id = '12345'
    to
    $forum_id == '12345'

    @robin-w

    Moderator

    oops sorry should read

    $forum_id = bbp_get_topic_forum_id()
            if((!bee_catch_image() == '') && $forum_id == '12345'){

    == being compare

    @robin-w

    Moderator

    probably

    $forum_id = bbp_get_topic_forum_id()
            if((!bee_catch_image() == '') && $forum_id = '12345'){

    @robin-w

    Moderator

    The default is that they can do exactly this.

    I’d suggest you check your settings in

    dashboard>settings>discussion

    @robin-w

    Moderator

    for ‘Follow this link to join the discussion’ – you are welcome to style it as a button if you wish

    go to

    dashbaoard>settings>discussion and change

    Follow this link to join the discussion

    to

    <div class="myButton">Follow this link to join the discussion</div>

    you can then style a button, if you don’t know how go to

    https://www.bestcssbuttongenerator.com/

    @robin-w

    Moderator

    the comments part of bbpress is not very nice.

    you are presuming that what your site shows is the same as everyone else’s – can you explain what you mean?

    my test site shows what I would expect

Viewing 25 replies - 4,076 through 4,100 (of 14,265 total)