Back to vBulletin 3.6 Template Modifications

Enhanced Forum Closed Message
Mod Version: 1.00, by ericgtr

This modification is in the archives.
vB Version: 3.6.8 Rating: (0 vote - 0 average) Installs: 3
Released: 14 Sep 2007 Last Update: Never Downloads: 2
Not Supported Template Edits  

This may already be out there but I needed to set it up on my site and thought I would share. Even though users can see the title and post count, the message "There are no posts in this forum" is not enough when I want people to register in order to veiw it.

What it does:
When you set the permissions of your forum so that guests can view it, but not the content this will add a message that says "Please Register to download files and view content" to the forum(s) of your choice.

This is just a quick template solution, I didn't find it necessary to phrase for such a small change.

In the FORUMDISPLAY template find:
Code:
				<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
				<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
Add this under:
Code:
				<if condition="in_array($GLOBALS[forumid], array(9,41,20))">
				<br />
        <strong>Please <a href="register.php">Register</a> to download files and view contents</strong>
        </if>
You can add or remove your forum id's accordingly to the array (in red above). Also, ensure that your path is correct for register.php

Download

No files for download.

Screenshots

Click image for larger version
Name:	register.jpg
Views:	357
Size:	14.7 KB
ID:	69809  

Similar Mods

Extra Forum Closed Message vBulletin 3.5 Add-ons
Forum Closed Message [BBCode Parse] 3.5.4 vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024