Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> Portal components
admin (no pm's please)

User components

Following some contributions of portal code, there is now a new version of the portal code, that allow you to have for example in your OPTIONs

Code:

[AVCHECK]
name=AVCHECK
title=Virus Alerts


and this will allow you to create a template file cms_avcheck.tpl such as:

Code:

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_avcheck_title -->
<tr>
<th class="thTop">{L_AVCHECK_TITLE}</td>
</tr>
<!--END switch_avcheck_title -->
<tr>
<td><script src="http://securityalerts.mcafee.com/mcalerts/en-us/AlertConstant.js"></script>
<script src="http://securityalerts.mcafee.com/mcalerts/en-us/ResourceFile.js"></script>
<script src="http://securityalerts.mcafee.com/mcalerts/AlertDisplay.js"></script>
<script>
   dsplyfs = 1;
   lnkfs = "http://us.mcafee.com/root/mfs/default.asp";
   dsplyvs = 1;
   lnkvs = "http://us.mcafee.com/root/campaign.asp?cid=9828";
   DisplayMcAfeeAlerts();
</script>
</td>
</tr>
</table>


You can then use {MYFF.AVCHECK} like any other portal component.

Doing this has required a few tweaks to the portal code, that I want to test out further, so the release may not be until the weekend.

If people create components with the system, they can then be easily made available to everyone, as indeed in the office {MYFF.SEARCHFORM} and {MYFF.AVCHECK} are now global components.

Note that components like this could be simply written as html into template files directly. But that the component approach makes for easier to read and modify templates.
CodyT07

The McAfee Table is customiziable. Currently it has all the components. You can take some out by going here http://securityalerts.mcafee.com/mcalerts/?cid=9921 you just have the change the McAfee Script code. If not good at HTML i would leave it the way it is. I do have to give some credit to ziddy for originally finding the page. I just made it a portal. If you want to see what the finished result with "roughly" look like go to http://linkexchange.myfastforum.org
Nick(NR)

I take it you used the code I tidied up for Cody Wink
admin (no pm's please)

Nick(NR) wrote:
I take it you used the code I tidied up for Cody Wink


I am not sure which one, but the advantage of this system is that an improved version is easily postable here and intalled in seconds. So it won't matter that much once the system is in place.

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum