Back to vBulletin 3.6 Template Modifications

Announcements new Table
Mod Version: 1.00, by Mr Pink

This modification is in the archives.
vB Version: 3.6.5 Rating: (4 votes - 4.00 average) Installs: 29
Released: 14 Mar 2007 Last Update: Never Downloads: 14
Not Supported Template Edits Is in Beta Stage  

This is a simple code change for announcements.


Preview:

http://img251.imageshack.us/img251/8785/announcementsfl5.jpg

Modification:

Go into the FORUMDISPLAY template.
(AdminCp -> Styles & Templates -> Edit Templates -> FORUMDISPLAY)

Find:

Code:
$announcebits
Delete it.

Find:

Code:
$header
$navbar
Below add:

Code:
 
<!-- Announcements -->
<if condition="$announcebits">
   <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="50%"> 
   <tr> 
       <td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('icons_panel')">
       <img id="collapseimg_icons_panel" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_icons_panel].gif" alt="" border="0" />
       </a><b><center>Announcements</center></b></td> 
       <tbody id="collapseobj_icons_panel" style="$vbcollapse[collapseobj_icons_panel]">
       <tr>
           <td bgcolor="#F5F5FF"><div><span style="color: black;">
           <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
               $announcebits
           </table>
           </a></span></div>
           </a></span></div> 
           </td> 
       </tr>
       </td>
   </tr> 
   </table>
<br />
</if>
<!-- /Announcements -->
<br />
------------------------------------------
I have used some deprecated tags, in this modification. When I will have free time I will release it with the correct code.
------------------------------------------
Code Updated & Optimized
Thanks goes to
Sidewindr [View Post

Spoiler (click to open)


I made the following changes to the code so the Announcements table would not show up if there were no announcements. Also fixed up some missing table data and row end tags.

Code:
<!-- Announcements -->
<if condition="$announcebits">
	<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="50%"> 
	<tr> 
		<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('icons_panel')">
		<img id="collapseimg_icons_panel" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_icons_panel].gif" alt="" border="0" />
		</a><b><center>Announcements</center></b></td> 
		<tbody id="collapseobj_icons_panel" style="$vbcollapse[collapseobj_icons_panel]">
		<tr>
			<td bgcolor="#F5F5FF"><div><span style="color: black;">
			<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
				$announcebits
			</table>
			</a></span></div>
			</a></span></div> 
			</td> 
		</tr>
		</td>
	</tr> 
	</table>
<br />
</if>
<!-- /Announcements -->

Close
]

Download

No files for download.

Screenshots

Click image for larger version
Name:	announcements.jpg
Views:	709
Size:	32.0 KB
ID:	61837  


vblts.ru supports vBulletin®, 2022-2024