Please or Register to create posts and topics.

Adding Custom Page To Navbar and maintaining Forum Layout.

I’m making some minor modifications to the Asgaros Plugin for one of my websites (I know editing Plugin files is bad practice although it was the most convenient way of doing it and i won’t be updating the plugin.

I have Created a new Class based off the Activity Class.

forum-giveaways.php

I have also searched for all instances of “Activity” and Created a new line of code and changed “activity” to “giveaway”. This has been done in forum.php, forum-rewrite.php and a few other files i can not remember off the top of my head right now.

I have the button showing in the Forum Navbar, However whenever i click the link (mysite/forum/giveaways, It doesn’t load my page function show_giveaways() instead it just loads the Forum Homepage.

I have a feeling it has something to do with the rewrite engine. although i have tried refreshing permalink structure and changing permalinks in the admin settings although too no avail.

Hey @tommoladd,

why don’t you create an own plugin and add your giveaways there?

It sounds like you have made a mistake within your forum-rewrite.php but it’s hard to tell without seeing the code. It could also be in the show_giveaways() function.

Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.