SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 07:32:25 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 81
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 65
Total: 65
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: So lost!!  (Read 2264 times)
Green CoW
Newbie
*
Offline Offline

Posts: 3



View Profile
« 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  Cry

I tried to add this, but no luck there either  Sad
Code:
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
Logged
GameSocket
Jr. Member
**
Offline Offline

Posts: 79


NZ Made


View Profile WWW
« Reply #1 on: August 20, 2006, 09:40:09 pm »

Im not too sure this is what you are after ' for as per board ' but attachment size limits can be set in your admin>>>attachments and Avatars
Logged

(\__/)
(O.o )   *If You need help, best not to ask me*
(> < )

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.202 seconds with 19 queries.