Is there a latest forum topic widget?
seems like this widget and plugin is only useable for coders, not for non-coders ?
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.
@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.
possible dirty character when copy/paste into your php file?
@nuprn1 I’ll check. It appears before the name of every forum. I’ll try repasting it!
@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!
i could not spot anything – send me a link to your site.
You should see the strange symbol I’m talking about.
Let me know what you think,
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?
oh the ndash – the entity was converted just use –
@nuprn1 Sorry rich, I’m a bit simple! Haha! What do I need to change in the code?
if you open your php file with the widget function, you’ll see an actual – that needs to be replaced (right before “posted in ” )
@nuprn1 replaced it with &ndash and all is good! Cheers for that and great plugin!
@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?
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.
@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?
add the arg no_stickies=no
bp_has_forum_topics( ‘no_stickies=no&type=newest&page=false&max=’. $instance )
- The topic ‘Is there a latest forum topic widget?’ is closed to new replies.