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 06-21-2004, 02:12 AM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Flash Dynamic Nav Menu

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

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:
Code:
<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
Attached Files
File Type: zip cmpsflashmenu.zip (2.8 KB, 223 views)
File Type: zip menusource.zip (10.4 KB, 197 views)
File Type: zip vbcpmsflashMX.zip (5.0 KB, 177 views)

Last edited by ptourvi1@twcny.; 06-23-2004 at 01:34 PM.
  #2  
Old 06-21-2004, 04:31 PM
Socket Socket is offline
Junior Member
 
Join Date: Apr 2004
Posts: 14
Talking Re: Flash Dynamic Nav Menu

Nice

Thx for the update too
  #3  
Old 06-23-2004, 09:50 AM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Flash Dynamic Nav Menu

not exactly what i was looking for... but thanks anyways...
  #4  
Old 06-23-2004, 12:51 PM
GoldnGT GoldnGT is offline
Junior Member
 
Join Date: Jun 2004
Posts: 8
Default Re: Flash Dynamic Nav Menu

Is there a way to change the font used? I tried to edit the source with Flash MX and it gave me "UNEXPECTED FILE TYPE"

Mike
  #5  
Old 06-23-2004, 01:23 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

Polo...bonfire posted another one in the other hacks/addons section...maybe that one?

GoldnGT, it was made using the very latest MX version so it should be ok editing it in that one...I plan on doing another version where the color/hover color/ and font are controlled via text...Also, I may be able to save the source in a lower version so you can edit it.....What version MX do you have...I'm using MX 2004...

Edit I uploaded a resaved source version. Flash would only let me save as MX 2004 or MX so I chose MX on this one...hopefully it works for you...if you are any good at coding, the actionscript could be cleaned up.

Last edited by ptourvi1@twcny.; 06-23-2004 at 01:31 PM.
  #6  
Old 06-23-2004, 01:31 PM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Flash Dynamic Nav Menu

Quote:
Polo...bonfire posted another one in the other hacks/addons section...maybe that one?
i will check thanks
  #7  
Old 06-23-2004, 01:42 PM
GoldnGT GoldnGT is offline
Junior Member
 
Join Date: Jun 2004
Posts: 8
Default Re: Flash Dynamic Nav Menu

I've got the original FlashMX. I have 2004 at home, (i'm at work now) so i'll have to try it when i get there as well.

I'll try this one... thanks.

Mike
  #8  
Old 06-23-2004, 03:17 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

Quote:
Originally Posted by GoldnGT
Is there a way to change the font used? I tried to edit the source with Flash MX and it gave me "UNEXPECTED FILE TYPE"

Mike

For anyone that doesn't have FlashMX or doesn't know how to make this change, tell me the font you want and I'll make the change and upload or email the new file...
  #9  
Old 06-24-2004, 08:47 AM
GoldnGT GoldnGT is offline
Junior Member
 
Join Date: Jun 2004
Posts: 8
Default Re: Flash Dynamic Nav Menu

This addon is great. Made a real difference in the layout of my CMPS loader. I changed the font to Verdana, (b/c its easier to read on my site, plus i ahve some long section names) and it looks good.

Props!

Mike
  #10  
Old 07-14-2004, 10:41 AM
Snowy Snowy is offline
2 Forces, 1 Power
 
Join Date: Apr 2004
Location: UK
Posts: 70
Default Re: Flash Dynamic Nav Menu

Quote:
Originally Posted by ptourvi1@twcny.
For anyone that doesn't have FlashMX or doesn't know how to make this change, tell me the font you want and I'll make the change and upload or email the new file...
I was hoping you may do me a menu that will fit in with my sites skin?

www.synergyforums.com

Thanks
  #11  
Old 08-02-2004, 02:02 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

Hmmm, I did everything you stated and the mod displays the menu without any text and when a button is clicked "undefined" is displayed in the navbar.. This is what I am using:
Code:
menu1=Home/Headlines
&url1=www.pcadventurers.net/
&menu2=Forums
&url2=http://www.pcadventurers.net/forums/index.php
&menu3=User Control Panel
&url3=http://www.pcadventurers.net/forums/usercp.php
&menu4=FAQ
&url4=http://www.pcadventurers.net/forums/faq.php
&menu5=Articles
&url5=http://www.pcadventurers.net/forums/articles.php
&menu6=Arcade
&url6=http://www.pcadventurers.net/forums/arcade.php
&menu7=Calendar
&url7=http://www.pcadventurers.net/forums/calendar.php
&menu8=Members
&url8=http://www.pcadventurers.net/forums/members.php
&menu9=Search
&url9=http://www.pcadventurers.net/forums/search.php
&menu10=Log Out
&url10=http://www.pcadventurers.net/forums/login.php?do=logout
I have the files in http://www.mydomain.net/flashmenu/ What am I doing wrong?
  #12  
Old 08-02-2004, 02:14 AM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

have you tried the files in your root directory? Undefined means the file didn't load the values from the text file.

Also, you may want to try this code in your template.

Code:
<!-- 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="cpmsmenu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="cpmsmenu.swf" quality="high" bgcolor="#ffffff" width="180" height="210" name="cpmsmenu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- End custom code -->
  #13  
Old 08-02-2004, 02:20 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

Ok, moving them to the root dir fixed the issue. Interesting...
  #14  
Old 08-02-2004, 02:22 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

Thanks. I like the font you are using and I assumed that would be what was used. What do I need to do to get that font? Also can I add more buttons?

Last edited by mholtum; 08-02-2004 at 02:25 AM.
  #15  
Old 08-02-2004, 02:31 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

Ok, now I am confused. I reedited the menuitems.txt file and reuploaded it. Blank again.
  #16  
Old 08-02-2004, 11:53 AM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

if you goto your site via youraddy.com it works, but if you goto www.youraddy.com it doesn't work...I had the same issue before...change your object code like mine and that should fix it
  #17  
Old 08-02-2004, 12:13 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

You lost me.. Change it where?
  #18  
Old 08-02-2004, 01:40 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

change your code in the adv_portal_flashmenu template to the code I posted above..
  #19  
Old 08-02-2004, 01:55 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Flash Dynamic Nav Menu

Great thanks. Done. I would like to change the font to match the rest of the site. ANy ideas?
  #20  
Old 08-05-2004, 01:00 AM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Flash Dynamic Nav Menu

You'd have to edit the source fla included in the zip file..
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nav Menu if anyone wants it BoNfiRe Add-On Modules & Modifications 59 05-21-2006 04:29 PM
Dynamic navigation module? hpwilhelm Add-On Modules & Modifications 5 06-23-2004 09:49 AM
Admincp Menu Snowy Troubleshooting / "How do I..." Questions 1 06-19-2004 08:37 AM
New menu poseidon Troubleshooting / "How do I..." Questions 12 05-19-2004 07:17 PM


All times are GMT -4. The time now is 06:07 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.