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:
if ($isMember) {
foreach($vbulletin->attachmentcache AS $extension)
{
if (is_array($extension))
{
$extension['size'] = 1024 * 100;
}
}
}
|
I've got this in global_start, but I've also tried it in newattachment_start, and nothing seems to quite do it.
Any ideas?
Shannon