Recent Topics

1 Aug 15, 2007 13:58    

My b2evolution Version: 1.9.x

Hi,

using b2evo 1.9.2 I would like to have some custom sidebar items only displayed when someone views a single posting. How is this possible? I think it´s a similar code as when I what something on my sidebar when logged in only, but which loop I have to lay around e.g. "last 10 postings" so that it will only be displayed when viewing a single posting?

And... is it possible to integrate two links at the bottom of each single posting for the next and previous posting (similar to next and previous page links in the normal blog mode)?

Thank you very much in advance helping me here...
Daniel

2 Aug 15, 2007 17:09

Something like this should work...


<?php if ($disp == 'single') { ?>

            <?php
                Your block of php code here...
            ?>

<?php } ?>

jj.

3 Aug 15, 2007 19:40

Exactly the thing I needed... thank you very much...

Any ideas concerning my second question links at the bottom of each single posting for the next and previous posting??

4 Aug 15, 2007 21:35

No, sorry... I'm sure someone else here will know how to get that done though.

jj.

5 Aug 16, 2007 08:39

Actually... here you go...

    <?php
        previous_post();
        next_post();
    ?>


;)

jj.

6 Aug 16, 2007 09:54

Oh... thanks... I now remember that I´ve already seen that... right... now I only have to tweak it a little bit and find out where to put it best... thanks jj!


Form is loading...