Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Playing FLASH inside my module???Playing FLASH inside my module???
Previous
 
Next
New Post
12/19/2006 8:47 PM
 

Hi,

Appologies again if I upset anyone, that wasn'y my intention, but at least I got *some* response, which is a good progress from my previous posts :)

Also, thanks to professorcw1, with the help of the sample code from his link I was able to compare what was different in my code.

Yes, I am using the <OBJECT> flash thing. However, DNN is not just a regular ASP.NET application since it does some magic on the background, including hiding what is the current folder location for my module (hiding it from me anyway).

The module I am writing right now is called JOIN and it allows access to unauthorized users (invitation for users to join the portal). On that module I want to display a flash called FILE.SWF - some presentation.

So the question is where do I put this flash?

I tried both locations: at the root directory and inside DesktopModules/JOIN

It didn't make a difference. So after few more tries I figured that the key is in this parameter:

<param name="movie" value="file.swf">

My assumption was that DNN will pickup file.swf from the current directory, right?

But what is the current directory?

The URL line looks something like this:

http://www.portal.com/dnn/Join/tabid/149/Default.aspx

but to actually make it work I had to change the above Param to:

<param name="movie" value="../../../file.swf">

another option that works is to specify the full URI:

<param name="movie" value="http://www.portal.com/dnn/file.swf">

I also wanted to related to some of the other comments mentioned here:

1. I have done and I ALWAYS do very extensive searches for answers *before* I post to the DNN forums, including DNN documentation, google, live.com, anything

2. When I said DNN is poorly documented, I meant the book I purchased which is a lot of cut-n-paste parts of the source code. Guys, the source code is available to me. I don't need to buy a book to read it again.

3. Having source code is wonderful, and it helped me many time during development. However, the modules source code is *not* available, like the media module.

Thanks again to everyone who contributed, and I hope the information here will help others on the way to success.

I will try to help as much as I can from what I learn, hopefully some of our prayers will reach the lords of DNN :)

Ofer

 
New Post
12/20/2006 8:10 AM
 

Ofer,

You bring up a point that is not unique to flash.  There have been several discussions regarding where module files can/should be stored.  Usually, this question is regarding images, but a file is a file, right?

I think this thread has a good explaination with a couple options.

The short of it is your module is stored in /desktopmodules/[modulename].  It doesn't matter what the url is, that's where the module is coming from.  You can choose to store your flash files there, you can put them in /portals/[portalid]/flash, you can put them anywhere you want.  How you reference is just like any other application.  You should reference the physical location of the file, not what the url is representing.

As hooligannes pointed out, DNN is just another asp.net app.  Granted, it's a complex app, but an app none the less.  If you think about how you would go about writing pages from scratch, you would create your aspx page (old way) or master page (new way) and add your content as a user control.  DNN uses the same methodology.  The aspx part of the page is your root/default page.  All content is modules, which are ascx user controls.  The same rules apply either way.

The "magic" you refer to is just url rewriting.  This is a practice common across most sites these days.  DNN uses friendly urls to help the site with search engines and (imho) just make things look nicer.  Obviously, when you create a url path on the fly, you can not expect to be able to store files in that same location.  It's not a physical location, which is your only requirement for where you do store files.  The url rewriting process is pretty well documented, if you want to understand how that works.  Personally, I don't feel the need to know how it works, I just need to know what is going to happen.  The choice is yours. (See DotNetNuke Friendly Urls.pdf in the Documentation download)

Lastly, don't get discouraged.  Being good at DNN development takes time.  There is a learning curve, but once you really get it, you'll find ways to do anything you want using this great framework.  I also reiterate what was said earlier about helping others.  When the lightbulb goes off in your head (and it will), don't forget these forums exist.  A place to post problems does no one any good unless there are people there who post solutions.  When you're capable (and again, you will be), come back and help out.

 
New Post
12/20/2006 8:43 AM
 
Hi,
Thanks again for the elaborated reply, I really appreciate it.
Yes, by now I know about Friendly URLs, relative paths, etc.
I am also able to display the images correctly in my dev & production servers.
Yet, this flash thing just puzzled me.
Anyway, ranting about DNN is just a way to take some frustration out.
I didn't know it when we decided to get into this project few months ago, and if I knew all the facts back than, maybe we would have chosen to go vanila ASP.NET. At least I KNOW the code I am writing!
But hey, it's an open source, free of charge. We shouldn't be complaining right? :)
And if you think about it, MSDN is also pretty bad when it comes to documentation.
I find my self doing a google search everytime I need to know something about ASP.NET.
It's a faster search and most of the time I get links to forums, blogs, etc which are WAY more useful than MSDN.
However, when I click on the help button in DNN next to the "Login Page" and it tells me "Enter the Login Page", this is not serious. Come on guys, it's better not to put anything there, or at least put SOMETHING in the book!
Finally, you may have heard this before, but we used to say:
"Software documentation is like sex. When it's good - it's very good. When it's bad - it's better than nothing!"
Cheers!
Ofer
 
New Post
12/20/2006 6:38 PM
 

Here is how I got it to work.

<div id="comercial">    
    <!--[if !IE]> -->
    <object type="application/x-shockwave-flash" data="mini_commercial.swf" width="114" height="81">
    <!-- <![endif]-->
   
    <!--[if IE]>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="114" height="81"
     codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
     <param name="movie" value="mini_commercial.swf" />
    <!--><!---->
     <param name="loop" value="true" />
     <param name="menu" value="false" />
     <param name="quality" value="high" />
     <p>This is <strong>alternative</strong> content.</p>
    </object>
    <!-- <![endif]-->
</div>

It works for both IE and FireFox.

John

 
New Post
12/21/2006 3:58 AM
 
Thanks!
That solved the problem for Firefox :)
Ofer
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Playing FLASH inside my module???Playing FLASH inside my module???


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out