Hi JTI,
like Stephan wrote, we had the problem with Subportals.
IMHO it's a problem with the replacement of the URLS in the img-tag.
The workflow seems to be the following:
1.) The module will receives the content from every editor. The amount of editors depends on the languages you use.
2.) The HTML will be parsed for IMG-tags
3.) The src-Property off all img tags will be replaced with the database id. You can find that ID in file Table.
4.) The parsed text will be saved
This works fine.
The error occurs if you want to display the text..
In that case the ID's have to be replaced with a working!!! URL.
In this URL cannot be the portal alias. It must be the path to the portal home directory.
Please open the file contentprocessor.vb.
replace the function "GetFilePath" with:
Private Function GetFilePath(ByVal FileID As Integer) As String
Dim ImageFile As DotNetNuke.Services.FileSystem.FileInfo
Dim FileController As New DotNetNuke.Services.FileSystem.FileController
ImageFile = FileController.GetFileById(FileID, PortalId)
If Not ImageFile Is Nothing Then
'fix for sending out content in emails
Dim strDomainName As String = GetPortalDomainName(objPortal.PortalAlias.HTTPAlias, Nothing, True).ToLower()
Dim u As New Uri(strDomainName)
If strDomainName.StartsWith("https:") Then
strDomainName = "https://" & u.Host & "/"
Else
strDomainName = "http://" & u.Host & "/"
End If
'we now always use fully qualified urls, this for sending out emails
Return strDomainName & objPortal.HomeDirectory & ImageFile.Folder & ImageFile.FileName
Else
Return GetPortalDomainName(objPortal.PortalAlias.HTTPAlias, Nothing, True) & "/images/" & "blank.gif"
End If
End Function
In our case it's working.
![sovort-it](http://www.sovort-it.com/images/soVort_Logo.gif)
Dipl.Ing.(FH)
Jürgen Sommer
soVort-IT, Jürgen Sommer IT Consulting
Südstraße 15
61169 Friedberg
--------------------------------------------------
Telefon: +49 (0)6031 791 749
Telefax: +49 (0)6031 791 697
Email: juergen.sommer@sovort-it.com
Web: http://www.sovort-it.com