Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

ExactTarget - What's Your Score
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Default Editor FckEditor does not support friendly urls
Previous Previous
 
Next Next
New Post 4/18/2007 4:36 PM
User is offline William Rawson
19 posts
www.wortechnologies.com
10th Ranked


Re: Default Editor FckEditor does not support friendly urls 

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 5:02 PM
User is offline Mauricio Márquez
915 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Default Editor FckEditor does not support friendly urls 

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 5:12 PM
User is offline Mauricio Márquez
915 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Default Editor FckEditor does not support friendly urls 

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 5:14 PM
User is offline Mauricio Márquez
915 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Default Editor FckEditor does not support friendly urls 

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 5:51 PM
User is offline Dan Ferguson
106 posts
shardan.gotdns.com
9th Ranked




Re: Default Editor FckEditor does not support friendly urls 

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


-Boskone
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Default Editor FckEditor does not support friendly urls
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP