GilbertZ
11-03-2004, 10:00 PM
Version: 1.0
vBulletin Version: 3.0.3
Developer: GilbertZ (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:
$attachmentoption = '';
replace with
//HACK BEGINS
// $attachmentoption = '';
eval('$attachmentoption = "' . fetch_template('newpost_no_attachment') . '";');
//END HACK
Open newthread.php
Go to line 259 and look for:
$attachmentoption = '';
replace with
//HACK BEGINS
// $attachmentoption = '';
eval('$attachmentoption = "' . fetch_template('newpost_no_attachment') . '";');
//END HACK
Go to your AdminCP and create a new template called:
newpost_no_attachment
and put the following text in it:
<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.
vBulletin Version: 3.0.3
Developer: GilbertZ (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:
$attachmentoption = '';
replace with
//HACK BEGINS
// $attachmentoption = '';
eval('$attachmentoption = "' . fetch_template('newpost_no_attachment') . '";');
//END HACK
Open newthread.php
Go to line 259 and look for:
$attachmentoption = '';
replace with
//HACK BEGINS
// $attachmentoption = '';
eval('$attachmentoption = "' . fetch_template('newpost_no_attachment') . '";');
//END HACK
Go to your AdminCP and create a new template called:
newpost_no_attachment
and put the following text in it:
<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.