1
General SMFShop Discussion / Re: Credit for attachments?
« on: May 08, 2007, 10:58:53 pm »
how can i restrict this to only a certain board , for example a photo-category .. attachment bonuses...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ok, now before you alter this, i dont recommend unless daniel15 oks it, since he knows more about SMF coding guidelines.
annyways, open up Sources/Security.php
AGAIN I DONT RECOMMEND, UNLESS DANIEL15 OKS
findCode: [Select]// Administrators are supermen :P.
replace with
if ($user_info['is_admin'])
return true;
// Are we checking the _current_ board, or some other boards?Code: [Select]// Administrators are supermen :P.
if ($user_info['is_admin'])
return true;
$temp = is_array($permission) ? $permission : array($permission);
if(in_array('post_new', $temp))
{
$row= mysql_fetch_assoc(db_query("
SELECT money
FROM {$db_prefix}members
WHERE ID_MEMBER = {$ID_MEMBER} LIMIT 1", __FILE__, __LINE__));
if($row['money'] < 10)
return false;
}
// Are we checking the _current_ board, or some other boards?