Quote:
Originally Posted by Delphiprogrammi
yeah you didn't edited the file $admncpdir/index.php open this file and find
PHP Code:
$printhr = false;
if (can_administer('canadminstyles'))
{
above that add
PHP Code:
$printhr = true ;
if ($aws=='1')
{
construct_nav_option ( 'Manage Warning Options', 'admin_warn.php?act=manageoptions', '<br />' ) ;
construct_nav_option ( 'Manage Warning Types', 'admin_warn.php?act=view', '<br />' ) ;
construct_nav_option ( 'Warn a User', 'admin_warn.php?act=warnuser', '<br />' ) ;
construct_nav_option ( 'View User Warnings', 'admin_warn.php?act=warnsperuser', '<br />' ) ;
construct_nav_option ( 'View Warnings Log', 'admin_warn.php?act=viewlogs', '<br />' ) ;
construct_nav_option ( 'View Banned Users', 'admin_warn.php?act=viewbannedusers', '<br />' ) ;
if ($warn_opts['automaticpm'] == 'Yes')
{
construct_nav_option ( 'View Auto-Warned PMs', 'admin_warn.php?act=viewwarnedpms', '<br />' ) ;
}
construct_nav_option ( 'Prune Warnings', 'admin_warn.php?act=prune', '<br />' ) ;
construct_nav_option ( 'Statistics - Warnings per Type', 'admin_warn.php?act=viewstats1', '<br />' ) ;
construct_nav_option ( 'Statistics - Warnings per Warner', 'admin_warn.php?act=viewstats2', '<br />' ) ;
construct_nav_option ( 'Statistics - Warnings per User', 'admin_warn.php?act=viewwarnedusers', '<br />' ) ;
construct_nav_option ( 'Statistics - Bans per User', 'admin_warn.php?act=viewbans', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />' ) ;
}
that should do it
|
Okay I am nearly there now guys and I thank you all for your assistance.
I have two remaining little problems and I think you may be able to sort them quickly. I have obviously typed something incorrectly somewhere.
Firstly. On the posts I have two lots of Warn and View commands at the top of each thread. Obviously I have duplicated somewhere but I would appreciate knowing which file to look at.
The second one is when I issue someone a warning I get the following message...
Database error in vBulletin 3.0.7:
Invalid SQL: update vb3_user set warning_level='2', warnings='1' where userid='4'
mysql error: Unknown column 'warnings' in 'field list'
mysql error number: 1054
Not sure what the problem is here.
If you think you could fix it quickly for me John I would appreciate it. Whether that be you telling me where I should go, or whether i give you access I am willing to do that.
Many thanks.