Customizing SMF > Modifications and Packages
FAQ (Frequently Asked Questions) mod
ApplianceJunk:
I have been editing my menu buttons in Subs.php but I don't see anything for the FAQ menu button in the Subs.php file.
Could you tell me were I find the code for the FAQ button?
Also how does it knows were to place the button in the menu without it being in the Subs.php?
Thanks,
Suki:
Hi, to avoid editing files, I used a hook to insert the button on the menu.
The FAQ button code is located in Sources/FAQ.php file.
To know where the button will be placed I use some php functions to search in the whole menu array, stop at an specific place defined by the admin in the mod's setting and after that insert the button, it's a combination of array_merge() and array_slice(), both are php functions
ApplianceJunk:
Interesting, going to check the code out.
Thanks,
trekkie2444:
It doesn't like me.
AN ERROR HAS OCCURRED!
Unable to load the 'main' template.
Any idea why that is coming up?
Suki:
Where does this error occur? how do you installed the mod?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version