![]() |
|
#1
|
||||
|
||||
|
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.../syndicate.cgi Then in your Admincp add a new template called "adv_portal_virus". Insert this code into the template: Code:
<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>
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/membersare...=5#generictemp Last edited by TCS; 05-30-2004 at 10:36 AM. |
|
#2
|
||||
|
||||
|
Thanks for sharing.
![]() I've moved this thread since it's really an user contributed module.
|
|
#3
|
||||
|
||||
|
Cool, I will get the hang of where to put it soon I hope. lol
|
|
#4
|
|||
|
|||
|
How can I shrink the width of my symantec box to match my other boxes so they all match in size??
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||
|
|||
|
I clicked on demo link but i got file not founf error. Have you plan to fix it.
|
|
#7
|
||||
|
||||
|
Updates the demo link.
Last edited by TCS; 05-30-2004 at 10:31 AM. |
|
#8
|
|||
|
|||
|
nice, thanks
|
|
#9
|
|||
|
|||
|
I'm using something similar from sophos, but the width works nicely for a left or right hand column.
template content: Code:
<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 />
|
|
#10
|
||||
|
||||
|
Sophos has a very nice setup. I like it too.
|
|
#11
|
|||
|
|||
|
Quote:
Last edited by Dark_Wizard; 07-25-2004 at 09:46 AM. |
|
#12
|
||||
|
||||
|
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 it is on my site.
__________________
Transverse Styles | Exceptional Forum Skins Last edited by smackLAN; 03-19-2005 at 04:33 PM. |
|
#13
|
|||
|
|||
|
Another great module!! Thanks
__________________
TalkandMore.Net - Forums, Shopping, Games and More! |
|
#14
|
|||
|
|||
|
A really nice addition to the Portal thank you very much.
~maybe there should be a section where all these addidtions are listed |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|