Slideshow module for DNN 1.0.8

Last post 10-09-2003 4:56 AM by Salaro. 32 replies.

Sort Posts:

  • Re: Slideshow module for DNN 1.0.8

    06-01-2003, 11:33 PM
    • Star
      12,167 point Star
    • thecrispy1
    • Member since 06-24-2002, 1:06 PM
    • USA
    • Posts 2,434
    • TrustedFriends-MVPs
    The file is sent. Also sent one to jonahthecat@faithxt.com.
    Chris Paterra


  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 12:02 AM
    • Star
      12,167 point Star
    • thecrispy1
    • Member since 06-24-2002, 1:06 PM
    • USA
    • Posts 2,434
    • TrustedFriends-MVPs
    Sent to:jonahthecat@earthlink.net
    Chris Paterra


  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 1:00 AM
    • Participant
      795 point Participant
    • zehn25
    • Member since 06-25-2002, 8:16 PM
    • Posts 159
    Alright, got it up and running. Nice and simple, and works great. I don't know if you are looking for suggestions, but what the heck.

    First, I noticed that it doesn't work with .jpg files. Is this something that would be difficult to add?

    Next, have you considered adding file upload capabilities? Something like TTT's image gallery would work, and allows for creating subfolders. I am trying to create a situation where the portal admins don't have to have access to the file directory.

    Just some thoughts.

    Thanks for the great mod!
    Scott

    scottATmnxtech.com

    www.mnxtech.com
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 2:13 AM
    • Star
      12,167 point Star
    • thecrispy1
    • Member since 06-24-2002, 1:06 PM
    • USA
    • Posts 2,434
    • TrustedFriends-MVPs
    It does allow jpgs. I am currently only using jpg's for mine.
    Chris Paterra


  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 2:16 AM
    • Participant
      795 point Participant
    • zehn25
    • Member since 06-25-2002, 8:16 PM
    • Posts 159
    I mistyped it...I meant that I couldn't get .gif's to work. I am only using .jpg's as well.
    Scott

    scottATmnxtech.com

    www.mnxtech.com
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 2:59 AM
    • Member
      20 point Member
    • GhoST.ReapeR
    • Member since 05-31-2003, 1:58 AM
    • Posts 4
    thecrispy1
    Thanks a lot! I get Your e-mail whith js-file. And You got auto-thanks message on Your e-mail :). Sorry, it's my mistake to write it only on Russian.
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 5:33 AM
    • Member
      15 point Member
    • freakpower
    • Member since 09-17-2002, 7:22 AM
    • Posts 3
    Hi Zehn,

    I forget to put the other file extensions then jpg in this version :( this is verry easy to fix,
    I was already thinking of an upload capabilities for the next version.

    Greetz Freakpower
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 5:46 AM
    • Member
      15 point Member
    • freakpower
    • Member since 09-17-2002, 7:22 AM
    • Posts 3
    The client side java script is generated in de codebehind files there is no js file.
    the javascript looks like this:

    <script language="javascript">
    function runSlideShow(){
    if (document.all){
    document.images.SlideShow.style.filter="blendTrans(duration=2)"
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
    document.images.SlideShow.filters.blendTrans.Apply()
    }
    document.images.SlideShow.src = preLoad[j].src
    if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Description[j]
    if (document.all){
    document.images.SlideShow.filters.blendTrans.Play()
    }
    j = j + 1



    if (j > (p-1)) j=0
    t = setTimeout('runSlideShow()', slideShowSpeed)
    }
    </script>
    <BODY onload="runSlideShow()">
    <span id="_ctl4_ClientJavascript"><script language='javascript'>
    var slideShowSpeed = 3000
    var Pic = new Array()
    var Description = new Array()
    Pic[0] = 'portals/slideshow/mini-mini-01.jpg'
    Description[0] = 'Antwerpen! Anno dan he'
    Pic[1] = 'portals/slideshow/mini-mini-03.jpg'
    Description[1] = 'Oud en nieuw 2002-2003'
    Pic[2] = 'portals/slideshow/mini-mini-04.jpg'
    Description[2] = 'Vuurwerk Afsteken'
    var t
    var j = 0
    var p = Pic.length
    var preLoad = new Array()
    for (i = 0; i < p; i++){
    preLoad[i] = new Image()
    preLoad[i].src = Pic[i]
    }
    </script>
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 10:46 AM
    • Star
      12,167 point Star
    • thecrispy1
    • Member since 06-24-2002, 1:06 PM
    • USA
    • Posts 2,434
    • TrustedFriends-MVPs
    If there is no need for the file, why is it working for all those I sent the file to now? I am just asking because I am curious.

    Just as some reinforcement, I think this mod is great!
    Chris Paterra


  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 12:48 PM
    • Participant
      795 point Participant
    • zehn25
    • Member since 06-25-2002, 8:16 PM
    • Posts 159
    Don't know if this will give any needed info, but what the heck. I saw the post for the .js file, and waited to receive it before I installed the mod, so I don't know if it would have worked without it. I do know that the popup.js script that I was sent is identical to the javascript that is used to create the popup slideshow for the image gallery. So, to test, I just removed the javascript from the dnn directory completely, and browsed to my page with the slideshow on it, and it worked fine. For me, it says that the js file is not necessary for this mod.

    Just FYI...thanks for mod.

    By the way, thanks for the response on the requests...give a guy an inch, etc. If you are interested, the TTTimage gallery has very cool upload capabilities that include subfolders for different 'albums'. It is open source, so if you need me to shoot you a copy of the code, I will.

    Thanks,
    Scott

    scottATmnxtech.com

    www.mnxtech.com
  • Re: Slideshow module for DNN 1.0.8

    06-02-2003, 1:03 PM
    • Contributor
      3,051 point Contributor
    • Leigh Pointer
    • Member since 02-05-2003, 10:45 AM
    • Haarlem, The Netherlands
    • Posts 608
    • TrustedFriends-MVPs
    Hi you can modify the SlideShow.ascx:
    Around line 69 you will find :
        files = IO.Directory.GetFiles(Directory, "*.gif")

    Change to:
        files = IO.Directory.GetFiles(Directory)

    This will load all the files into the array.

    Further down, around line 90 you will find the start of the For each loop:
        For Each File In files

    Here you need to insert two new lines of code underneath this line.

    Select Case LCase(IO.Path.GetExtension(File))
    
    Case ".jpg", ".jpeg", ".jpe", ".gif", ".bmp", ".png" ' Extend to meet your needs.

    Last thing is to close the Select statement with End Select, just above the Next.

    Hope this helps.

    It should look like this:



    For Each File In files
    Select Case LCase(IO.Path.GetExtension(File))
    Case ".jpg", ".jpeg", ".jpe", ".gif", ".bmp", ".png" ' Extend to meet your needs.
    StrFilenameOnly = IO.Path.GetFileName(File)
    If Count = 0 Then StartImage = RootPath & StrFilenameOnly
    JavaScript = JavaScript & "Pic[" & Count & "] = " & "'" & RootPath & StrFilenameOnly & "'" & vbCrLf
    If IO.File.Exists(Directory & "_metadata.xml") Then
    Filenode = xml.SelectSingleNode("/files/file[@name='" & IO.Path.GetFileName(File) & "']")
    Try
    JavaScript = JavaScript & "Description[" & Count & "] = '" & Filenode.Item("description").InnerText & "'" & vbCrLf
    Catch
    JavaScript = JavaScript & "Description[" & Count & "] = '" & "" & "'" & vbCrLf
    End Try
    Else
    JavaScript = JavaScript & "Description[" & Count & "] = '" & "" & "'" & vbCrLf
    End If
    Count = Count + 1
    End Select
    Next


    Regards, Leigh

    Leigh Pointer
    User Group Champion
    » Evangelising DotNetNuke Everywhere «

  • Re: Slideshow module for DNN 1.0.8

    06-03-2003, 12:57 AM
    • Participant
      795 point Participant
    • zehn25
    • Member since 06-25-2002, 8:16 PM
    • Posts 159
    Thanks for the help, Leigh.

    I will give it a try.
    Scott

    scottATmnxtech.com

    www.mnxtech.com
  • Re: Slideshow module for DNN 1.0.8

    06-03-2003, 11:16 PM
    • Contributor
      2,500 point Contributor
    • tamttt
    • Member since 03-21-2003, 5:07 AM
    • Posts 500
    Hi freakpower

    I'm working on some addin for Gallery module, you could find it here
    www.tttcompany.com

    Slideshow would be a great feature to add.
    If you're happy with this idea, I will integrate this feature into Gallery module. Please let me know, how I could get the final release of your code.

    Thanks

    Tam, Tran Minh
    tam@tttcompany.com
  • Re: Slideshow module for DNN 1.0.8

    08-27-2003, 9:48 PM
    • Member
      450 point Member
    • sherritp
    • Member since 04-04-2003, 1:08 PM
    • Posts 90
    I just installed the slideshow module and love it! I do have a couple of comments:

    Support for .gif and .png
    Show images without aspect ratio distortion (if one image is 200x400 and another is 400x200, one will be forced to be stretched regardless of module settings)
    Check for a trailing '/' on the end of the slideshow Root URL. If / isn't on the end, files won't display correctly (but will be listed in the list box).

    Good module! Looking forward to more!
    Add a time zone display to your website!

    MyDNN TimeZones (DNN3)
  • Re: Slideshow module for DNN 1.0.8

    08-28-2003, 4:41 AM
    • Contributor
      6,445 point Contributor
    • Salaro
    • Member since 09-08-2002, 12:51 AM
    • London
    • Posts 1,289
    I use the Slide show as part of my page and it is very important that the module is fixed to certain size so the rest of the stuff on the page stays on the same place. Your suggestion with varying image size means that this module should be the only one on the page.

    I have not had a look at the source code for some time but from what I remember it was very efficiently done. The module does expect the user to edit the images prior to upload and I suppose Jpg is the most efficient way of doing it.

    I love the module, although, I can do much better with flash but the whole idea that the user to be able to do it themselves without any knowledge of Flash is very appealing.

    Salaro
    KnapHill, Surrey UK

    Skinning & Building DotNetNuke Applications
    www.salaro.com

Page 2 of 3 (33 items) < Previous 1 2 3 Next >