Good evening
I do this mode faqstaff for my site so that members of staff find answers to their questions without asking me every time.
This is my first code that could be useful for other, up to you to judge (on my test version 2.03).
In mysql create:
`type` set('categ','item') NOT NULL default 'item',
`question` text NOT NULL,
`answer` text NOT NULL,
`flag` set('0','1','2','3') NOT NULL default '1',
`categ` int(10) NOT NULL default '0',
`order` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=66 ;
INSERT INTO `faqstaff` (`id`, `type`, `question`, `answer`, `flag`, `categ`, `order`) VALUES
(1, 'categ', 'Information on the staff', '', '1', 0, 1),
(2, 'categ', 'Information on the panel', '', '1', 0, 2),
(3, 'categ', 'Information on the recruitments', '', '1', 0, 3),
(4, 'categ', 'Information on the Members', '', '1', 0, 4),
(5, 'categ', 'Information on the Power user', '', '1', 0, 5),
(6, 'categ', 'Information on the VIP', '', '1', 0, 6),
(7, 'categ', 'Information on the Uploader', '', '1', 0, 7),
(8, 'categ', 'Information on the Moderator', '', '1', 0, 8),
(9, 'categ', 'Information on the Supervisor', '', '1', 0, 9),
(10, 'categ', 'Information on the Administrator', '', '1', 0, 10),
(11, 'categ', 'Information on the torrent', '', '1', 0, 11),
(12, 'categ', 'Information on the ratio', '', '1', 0, 12),
(13, 'categ', 'Information on the forum', '', '1', 0, 13),
(20, 'item', 'Information on the staff?', 'Answer:', '1', 1, 1),
(21, 'item', 'Information on the panel?', 'Answer:', '1', 2, 1),
(22, 'item', 'Information on the recruitments?', 'Answer:', '1', 3, 1),
(23, 'item', 'Information on the Members?', 'Answer:', '1', 4, 1),
(24, 'item', 'Information on the Power user?', 'Answer:', '1', 5, 1),
(25, 'item', 'Information on the VIP?', 'Answer:', '1', 6, 1),
(26, 'item', 'Information on the Uploader?', 'Answer:', '1', 7, 1),
(27, 'item', 'Information on the Moderator?', 'Answer:', '1', 8, 1),
(28, 'item', 'Information on the Supervisor?', 'Answer:', '1', 9, 1),
(29, 'item', 'Information on the Administrator?', 'Answer:', '1', 10, 1),
(30, 'item', 'Information on the torrent?', 'Answer:', '1', 11, 1),
(31, 'item', 'Information on the ratio?', 'Answer:', '1', 12, 1),
(32, 'item', 'Information on the forum?', 'Answer:', '1', 13, 1);
Now open admincp.php and find:
Now open login_block.php and find:
Uploader files at the root: [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2752"]faqstaff.rar[/url]



Now it remains only completed sections :blink: .
I do this mode faqstaff for my site so that members of staff find answers to their questions without asking me every time.
This is my first code that could be useful for other, up to you to judge (on my test version 2.03).
In mysql create:
CREATE TABLE `faqstaff` (`id` int(10) NOT NULL auto_increment,`type` set('categ','item') NOT NULL default 'item',
`question` text NOT NULL,
`answer` text NOT NULL,
`flag` set('0','1','2','3') NOT NULL default '1',
`categ` int(10) NOT NULL default '0',
`order` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=66 ;
INSERT INTO `faqstaff` (`id`, `type`, `question`, `answer`, `flag`, `categ`, `order`) VALUES
(1, 'categ', 'Information on the staff', '', '1', 0, 1),
(2, 'categ', 'Information on the panel', '', '1', 0, 2),
(3, 'categ', 'Information on the recruitments', '', '1', 0, 3),
(4, 'categ', 'Information on the Members', '', '1', 0, 4),
(5, 'categ', 'Information on the Power user', '', '1', 0, 5),
(6, 'categ', 'Information on the VIP', '', '1', 0, 6),
(7, 'categ', 'Information on the Uploader', '', '1', 0, 7),
(8, 'categ', 'Information on the Moderator', '', '1', 0, 8),
(9, 'categ', 'Information on the Supervisor', '', '1', 0, 9),
(10, 'categ', 'Information on the Administrator', '', '1', 0, 10),
(11, 'categ', 'Information on the torrent', '', '1', 0, 11),
(12, 'categ', 'Information on the ratio', '', '1', 0, 12),
(13, 'categ', 'Information on the forum', '', '1', 0, 13),
(20, 'item', 'Information on the staff?', 'Answer:', '1', 1, 1),
(21, 'item', 'Information on the panel?', 'Answer:', '1', 2, 1),
(22, 'item', 'Information on the recruitments?', 'Answer:', '1', 3, 1),
(23, 'item', 'Information on the Members?', 'Answer:', '1', 4, 1),
(24, 'item', 'Information on the Power user?', 'Answer:', '1', 5, 1),
(25, 'item', 'Information on the VIP?', 'Answer:', '1', 6, 1),
(26, 'item', 'Information on the Uploader?', 'Answer:', '1', 7, 1),
(27, 'item', 'Information on the Moderator?', 'Answer:', '1', 8, 1),
(28, 'item', 'Information on the Supervisor?', 'Answer:', '1', 9, 1),
(29, 'item', 'Information on the Administrator?', 'Answer:', '1', 10, 1),
(30, 'item', 'Information on the torrent?', 'Answer:', '1', 11, 1),
(31, 'item', 'Information on the ratio?', 'Answer:', '1', 12, 1),
(32, 'item', 'Information on the forum?', 'Answer:', '1', 13, 1);
Now open admincp.php and find:
Now open login_block.php and find:<td align="center"><a href=faq-manage.php><img src="images/admin/faq.png" border=0 width=32 height=32><br>FAQ</a><BR></td>add after:<td align="center"><a href=faqstaff-manage.php><img src="images/admin/faqstaff.png" border=0 width=32 height=32><br>F.A.Q<br>Staff</a></td>
Upload this image to images/admin as faqstaff.png: <? if ($CURUSER["control_panel"]=="yes") {print("<a href=admincp.php>" . STAFFCP . "</a>");}?>
add after:
<? if (get_user_class() >= 5){print("<br><a href=faqstaff.php><b>F.A.Q Staff</b></a>");}?>Uploader files at the root: [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2752"]faqstaff.rar[/url]



Now it remains only completed sections :blink: .
