Extending/Customizing Asgaros Forum
Quote from cadengrant on August 4, 2017, 9:33 pmHello
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.
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.
Quote from Yworld on August 5, 2017, 10:16 amHi cadengrant,
Change ordering https://asgaros.com/support/?view=thread&id=41
Rating https://asgaros.com/support/?view=thread&id=213&part=1
Hi cadengrant,
Change ordering https://asgaros.com/support/?view=thread&id=41
Rating https://asgaros.com/support/?view=thread&id=213&part=1
Quote from cadengrant on August 6, 2017, 1:41 amThanks 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, $offsetIs there anyway I could customize the whole query like this?
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?
Quote from Asgaros on August 10, 2017, 7:02 pmHello 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. 🙁
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. 🙁
Quote from degemi9175 on September 9, 2024, 8:54 amIf 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.
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.