CC-Cailin (@cc-cailin)

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • In reply to: Freshness Link

    CC-Cailin
    Participant

    @cc-cailin

    Oh goodness! I get what you meant now!!! The link isn’t going to the topic… it is going to the forum 🙁


    CC-Cailin
    Participant

    @cc-cailin

    Seems like you and I will be solving eachother’s problems lol. I replied on your reply in my post.

    Maybe I can help you with your issues… I’m not 100% sure what the problem is you are having with freshness though…

    Did you mean the time shown on topic freshness and the time in forum freshness is not the same?

    In reply to: Freshness Link

    CC-Cailin
    Participant

    @cc-cailin

    Hey, I modified it a little to fit the needs of my forum…
    I can’t show you the link as I’m working on localhost at the moment, but here is what I did.

    Inside loop-single-forum.php, I removed this:

    <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    <?php bbp_forum_freshness_link(); ?>
    <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>

    And placed this in it’s place:

    <a class="bbp-forum-freshness" href="<?php bbp_forum_permalink(); ?>">
    <?php bbp_forum_last_topic_title(); ?></a> 
    (<?php bbp_forum_last_active_time(); ?>) by <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>

    Now the last step I need help with is…
    Right now if a forum doesn’t have posts in it yet, it shows the time I created the forum. Which is very weird. So what I i need is a php if/else code that would check if there is a forum_last_topic if there is, it must show my code… if there isn’t, it must show the text “No topics yet”. How do I do this? I have very basic php knowledge

    In reply to: Freshness Link

    CC-Cailin
    Participant

    @cc-cailin

    Awesome! Thank you… One more question though.
    After using your code, if there has been no posts made in a forum, it shows a random time (which seems to be the time I created the forum) and the topic title appears blank. How can I do this:

    if the forum has posts, show the latest post title and time (the code you gave me), otherwise show “No topics posted yet”.

    In reply to: Freshness Link

    CC-Cailin
    Participant

    @cc-cailin

    Awesome… great, thank you
    How do I display the time next to it? The <?php bbp_forum_freshness_link (); ?> displays it in link form… and I just want it next to the title in brackets (not linked)


    CC-Cailin
    Participant

    @cc-cailin

    I’m looking for the same thing! Did you have any luck?


    CC-Cailin
    Participant

    @cc-cailin

    Hi, has this been created in the meantime? I really need this…


    CC-Cailin
    Participant

    @cc-cailin

    It seems like most people who are having issues are using buddypress.
    I am using buddypress, and I end up getting a blank screen as soon as I add the first function. Any help?

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