Back to vBulletin 3.6 Add-ons

Quick News V2
Mod Version: 2.0.0, by Adrian.

This modification is in the archives.
vB Version: 3.6.1 Rating: (4 votes - 5.00 average) Installs: 128
Released: 19 Sep 2006 Last Update: 20 Sep 2006 Downloads: 326
Not Supported Template Edits  

Quick News v2
By Adrian at http://developmentchat.com
Tested on v3.6.1, should work on 3.6.0 and 3.5.x


Hey,

This is a very simple mod', it allows you to add news/important notes or announcements, on the homepage of your forum.
You can enable/disable or add news via the admin panel.
The "Quick News" box, matches your forum theme. Just so it doesn't look out of place.

New in Version two.
  • Abilty to hide Quick News from guests
  • Abilty to show Quick News to admins only
  • Abilty to choose to show Quick News on everypage, or just forum home

Installation

Import the product-quicknews.xml
Go to vBulletion Options > Quick News (Read option descriptions before configuring)

Template Edit:

Open Forum Home Templates > FORUMHOME

Find:
HTML Code:
<!-- main -->
After Add:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_forumhome'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
		</if>
	</if>
Now open Navigation / Breadcrumb Templates > navbar

Add at the very bottom:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_everypage'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
		</if>
	</if>
Done.

Upgrading:
If you are upfrading from Quick News v1 to v2.
Do the following.

Import the new product-quicknews.xml (Overwriting old version)

Then, open up:
Forum Home Template > FORUMHOME (if you installed it in FORUMHOME)

Find:
HTML Code:
	<if condition="$vboptions['qnews_enabled'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
And replace it with:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_forumhome'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
		</if>
	</if>
If you added the code into Navigation / Breadcrumb Templates > navbar, do the following

Find:
HTML Code:
	<if condition="$vboptions['qnews_enabled'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
Replace it with:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_everypage'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
		</if>
	</if>
Done.

Very easy to install mod', and quite useful.

Click if you use it please.

Thanks.

Adrian

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-quick news.xml (3.4 KB, 678 downloads)

Screenshots

Click image for larger version
Name:	main.jpg
Views:	3810
Size:	217.9 KB
ID:	53628   Click image for larger version
Name:	options.jpg
Views:	971
Size:	288.5 KB
ID:	53684  

Similar Mods

Changing the caption of Quick News v2 Hack vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024