vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-17-2004, 05:08 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Smile Symantics Virus Alerts

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>
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/membersare...=5#generictemp

Last edited by TCS; 05-30-2004 at 10:36 AM.
  #2  
Old 05-17-2004, 05:14 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Symantics Virus Alerts

Thanks for sharing.
I've moved this thread since it's really an user contributed module.
  #3  
Old 05-17-2004, 05:25 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Default Re: Symantics Virus Alerts

Cool, I will get the hang of where to put it soon I hope. lol
  #4  
Old 05-29-2004, 01:41 PM
extremebetas extremebetas is offline
Junior Member
 
Join Date: May 2004
Posts: 2
Default Re: Symantics Virus Alerts

How can I shrink the width of my symantec box to match my other boxes so they all match in size??
  #5  
Old 05-29-2004, 04:14 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Default Re: Symantics Virus Alerts

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  
Old 05-29-2004, 04:36 PM
zeechan zeechan is offline
Junior Member
 
Join Date: Apr 2004
Posts: 11
Default Re: Symantics Virus Alerts

I clicked on demo link but i got file not founf error. Have you plan to fix it.
  #7  
Old 05-29-2004, 07:42 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Default Re: Symantics Virus Alerts

Updates the demo link.

Last edited by TCS; 05-30-2004 at 10:31 AM.
  #8  
Old 05-30-2004, 06:44 PM
machino machino is offline
webmaster in training
 
Join Date: Mar 2004
Posts: 6
Default Re: Symantics Virus Alerts

nice, thanks
  #9  
Old 06-01-2004, 03:17 PM
jgcomp jgcomp is offline
Junior Member
 
Join Date: Feb 2004
Posts: 3
Default Re: Symantics Virus Alerts

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  
Old 06-01-2004, 03:40 PM
Chuckie's Avatar
Chuckie Chuckie is offline
Senior Member
 
Join Date: Jan 2004
Posts: 124
Default Re: Symantics Virus Alerts

Sophos has a very nice setup. I like it too.
  #11  
Old 07-25-2004, 09:22 AM
Dark_Wizard Dark_Wizard is offline
Coder
 
Join Date: Jun 2004
Location: North Carolina
Posts: 24
Default Re: Symantics Virus Alerts

Quote:
Originally Posted by Chuckie
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.

Last edited by Dark_Wizard; 07-25-2004 at 09:46 AM.
  #12  
Old 03-19-2005, 12:03 PM
smackLAN's Avatar
smackLAN smackLAN is offline
mmm...bacon!
 
Join Date: Mar 2005
Location: State Hospital
Posts: 162
Default Re: Symantics Virus Alerts

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.

Last edited by smackLAN; 03-19-2005 at 04:33 PM.
  #13  
Old 03-30-2005, 05:38 PM
RichieBoy67 RichieBoy67 is offline
Member
 
Join Date: Apr 2004
Posts: 48
Default Re: Symantics Virus Alerts

Another great module!! Thanks
__________________
TalkandMore.Net - Forums, Shopping, Games and More!
  #14  
Old 07-30-2005, 06:49 PM
virtualburn virtualburn is offline
Junior Member
 
Join Date: Jul 2005
Posts: 18
Default Re: Symantics Virus Alerts

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:08 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.