SA-MP Forums Archive
About Simple Machines Forum - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: About Simple Machines Forum (/showthread.php?tid=290978)



About Simple Machines Forum - sniperwars - 17.10.2011

Hi guys,

I'm currently setting up a SMF (Simple Machines Forum) for my SA-MP Server and I wanted to ask if anyone knows how to create new tabs. If anyone knows, feel free to PM me.

Regards, Sniperwars aka Fr3ak.


Re: About Simple Machines Forum - shitbird - 17.10.2011

IIRC: Admin Panel -> Forum Management -> Add Forum/Category.


Re: About Simple Machines Forum - sniperwars - 17.10.2011

I'm using SMF Version 2.0.1 and I don't see that option.


Re: About Simple Machines Forum - shitbird - 17.10.2011

http://wiki.simplemachines.org/smf/Main_Page
Look under the "As an Administrator" section.




Re: About Simple Machines Forum - sniperwars - 20.10.2011

Can anyone help me with this ?


Re: About Simple Machines Forum - GloomY - 20.10.2011

I would have helped you if I had known what does "tabs" mean...
You mean forums, boards, subforums?


Re: About Simple Machines Forum - sniperwars - 20.10.2011



The tab highlighted in orange, I want everything from the "Home" tab to a new tab called "Community"


Re: About Simple Machines Forum - GloomY - 20.10.2011

http://docs.simplemachines.org/index.php?topic=564

This should help you.


Re: About Simple Machines Forum - sniperwars - 20.10.2011

I'm not very good with PHP editing. Would you mind doing Team Viewer with me and help ?


Re: About Simple Machines Forum - GloomY - 20.10.2011

It's really easy, you don't have to know PHP that much...
You just need to add few lines as it says.

Open the index.template.php of your theme with WordPad or any other text editor and press CTRL + F, then type in:
Код:
if ($context['current_action'] == 'search2')
		$current_action = 'search';
and than it will find the line that you asked.
Then after that, add this after:
Код:
if ($context['current_action'] == 'community')
		$current_action = 'community';