Version: 1.00, by GilbertZ
Developer Last Online: Jul 2007
Version: 3.0.3
Rating:
Released: 11-03-2004
Last Update: Never
Installs: 6
No support by the author.
Version: 1.0 vBulletin Version: 3.0.3 Developer:GilbertZ Hack-Language: English Install-difficulty: Low File-edits: 2 Template-edits: 1 Is this hack supported: Officially, no. But I will try to keep an eye out and help where I can.
Description of the Hack:
Do you charge a subscription for users to upload files? Instead of just not showing them the attachments options, how about letting them know why they can't post attachments and giving them a link to the subscriptions page? This does that.
Go to your AdminCP and create a new template called: newpost_no_attachment
and put the following text in it:
HTML Code:
<fieldset class="fieldset"><legend>$vbphrase[attach_files]</legend><div style="padding:$stylevar[formspacer]px"><div style="margin-bottom:$stylevar[formspacer]px"><div>In order to attach files you need to <a href="subscriptions.php" target="_blank">upgrade</a> your membership.</div></div></div></fieldset>
This hack is running at http://www.simstalk.com . If you want to check it out, please make sure not to actually post anything as it is a live board.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Another thing I added for when users try to post in forums where posting requires a subscription, is to make the following change in the phrase manager:
Change the text in $vbphrase[nopermission_loggedin]
HTML Code:
<p><strong>$bbuserinfo[username]</strong>, you do not have permission to access this page. This could be due to one of several reasons:</p><ol><li>Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?</li><li>You may need to <a href="subscriptions.php">upgrade</a> your account in order to do this.</li><li>If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.</li></ol><div align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]">Log Out</a><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></div>
Lets say they can upload 3 files under normal membership, if a user is at max qutoa will it say "upgrade your membership" ?
I haven't tested that, but basically if it triggers the forumpermissions which states that the user does not have permission to upload an attachment, then it'll pop up that message. Here is the eval statement:
PHP Code:
if ($forumperms & CANPOSTATTACHMENT AND $bbuserinfo['userid'])
If the above fails, then you get the upgrade message.