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...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorDefault Editor FckEditor does not support friendly urlsDefault Editor FckEditor does not support friendly urls
Previous
 
Next
New Post
4/18/2007 7:36 PM
 

I may have found the issue the following line in linkgallery.aspx.vb should be changed to reflect tracklinks to false instead of default which is true. It appears that maybe there was a change in the LinkClick() method that if the TrackLinks value is not included it uses the default value of true. so changeing the following line:

 

mylink = DotNetNuke.Common.Globals.LinkClick(mylink, Me.PortalSettings.ActiveTab.TabID, -1)

to:

but this makes it that all links are not trackable even when you want it so also adding " showtrack=true" to page load and letting user select the option and change the above could to reflect the users choice would be a better way of correcting the issue.

Thanks again

mylink = DotNetNuke.Common.Globals.LinkClick(mylink, Me.PortalSettings.ActiveTab.TabID, -1, False)

 
New Post
4/18/2007 8:02 PM
 

The real code is (I will explain in a new post later):

Private Sub cmdSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSelect.Click
            Dim ver As String() = PortalSettings.Version.Split("."c)
            Dim vermaj As Integer = CInt(ver(0))
            Dim vermin As Integer = CInt(ver(1))
            Dim mylink As String = ctlURL.Url
            Dim bypassLinkclick As Boolean = False
           
            If Left(mylink, 7).ToLower = "fileid=" Then
                Dim useSlash As Boolean = False
                If (vermaj = 3 And vermin >= 0 And vermin <= 2) Or (vermaj = 4 And vermin = 0) Then
                    Dim dbimg As New DotNetNuke.Services.FileSystem.FileController
                    Dim myid As String = mylink.Substring(7)
                    Dim objimg As DotNetNuke.Services.FileSystem.FileInfo = dbimg.GetFileById(CInt(myid), PortalSettings.PortalId)
                    If Not objimg Is Nothing Then
                        mylink = objimg.Folder & objimg.FileName
                    End If

                Else
                    Dim dbimg As New DotNetNuke.Services.FileSystem.FileController
                    Dim myid As String = mylink.Substring(7)
                    Dim objimg As DotNetNuke.Services.FileSystem.FileInfo = dbimg.GetFileById(CInt(myid), PortalSettings.PortalId)

                    If Not objimg Is Nothing Then
                        If objimg.StorageLocation = DotNetNuke.Services.FileSystem.FolderController.StorageLocationTypes.InsecureFileSystem Then
                            mylink = Me.PortalSettings.HomeDirectory & objimg.Folder & objimg.FileName
                            bypassLinkclick = True
                        End If
                    End If
                End If

            End If
            If (vermaj = 3 And vermin >= 0 And vermin <= 2) Or (vermaj = 4 And vermin = 0) Then
                mylink = DotNetNuke.Common.Globals.LinkClickURL(mylink)
            Else
                If Not bypassLinkclick Then
                    mylink = DotNetNuke.Common.Globals.LinkClick(mylink, Me.PortalSettings.ActiveTab.TabID, -1)
                End If

            End If

            SendResultURL(mylink)
        End Sub


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
4/18/2007 8:12 PM
 

The code I posted before will work like this (I made some custom url building to try to avoid the bug inside the Linkclick function)

Supposing you have DNN 4.5.1, you code will enter this part:

Dim dbimg As New DotNetNuke.Services.FileSystem.FileController
Dim myid As String = mylink.Substring(7)
Dim objimg As DotNetNuke.Services.FileSystem.FileInfo = dbimg.GetFileById(CInt(myid), PortalSettings.PortalId)
If Not objimg Is Nothing Then
If objimg.StorageLocation = DotNetNuke.Services.FileSystem.FolderController.StorageLocationTypes.InsecureFileSystem Then
mylink = Me.PortalSettings.HomeDirectory & objimg.Folder & objimg.FileName
bypassLinkclick = True
End If
End If

The, if you storage locatuion is a public one, your link will be created as:

mylink = Me.PortalSettings.HomeDirectory & objimg.Folder & objimg.FileName

and the bypassLinkclick = True

So, that will be your final link.

 


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
4/18/2007 8:14 PM
 

So the resulting URL is: /Yourapplicationroot/folder/file

and it is very friendly!!!

The question is: What is your DNN Version?


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
4/18/2007 8:51 PM
 

The core URL control is not returning a 'Friendly URL' We are looking into how we can solve this.


-Dan
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorDefault Editor FckEditor does not support friendly urlsDefault Editor FckEditor does not support friendly urls


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