Back to vBulletin 3.0 Add-Ons

Link to subscriptions page if user can not post attachments or new post
Mod Version: 1.00, by GilbertZ

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 6
Released: 05 Nov 2004 Last Update: Never Downloads: 0
Not Supported  

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 ''
replace with

PHP Code:
//HACK BEGINS
//        $attachmentoption = '';
        
eval('$attachmentoption = "' fetch_template('newpost_no_attachment') . '";');
//END HACK 
Open newthread.php

Go to line 259 and look for:

PHP Code:
        $attachmentoption ''
replace with

PHP Code:
//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:

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.

Download

No files for download.

Screenshots

 

Similar Mods

First Post on every page per-forum with attachments vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024