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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...HTML error in the <img> tag of the Banner module (DNN 4.0.3)HTML error in the tag of the Banner module (DNN 4.0.3)
Previous
 
Next
New Post
7/2/2006 12:59 AM
 

It seems that any way I impliment a banner in DNN 4.0.3 (i.e. either as a [BANNER] token in the skin or as a banner module in a content pane), there is an error in the HTML code: it always adds an extra " (double quote) at the end (inside) the opening tag.  Here's an example with the extra quote marks outlined:

<table id="dnn_dnnBANNER_lstBanners" cellspacing="0" cellpadding="0" Summary="Banner Design Table" border="0" style="border-collapse:collapse;">
 <tr>
  <td align="center" valign="middle" style="border-color:Black;width:100%;">
  <span id="dnn_dnnBANNER_lstBanners__ctl0_lblItem"><a
   href="/DNN4/LinkClick.aspx?BannerId=5&VendorId=2"><img 
   src="/DNN4/Portals/0/Repository/Image22.jpg" border="0" alt="My Picture""></a></span>
 </td>
 </tr>
</table>

This may be common knowledge as I'm relatively new to DNN, but I guess I will have to fix this in the source code myself?  And is there a way to make modules like the banner to "inject" their content into the skin without using tables for layout as we see here?  Will DNN move to near current W3C XHTML standards? (These questions are not meant to be overly critical: I love DNN!)

 
New Post
7/3/2006 1:04 AM
 

I found the typo on line 245 of the file ~\DotNetNuke_4.0.3_Source\Library\Components\Vendors\BannerController.vb:

229   Private Function FormatImage(ByVal File As String,
      -> ByVal Width As Integer, ByVal Height As Integer,
      -> ByVal BannerName As String, ByVal Description As String) As String
230
231       Dim Image As String = ""
232
233       Image += "<img src=""" & File & """ border=""0"""
234       If Description <> "" Then
235           Image += " alt=""" & Description & """"
236       Else
237           Image += " alt=""" & BannerName & """"
238       End If
239       If Width > 0 Then
240           Image += " width=""" & Width.ToString & """"
241       End If
242       If Height > 0 Then
243           Image += " height=""" & Height.ToString & """"
244       End If
245       Image += """>" 'the close of the tag doesn't need a closing "
246                      'because each attibute has it already.
247       Return Image
248
249   End Function

However, I have figured out how to use the bug tracker and have submitted this there.   But can someone tell me the steps to saving/compiling/whatevering this file for use in my DNN installation once I've saved it?

Thanks!

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...HTML error in the <img> tag of the Banner module (DNN 4.0.3)HTML error in the tag of the Banner module (DNN 4.0.3)


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