Link to subscriptions page if user can not post attachments or new post
This modification is in the archives.
Version: 1.0
vBulletin Version: 3.0.3 Developer: http://www.diamondtalk.com 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:
$attachmentoption = '';
PHP Code:
//HACK BEGINS
Go to line 259 and look for: PHP Code:
$attachmentoption = '';
PHP Code:
//HACK BEGINS
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> Download No files for download. Screenshots
|
Similar Mods
First Post on every page per-forum with attachments | vBulletin 3.0 Full Releases |