ptourvi1@twcny.
06-21-2004, 03:12 AM
Some people were asking for this and I was making it for myself anyways so here it is for anyone that wants it.
Edit: Added new zip with fla source file and new swf with correct font embedded..to upgrade just overwrite old swf with new one.
Edit 2: Added a resaved standard FlashMX source-vbcpmsflashMX.zip
Edit2.5: I've noticed problems in the object code if you use an absolute path so you may want to just use a relative path to the swf
Demo on upper left below:
DEMO HERE (http://www.tek-wiz.com/)
Dynamic Flash Menu by JTMON
Ok here is a down and dirty quick dynamic nav menu made for vbcmps.
This will add a basic dynamic navigation module to your CMPS which can be changed via text file.
First,
decide what text you want on each button. You must use all ten buttons for this version else the button will say undefined.
Open the included menuitems.txt file. Replace my text with your own..the menu1, menu2, menu3, refer to the text that will show on the button. The url1, url2, url3 refers to the path (relative or absolute) to whatever webpage or web address you want loaded when that button is clicked. MAKE SURE TO LEAVE the txt file formatted as is. Upload the menuitems.txt and the cpmsmenu.swf file to the same location on the server. I placed mine in my webroot.
Next,
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_flashmenu".
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>$vba_options[portal_blockbullet] Nav Menu</b></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Begin custom code -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="172" height="210" id="cpmsmenu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.yoursite.com/pathtofile/cpmsmenu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="cpmsmenu.swf" quality="high" bgcolor="#ffffff" width="172" height="210" name="cpmsmenu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- End custom code -->
</td>
</tr>
</table>
<br />
MAKE SURE TO REPLACE:
http://www.yoursite.com/pathtofile/
with your address and path.
REPLACE: "Nav Menu" with whatever you want the title of the block to show as on the portal page.
Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - flashmenu
- Module Identifier - Leave blank
- OR Template to Include - flashmenu
- Activate and select the column you want it in.
- Save and you are done.
thanks to clord for his basic module code..
Enjoy-JTMON
Edit: Added new zip with fla source file and new swf with correct font embedded..to upgrade just overwrite old swf with new one.
Edit 2: Added a resaved standard FlashMX source-vbcpmsflashMX.zip
Edit2.5: I've noticed problems in the object code if you use an absolute path so you may want to just use a relative path to the swf
Demo on upper left below:
DEMO HERE (http://www.tek-wiz.com/)
Dynamic Flash Menu by JTMON
Ok here is a down and dirty quick dynamic nav menu made for vbcmps.
This will add a basic dynamic navigation module to your CMPS which can be changed via text file.
First,
decide what text you want on each button. You must use all ten buttons for this version else the button will say undefined.
Open the included menuitems.txt file. Replace my text with your own..the menu1, menu2, menu3, refer to the text that will show on the button. The url1, url2, url3 refers to the path (relative or absolute) to whatever webpage or web address you want loaded when that button is clicked. MAKE SURE TO LEAVE the txt file formatted as is. Upload the menuitems.txt and the cpmsmenu.swf file to the same location on the server. I placed mine in my webroot.
Next,
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_flashmenu".
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>$vba_options[portal_blockbullet] Nav Menu</b></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Begin custom code -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="172" height="210" id="cpmsmenu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.yoursite.com/pathtofile/cpmsmenu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="cpmsmenu.swf" quality="high" bgcolor="#ffffff" width="172" height="210" name="cpmsmenu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- End custom code -->
</td>
</tr>
</table>
<br />
MAKE SURE TO REPLACE:
http://www.yoursite.com/pathtofile/
with your address and path.
REPLACE: "Nav Menu" with whatever you want the title of the block to show as on the portal page.
Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - flashmenu
- Module Identifier - Leave blank
- OR Template to Include - flashmenu
- Activate and select the column you want it in.
- Save and you are done.
thanks to clord for his basic module code..
Enjoy-JTMON