1
Site Discussion / So lost!!
« on: August 20, 2006, 04:49:07 pm »
Hi there guys/gurls!!
Well since I'm totally lost when I open a php file, I really would appriciate some help!
What I'm looking for is something like this, attachment size limit and on a per membergroup basis but for SMF 1.1 RC2!
I have nwswAdminAttachAnything installed... couldn't figure out how to configure that code
I tried to add this, but no luck there either
please can one of you "PHP guru's" guide me into right direction!!!
Thanks in advance....
GC
Well since I'm totally lost when I open a php file, I really would appriciate some help!
What I'm looking for is something like this, attachment size limit and on a per membergroup basis but for SMF 1.1 RC2!
I have nwswAdminAttachAnything installed... couldn't figure out how to configure that code
I tried to add this, but no luck there either
Code: [Select]
Post.php, find:
Code:
if (!empty($modSettings['attachmentSizeLimit']) && $_FILES['attachment']['size'][$n] > $modSettings['attachmentSizeLimit'] * 1024)
Replace:
Code:
if ($board != 999 && !empty($modSettings['attachmentSizeLimit']) && $_FILES['attachment']['size'][$n] > $modSettings['attachmentSizeLimit'] * 1024)
Also find:
Code:
if (!empty($modSettings['attachmentPostLimit']) && $total_size > $modSettings['attachmentPostLimit'] * 1024)
Replace:
Code:
if ($board != 999 && !empty($modSettings['attachmentPostLimit']) && $total_size > $modSettings['attachmentPostLimit'] * 1024)
Replacing 999 with that board's id.
please can one of you "PHP guru's" guide me into right direction!!!
Thanks in advance....
GC