MyBB Community Forums

Full Version: Question on Subject Sort Mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have downloaded the Thread Subject Sort mod at MyBB mods. This is a mod that lists threads in alphabetical order automatically on a specified forum. Part of the mod that requires customizing is the following:
Quote:In the code
if($fid == "2")
change the 2 to the number of the forum you wish to sort the threads in alphabetical order from A-Z.

How would I make it so multiple forums use this mod? Would the following code work?
if($fid == "2,3,4,19,172")


Thanks for any reply!
if ($fid == "2" || $fid =="3" || $fid=="4" || $fid=="19" || $fid=="172")

OR

if (in_array( $fid, array(2, 3, 4, 19, 172) ) )

BTW, do you really have 172 forums???
laie_techie Wrote:
if ($fid == "2" || $fid =="3" || $fid=="4" || $fid=="19" || $fid=="172")

OR

if (in_array( $fid, array(2, 3, 4, 19, 172) ) )
Thanks for the code!

Quote:BTW, do you really have 172 forums???
Nope, just random numbers I typed for examples Toungue. Thanks again! Smile