Please or Register to create posts and topics.

Extending/Customizing Asgaros Forum

Hello

I have a client that is using Asgaros forums and would like some customization’s for it. I need to be able to sort the topics in a forum by date, so that the topics with posts from today are displayed on the first page, and topics with posts from the day before on the second page, and so on.

I also need to be able to add a new column to the forum listing where I can show the rating for each topic.

I’m wondering if there’s anyway to do this without having to edit the actual plugin files. I’ve looked through the code but there doesn’t seem to be anyway to extend the forum easily.

Any help would be appreciated. Thank you.

Hi cadengrant,

Change ordering https://asgaros.com/support/?view=thread&id=41

Rating https://asgaros.com/support/?view=thread&id=213&part=1

 

Thanks for your help, but I would need more than just changing the order.

I would need to change a lot about how the query works. I need to get topics by their modification date, so just setting the order wouldn’t work. Basically, I would need to do this query:

SELECT * FROM table WHERE DATE(modified) = CURDATE() AND id = $forum_id LIMIT $topics_per_page, $offset

Is there anyway I could customize the whole query like this?

Hello cadengrant,

I think there is no easy way to do this because you have to modify a lot of areas. The main problem is the paging-functionality. It is based on a X-posts/topics-per-page logic. With a daily ordering, each page would be another day.

What I could do is adding more hooks to the functions you want to modify, but it will result in a lot of new queries and calculations anyway. 🙁

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

If you’re looking to customize Asgaros Forum to sort topics by date and add a rating column without editing the plugin files directly, you’re in a bit of a tricky spot. The default functionality doesn’t support these specific features out-of-the-box, and while it’s tempting to dive into the code, it’s not always ideal. A cleaner approach could involve using hooks or filters provided by the plugin, if available, to achieve these customizations. You might also explore creating a custom plugin or extension that interacts with Asgaros Forum to add the desired sorting and rating features. It’s definitely worth checking the plugin’s documentation or reaching out to the LinkedIn community for guidance on these kinds of customizations.