PDA

View Full Version : Updated "Symantec Virus Alerts" Module


Dark_Wizard
07-25-2004, 04:18 PM
Here is an updated module that now works with your sites colors and fits in the side columns.

Demo: http://www.vbwar.com

Go to your Admincp add create a new template called "adv_portal_virus".

Insert this code into the template:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Virus Info</b></span></td>
</tr>
<tr>
<td class="alt2">
<script src="http://securityresponse.symantec.com/avcenter/js/vir.js"></script>
<script src="http://securityresponse.symantec.com/avcenter/js/tools.js"></script>
<script src="http://securityresponse.symantec.com/avcenter/js/advis.js"></script>
<script src="$vboptions[bburl]/virus/vir_display.js"></script>
<script>
symDisplay();
</script>
</tr>
</table>
<br />


Go to your Admincp - vba CMPS - Add Module

Module Title - Virus Alerts
Module Identifier - Leave blank
OR Template to Include - virus
Set it to active and select the column you want it in.
Save the module.

Now create a directory in your forum root named "virus" then download the attachment, unzip and upload it to the virus directory.

Now your done.

58sniper
07-25-2004, 04:22 PM
Actually, as in all of the modules, the line that reads
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Virus Info</b></span></td>

could be replaced with

<td class="tcat smallfont" style="font-weight: bold;">$vboptions[blockbullet] Virus Info</td>

This results in fewer tags (it's a little cleaner).

Thanks for the update! I still don't like the horrible code that Symantec, Trend Micro, and the others provide (it doesn't even come close to validating), but....

Our Sponsors
 

Dark_Wizard
07-25-2004, 04:24 PM
Hehehe...maybe I should make it completely XML compliant...

58sniper
07-25-2004, 04:27 PM
The problem with their code is that they haven't updated it for YEARS. So you still see some HTML 3.x stuff. Definitely NOT XHTML compliant.....

I wish they would just give us an XML feed, and we could display/style it any way we wanted.

Our Sponsors
 

Dark_Wizard
07-25-2004, 04:32 PM
The problem with their code is that they haven't updated it for YEARS. So you still see some HTML 3.x stuff. Definitely NOT XHTML compliant.....

I wish they would just give us an XML feed, and we could display/style it any way we wanted.

Agreed...but Sophos does and I'm working on that now....