Support Forum

Widget update

UN
Unknown
Member

Today the Simplepressforum widget on WordPress is working great, but it seems to miss a feature. Right now it only shows the latest added “topic”, and that is ok with a slow forum.

Could it be possible to make an change feature, so you could choose between latest topic or latest answer.

In practise it means that lifetime on a thread is much longer and from the frontpage people can see what happening.

I know you can follow subject by mail if you have added it, but the widget is so perfect for the purpose, it just need an added feature.

Is it possible ? Cool

6 Answers

New Answer

MP Mr Papa
Mr Papa
Member

lastest answer = latest post?

in file sf_recent_posts_tag(), just change

$sfposts = $wpdb->get_results(“SELECT DISTINCT forum_id, topic_id FROM “.SFPOSTS.$where.” ORDER BY post_id DESC LIMIT “.$limit);

to remove the DISTINCT and you will get the latest posts instead of topics.

but not sure what that’s going to buy you? posts dont have names, so the topics names will all be the same.

UN
Unknown
Member

Sorry for my bad english 🙂

Latest added topic.
Latest anwsered topic.

Today the widget shows the latest added topic, it could be great if  you could change so it showed the latest answered topic. So can readers from the frontpage of WP see the topics with high activities even if new topics is added.

That was what i tried to ask about the first time Embarassed

MP Mr Papa
Mr Papa
Member

the current widget shows the last posts added but limits it to one per topic. So it already does what you seek. It will show the last topics whether its a new topic or an existing topic with a new post.

UN
Unknown
Member

Hmmm wird.. that our widget don't do.. The list just stand as the same all the time. Only when a new topic is added then it updates again.

That I have to look at.. can it be because we have some categories that is hidden for users, and removed from widget with the “seperator” box ?

UN
Unknown
Member

I have just tested the “Forum IDs: ” and when i use this, then i loose the last post feature. Then it changes to last added topic.

Is it supposed to do that ?

MP Mr Papa
Mr Papa
Member

post feature? They function the same except the latest posts would be limited to the forums you pass in.

are you running any kind of caching plugin for pages or widgets?