The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Changing Attachment Size Dynamically
I've got my boards set up to allow some users access to bigger attachments than others. I used to do this through some mods to the files, but I'm trying to do it through the hooks now, but to no success. Here's what I've got right now, where "isMember" is my own function:
Quote:
Any ideas? Shannon |
#2
|
||||
|
||||
What was your 3.0 Code?
PHP Code:
|
#3
|
|||
|
|||
In 3.0 I was doing in a somewhat backward way, changing the size right after it was returned:
functions_file.php: Code:
$maxattachsize = $attachtypes["$extension"]['size']; global $isMember; if ($isMember) $maxattachsize = 100 * 1024; Shannon |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|