PDA

View Full Version : Manage Atatchments (Alternate text)



corman420
Thu 14th Aug '08, 4:52pm
On my forum, some usergroups have permission to upload attachments, others do not.

But the groups that do not, simply do not see a manage attachments button. I was hoping there is a way to put some alternate text there - something like "You are not authorized to upload attachments in this forum, click here for more information" or something like that.
But whenI went into my templates, I see this:


$attachmentoption

So then I went into the attachments templates, but found no IF statement regarding permissions. SO it's not as easy as I thought...
Does anyone know how this can be done? Thanks!

corman420
Fri 7th Nov '08, 11:01am
No one ever tried doing this before? :( Oh well..

eJM
Fri 7th Nov '08, 2:33pm
You might try this (I didn't test it):


<if condition="$show['guest']">
You are not authorized to upload attachments in this forum, <a href="#">click here for more information</a>.
</if>
$attachmentoption

It should work. Use the conditional either above, as I show, or below the $attachmentoption Please post back whether it works or not.

R'gards,

Jim