The Arcive of vBulletin Modifications Site. |
|
Link to subscriptions page if user can not post attachments or new post Details »»
|
|||||||||||||||||||||||||||
|
Link to subscriptions page if user can not post attachments or new post
Developer Last Online: Jul 2007
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. Files to edit: newreply.php newthread.php Open newreply.php Go to line 307 and look for: PHP Code:
PHP Code:
Go to line 259 and look for: PHP Code:
PHP Code:
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> Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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> |
|
#3
|
|||
|
|||
|
Excellent - works great.
Thanks bud. |
|
#4
|
|||
|
|||
|
this is one of the best solution ever for subscriptions.. this will bring more people to subscribe, as they will understand the reason why...
|
|
#5
|
|||
|
|||
|
fantastic!
|
|
#6
|
|||
|
|||
|
What about over quota?
Lets say they can upload 3 files under normal membership, if a user is at max qutoa will it say "upgrade your membership" ? |
|
#7
|
|||
|
|||
|
Quote:
PHP Code:
|
|
#8
|
|||
|
|||
|
awesome hack! thanks
Quote:
|
|
#9
|
|||
|
|||
|
will this work with vb 3.6.4?
|
![]() |
|
|