Okay well today I'm going to show you guys how you can restrict you're recent topics hook so It will only search through certain forums and show the result in the right hand sidebar on the main page.
If you don't understand what I'm on about i'll provide a few images.
So the first image I'm going to provide you with is the recent topic hook I'm talking about;
Okay well now we know what recent topic hook I'm talking about we can now move on to the next step.
Okay now we need to access the ftp/cpanel which ever one you feel more comfortable doing. I'n my case i'm going to do this from localhost, so it might be a little different.
So here is the list when I open my localhost, in you're circumstances it will look sort of the same, but a little different. You obviously need to be located in the public_html folder to be able to see these folders/files.
Okay Well now we are there we are going to navigate through some folders/files.
In my case, my forum is not based of a forum file, like said above, my installation of IP.Board is located in what it should be public_html file in ftp/cpanel if I was on a host. If you have you're forum installed in a folder called "forum" or "community" then all you will need to do is add the name of the folder and a / before the code I'm going to provide which will navigate you through you're folders/files to the actual file we are going to edit.
public_html/admin/applications/forums/sources/classes/forums/class_forums.php
and for those who have there IP.Board installed in another folder like said above, for example you're would go something along these lines;
public_html/forums/admin/applications/forums/sources/classes/forums/class_forums.php
Okay and when we have located our selves through those files/folders you now should have something that looks like the following;
I repeat again you're will look similar to mine, it's just mine I'm doing from localhost.
Okay well now you're going to want to open up the "class_forums.php"
Once you have opened the "class_forums.php", You are going to want to find the following code;
if ( is_array( $bvnp ) AND count( $bvnp ) ){if ( in_array( $forumID, $bvnp ) ){continue;}}
and straight after the code shown above you're going to want to add the following code right below it;
if ( $forumID == 27 || $forumID == 34 || $forumID == 48 || $forumID == 49 ){continue;}
You obviously replace the forum IDs with your own, of course.
And wallah job done, you have now successfully restricted the recent topics hook to where it will search and display recent topics.
For instance if you take a look at the first image I provided and the one I'm going to provide now, you will see a difference in topics, because it will be restricted to where it will show the recent topics.
I'm obviously using inspect element here, just to show you really quickly, but if you did it, and for example I wanted to restrict the market place from showing here on WebFlake, this is what would show compared to the first image I provided to show you.
Thanks for reading and enjoy
Tutorial brought to you by myself Born2Be/Skreamzja!