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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery slideshow image sizing incorrectGallery slideshow image sizing incorrect
Previous
 
Next
New Post
7/16/2005 7:46 PM
 

height is spelt wrong in ControlSlideshow.ascx.vb

ImageSrc.Text = "heigth=100% 

also would be better to do server-side resizing for better slideshow if actual source images are v.large or differing sizes as per preview pages eg change urls passed to javascript array and to ImageSrc.Text to result of a function which generates a url on Image.aspx which can already do the resizing.   - I have a fix/workaround for this (I'd need to post the whole of this file)

Jonathan

 
New Post
8/2/2005 4:38 PM
 

Jonathan
You are right, could you please post your fix. I am interested to fix this issue.

Many thanks,
S.Gill

 
New Post
8/4/2005 6:37 PM
 
If it posts ok this is ControlSlideshow.ascx.vb with my changes hacked straight in marked with 'JM: (quick hack not intended as ideal solution).
[I still can't use this module though, too many other problems - seriously thinking about investing my time in Sharepoint customisations instead, the image library module there is pretty good really]

'
' DotNetNuke - http://www.dotnetnuke.com
' Copyright (c) 2002-2005
' by Shaun Walker ( sales@perpetualmotion.ca ) of Perpetual Motion Interactive Systems Inc. ( http://www.perpetualmotion.ca )
'
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
' documentation files (the "Software"), to deal in the Software without restriction, including without limitation
' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all copies or substantial portions
' of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
'

Option Strict On

Imports System.Text
Imports System.IO
Imports system.xml
Imports DotNetNuke.Common.Globals
Imports DotNetNuke.Modules.Gallery.Utils
'JM:
Imports DotNetNuke.Entities.Portals
Imports DotNetNuke.Entities.Modules

Namespace DotNetNuke.Modules.Gallery.WebControls

Public Class Slideshow
Inherits System.Web.UI.UserControl

Protected WithEvents ClientJavascript As System.Web.UI.WebControls.Label
Protected WithEvents ImageSrc As System.Web.UI.WebControls.Label
Protected WithEvents pnlModuleContent As System.Web.UI.WebControls.Panel
Protected WithEvents ErrorMessage As System.Web.UI.WebControls.Label
Protected WithEvents btnBack As System.Web.UI.WebControls.ImageButton

Private mModuleID As Integer
Private mGalleryConfig As DotNetNuke.Modules.Gallery.Config
Private mRequest As GalleryUserRequest
Private mSort As Config.GallerySort
Protected WithEvents celPicture As System.Web.UI.HtmlControls.HtmlTableCell
'JM:
Private _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings

Private mSortDESC As Boolean

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()

If Not Request.QueryString("mid") Is Nothing Then
mModuleID = Int16.Parse(Request.QueryString("mid"))
End If

mGalleryConfig = Config.GetGalleryConfig(mModuleID)
mSort = Utils.GetSort(mGalleryConfig)
mSortDESC = Utils.GetSortDesc(mGalleryConfig)

End Sub

#End Region


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ErrorMessage.Visible = False

mRequest = New GalleryUserRequest(mModuleID)

If Not mRequest.Folder.IsPopulated Then
Response.Redirect(ApplicationURL)
End If

'JM:
_portalSettings = PortalController.GetCurrentPortalSettings

If mRequest.Folder.IsBrowsable Then
celPicture.Width = mGalleryConfig.FixedWidth.ToString
celPicture.Height = mGalleryConfig.FixedHeight.ToString

Dim albumPath As String = mRequest.Folder.Path
Dim slideSpeed As String = CType(mGalleryConfig.SlideshowSpeed, String)
Dim sb As New StringBuilder
Dim StartImage As String

'Generate Clientside Javascript for Slideshow
Dim JavaScript As String = ""
Dim Count As Integer

sb.Append("")

ClientJavascript.Text = sb.ToString
'JM: ImageSrc.Text = "" 'style='border-color:#D1D7DC;border-width:2px;border-style:Outset;'>"
ImageSrc.Text = "" 'style='border-color:#D1D7DC;border-width:2px;border-style:Outset;'>"


Else
ErrorMessage.Visible = True
ErrorMessage.Text = "Album contents no image!"
End If

End Sub

'JM:
Protected Function ImageURL(ByVal image As GalleryFile) As String
On Error Resume Next
Dim RequestURL As String = Request.Url.ToString
Dim url As String
'Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings
url = Page.ResolveUrl("Image.aspx?tabid=" & _portalSettings.ActiveTab.TabID & "&mid=" & GalleryConfig.ModuleID.ToString & "&path=¤titem=" & image.Index & "¤tstrip=1")
Return url
End Function


Public ReadOnly Property GalleryConfig() As DotNetNuke.Modules.Gallery.Config
Get
Return mGalleryConfig
End Get
End Property


End Class

End Namespace
 
New Post
8/4/2005 8:20 PM
 
Jonathan,

Could you please mail me the file gillsurjeet@hotmail.com

I found couple issues with Gallery v3.0.10 and also sailing in the same boat as per Gallery module's stability and functionality is concerned.

Is sharepoint module can be used/ported to Dotnetnuke web portal? Did you have any test site setup to test Gallery?

Many thanks,
S Gill

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery slideshow image sizing incorrectGallery slideshow image sizing incorrect


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