Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a latest forum topic widget?

  • @rossagrant

    Participant

    Would love a sidebar widget displaying the latest 5 or so forum topic titles? Is this available anywhere?
    Cheers
    Ross :)

Viewing 17 replies - 26 through 42 (of 42 total)
  • @erich73

    Participant

    seems like this widget and plugin is only useable for coders, not for non-coders ?

    @nuprn1

    Participant

    if you use the forum extras plugin – then the widget is included. i only provided the standalone widget code for those who wanted it w/o the group forums extras plugin.

    @rossagrant

    Participant

    @nuprn1 when using the standalone widget it works but before each forum name is a black diamond with a question mark in it? Is it an unrecognised character? Any ideas? It isn’t there when I use the forum index plugin but I only need the widget.
    Thanks!

    @nuprn1

    Participant

    possible dirty character when copy/paste into your php file?

    @rossagrant

    Participant

    @nuprn1 I’ll check. It appears before the name of every forum. I’ll try repasting it!

    @rossagrant

    Participant

    @nuprn1 Strange but it’s still there. I have copied the code directly from your site by clicking on the clipboard icon so it should be perfect?

    Can you not replicate the issue or does it all work fine your end? Thanks!

    @nuprn1

    Participant

    i could not spot anything – send me a link to your site.

    @rossagrant

    Participant

    @nuprn1 it’s http://www.sharespeak.co.uk and the widget is only on the homepage at the moment.

    You should see the strange symbol I’m talking about.
    Let me know what you think,
    Ross :)

    I can send you a copy of my bp-custom.php file too if you like. I have only 2 functions in it, your widget and a redirect to forum upon clicking on a group snippet of code from r-a-y. Maybe I have implemented it wrong somewhere?

    @nuprn1

    Participant

    oh the ndash – the entity was converted just use –

    @rossagrant

    Participant

    @nuprn1 Sorry rich, I’m a bit simple! Haha! What do I need to change in the code?

    @nuprn1

    Participant

    if you open your php file with the widget function, you’ll see an actual – that needs to be replaced (right before “posted in ” )

    @rossagrant

    Participant

    @nuprn1 replaced it with &ndash and all is good! Cheers for that and great plugin!
    Thanks!

    @rossagrant

    Participant

    @nuprn1 Hi Rich, just noticed on the latest topics widget that when it is displayed within a group forum it is a bit dynamic in the fact that it returns only the latest topics from that group. I like that, however it seems to be showing them in reverse to elsewhere. i.e it list the topics from oldest at the top to newest at the bottom. Everywhere else it is the other way around so that the newest topic is at the top. Do you get this too?

    @nuprn1

    Participant

    possible you changed the forum topic sort order somewhere else? seems ok on my demo site – try setting type=newest within -> bp_has_forum_topics( ‘type=newest&page=false&max=’. $instance ) otherwise there is no sort order to pass in.

    @rossagrant

    Participant

    @nuprn1 Rich I figured it out. The widget keeps any sticky topics as the latest ones regardless of when they were made that’s all. So if I make a sticky topic at anytime it is placed at the top of the list when the widget is viewed within a group or forum page.
    Not really a big problem but that’s why I was getting confused. Could you just clarify that this is the intended behaviour?
    Thanks,
    Ross :)

    @nuprn1

    Participant

    add the arg no_stickies=no

    bp_has_forum_topics( ‘no_stickies=no&type=newest&page=false&max=’. $instance )

    @rossagrant

    Participant

    @nuprn1 Thanks Rich, that’s done the trick!

Viewing 17 replies - 26 through 42 (of 42 total)
  • The topic ‘Is there a latest forum topic widget?’ is closed to new replies.
Skip to toolbar