View Full Version : Symantics Virus Alerts
Chuckie
05-17-2004, 06:08 PM
This adds the Symantic Virus Alerts to a right or left column on your site.
Temporay Demo:
http://maysvillekybbs.com/index.php?maysbbs=tech
Got to here and setup the style and infomation to match your site.
http://securityresponse.symantec.com/avcenter/cgi-bin/syndicate.cgi
Then in your Admincp add a new template called "adv_portal_virus".
Insert this code into the template:
<div align="left">
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="210">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Virus Alerts</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Symantec Virus Alerts</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
{insert your symantec code here}
</table>
<br />
</table>
</div>
Go to your Admincp - vba CMPS - Add Module
Module Title - Virus Alerts
Module Identifier - virus
OR Template to Include - virus
Make it active and select the column you want it in.
Save and you are done.
I added it to a tech page but you can add it to any page you like.
!!!!Please Note!!!!!!!!!!!!
Above is a custom block. If you want you board look to stay consistant use Brain's original Block for your cmps found here - http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=5#generictemp
Brian
05-17-2004, 06:14 PM
Thanks for sharing. :)
I've moved this thread since it's really an user contributed module. ;)
Chuckie
05-17-2004, 06:25 PM
Cool, I will get the hang of where to put it soon I hope. lol
extremebetas
05-29-2004, 02:41 PM
How can I shrink the width of my symantec box to match my other boxes so they all match in size??
Chuckie
05-29-2004, 05:14 PM
You can't. That is controled by the java supplied by Symantec on their servers. You can up you page module size from 175 to 210px in the default settings or on the cmps page your have it on. This will make the column bigger so that the other modules don't look out of place.
zeechan
05-29-2004, 05:36 PM
I clicked on demo link but i got file not founf error. Have you plan to fix it.
Chuckie
05-29-2004, 08:42 PM
Updates the demo link.
machino
05-30-2004, 07:44 PM
nice, thanks
jgcomp
06-01-2004, 04:17 PM
I'm using something similar from sophos, but the width works nicely for a left or right hand column.
template content:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Latest Virus Alerts</strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Sophos info feed: latest virus alerts - START --> <script language="JavaScript1.1"
src="http://www.sophos.com/virusinfo/infofeed/tenalerts.js"></script>
<script type="text/javascript" language="JavaScript1.1">
<!--
// Want to customise the look and feel of the virus information // on your site? Simply change the following values to your own // preferences.
//
// Changing the value of 'count' will change the number of rows // displayed.
// Changing the value of 'target' to 'new' will display the link in // a new window.
// *****************************************************************
var bgcolour_main = '#cccccc'
var bgcolour_heading = '#99cccc'
var text_colour = '#000000'
var link_colour = '#000099'
var font_size = '1'
var font_face = 'verdana, arial, helvetica, sans-serif'
var count = 10 // number should be between 1 and 10
var first_column = 'yes' // 'yes' or 'no'
var cellspacing = 'no' // 'yes' or 'no'
var target = 'new' // '_self' or 'new'
// *****************************************************************
// Be careful not to change anything below this line!
var htmltxt = "";
var font_desc = '<font face="' + font_face + '" size="'
+ font_size + '" color="' + text_colour + '">'; var tmp_count = 0;
if (first_column == "no") {
colspan = 1;
} else {
colspan = 2;
}
if (cellspacing == "no") {
cellspacing = 0;
} else {
cellspacing = 2;
}
if (count > 0) {
if (count > 10) {count = 10}
htmltxt += '\n<table cellpadding="6" cellspacing="'
+ cellspacing + '" border="0" bgcolor="#ffffff">';
if (count == 1) {
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc
+ '<b>Latest virus alert</b></font></td></tr>';
} else {
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc + '<b>Latest '
+ count + ' virus alerts</b></font></td></tr>';
}
for (var i=0; i<tenalerts.length; i+=3) {
tmp_count++;
if (tmp_count > count) {
break;
} else {
if (first_column == "no") {
htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">'
+ font_desc + '<a href="' + tenalerts[i+2] + '" target="'
+ target + '"><font color="'
+ link_colour + '"><nobr>' + tenalerts[i+1]
+ '</nobr></font></a></font></td></tr>';
} else {
htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">'
+ font_desc + '<nobr>' + tenalerts[i+0]
+ '</nobr></font></td><td bgcolor="' + bgcolour_main + '">'
+ font_desc + '<a href="' + tenalerts[i+2] + '" target="'
+ target + '"><font color="'
+ link_colour + '"><nobr>' + tenalerts[i+1]
+ '</nobr></font></a></font></td></tr>';
}
}
}
} else {
document.write
("=== Sophos info feed error: Specify value of count > 0 ==="); }
// Please do not remove the code after this point.
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
+ bgcolour_heading + '">' + font_desc
+ 'Source: <a href="http://www.sophos.com" target="'
+ target + '"><font color="' + link_colour
+ '">Sophos</font></a></td></tr>';
// htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
// + bgcolour_heading + '">' + font_desc
// + '<a href="http://www.sophos.com/virusinfo/infofeed/" target="'
// + target + '"><font color="' + link_colour '">Add this info to your
// + website</font></a></td></tr>';
htmltxt += '\n</table>';
document.write(htmltxt);
//-->
</script>
<!-- Sophos info feed: latest virus alerts - END -->
</td>
</tr>
</table>
<br />
Chuckie
06-01-2004, 04:40 PM
Sophos has a very nice setup. I like it too.
Dark_Wizard
07-25-2004, 10:22 AM
You can't. That is controled by the java supplied by Symantec on their servers. You can up you page module size from 175 to 210px in the default settings or on the cmps page your have it on. This will make the column bigger so that the other modules don't look out of place.
Actually you can...it's just a matter of d/l the vir_display.js file from Symantec and making the changes, then calling it from your site....I will whip something up and post it as an updated module.
smackLAN
03-19-2005, 01:03 PM
Another way to reduce the size of the module (easy) is to adjust the code in the adv_portal_virus to this:
<div align="left">
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="172">
Then delete these lines of code:
<tr>
<td class="alt1"><span class="smallfont">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Symantec Virus Alerts</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
Then download the vir_display.js file, save it, edit the font sizes down to 6 pt and save it in your forum directory and point it to that file in the module.
It doesn't look quite like the other modules on the page, but not enough of difference to matter I think.
Here (http://www.box-builders.com) it is on my site.
RichieBoy67
03-30-2005, 06:38 PM
Another great module!! Thanks :)
virtualburn
07-30-2005, 07:49 PM
A really nice addition to the Portal thank you very much.
~maybe there should be a section where all these addidtions are listed
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.