frenchlemans (@frenchlemans)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 27 total)
  • In reply to: Setting up pagination

    @frenchlemans

    Participant

    19 posts in total (1 + 18), I set the limit per page at 10.
    he created me a second page identical to the 1st

    tests page 19 posts

    In reply to: Setting up pagination

    @frenchlemans

    Participant
    In reply to: Setting up pagination

    @frenchlemans

    Participant

    if I activate your pluggin and I activate the thread, on the second page I have a repetition of the 1st page

    In reply to: Setting up pagination

    @frenchlemans

    Participant

    Indeed, if I disable the “thread”, it works.

    But does that mean the I can’t use the “thread”?

    In reply to: a link on the picture

    @frenchlemans

    Participant

    Thanks Robin,

    I just added the “title” line because it came out with an error.
    Otherwise it works very well.

    $title = bbp_get_forum_last_reply_title( $topic_id );
    I think this function can be useful to other people.

    Have a good day.

    In reply to: a link on the picture

    @frenchlemans

    Participant

    Hello robin

    Thanks for the function.
    It does not work well, it recalls the last post of all the topic of a forum in its category but not the last post of a topic on the same line.

    Here is the link to see what I’m saying :
    my page topics

    Regards

    In reply to: a link on the picture

    @frenchlemans

    Participant

    Hello Robin,

    I tried to adapt the code you provided me for the same function but from forums and not topics. I tried a lot of possibilities inside but each time it brings me back to the last forum and not to the last post of each topic.
    I searched through the documentation and archives but couldn’t find anything.
    So the code used is below, it fits the image well but not the last post of the subject in which it is:

    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>';
    }

    Regards.

    In reply to: move moderation

    @frenchlemans

    Participant

    Hello,

    Thank you very much Robin.
    On top as usual.

    Bernard

    @frenchlemans

    Participant

    Merci à vous je vais poursuivre mes investigations.

    Bon dimanche

    @frenchlemans

    Participant

    For your questions:
    -Yes, I have a bbpress in the plugins folder (version 2.6.6)
    -I have these files there in a Multinews folder => content-archive-forum.php
    content-search.php
    content-single-forum.php
    content-single-topic.php
    content-single-topic-lead.php
    form-search.php
    loop-forums.php
    loop-replies.php
    loop-search.php
    loop-search-forum.php
    loop-search-reply.php
    loop-search-topic.php
    loop-single-forum.php
    loop-single-reply.php
    loop-single-topic.php
    loop-topics.php

    -I put these files above in a bbpress folder in Multinews-child, and it’s them I’m transforming.

    But sometimes I supplement these files with others that are in 2.6.6, for example content-single-user.php. Now I realize that they are not in the same version as those contained in Multinews that will cause me problems.

    @frenchlemans

    Participant

    Thank you for your very interesting suggestions.
    So if I understand correctly I can continue to use an old BBpress without any risk for the future?
    So far everything was fine with him, I just don’t want to worry about the future.

    @frenchlemans

    Participant

    Hello Robin,

    My BBpress version was acquired with the global Multinews theme which has BBpress integration.
    I was working with BBpress files for this theme in a child. I configured according to my wishes and I realized that the BBpress files of Multinews are old (they have not updated anything on that side).
    So I put a current version of BBpress but on the other hand the whole presentation changes in particular at the category and forum level as I indicated in the presentation.

    @frenchlemans

    Participant

    @ robin-w
    Just to show, with the CSS I finished configuring this part

    when finish

    @frenchlemans

    Participant

    Robin W => you are the best of the best
    it’s very good like that.
    A big thank’s for you !!!!

    @frenchlemans

    Participant

    @ robin-w
    I’sorry i say a mistake, i don’t have bbp style pack
    I have bbp initial

    @frenchlemans

    Participant

    @ robin-w
    I’m sorry, I don’t understand what you mean by “setting freshness tab”
    where is it ?

    @frenchlemans

    Participant

    yes !

    website

    @frenchlemans

    Participant

    it works great, thanks.

    However, is it possible to have the image under the date as I show on the screenshot?

    Thank you

    screen target

    @frenchlemans

    Participant

    Hello,

    Yes it will always be the same image.
    Members of my old phpBB forum that I am remaking on bbPress are familiar with this image that I want to reuse on my new bbPress forum.

    When the user clicks on the link it takes them to the last posted message, just as if they were clicking on the date and time.

    @frenchlemans

    Participant

    Another screenshot

    lastpost

    @frenchlemans

    Participant

    Ok, I saw the new translation files in https://translate.wordpress.org/projects/bbpress/
    everything works at the level of the integration of the missing files.
    For me problem solved.
    Thank you

    In reply to: create a un function

    @frenchlemans

    Participant

    WAhoooo Robiiiin !!

    So good, there is 5 days i’m looking for
    You are the best of the best !!

    screen shot

    Thank you very much !!
    Regards
    Bernard

    In reply to: create a un function

    @frenchlemans

    Participant

    no it will be a <div> to create a space with a min-height set in the CSS class.

    In reply to: create a un function

    @frenchlemans

    Participant

    Thank’s,
    I would like that :

    <div class=”bbp-reply-content”>
    <p>hello how are you ?</p>
    <div class=”frenchlemans”>
    I’m superman
    </div>
    </div>

    In reply to: create a un function

    @frenchlemans

    Participant

    Sorry I am French and my English can be improved.

    I went to see where you say, I can see the function well but the problem is that I don’t know how to create a div with class at all.

    which is the subject of my request.

    Regards

Viewing 25 replies - 1 through 25 (of 27 total)