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 ForumsForumForumCannot insert image from ForumImageCannot insert image from ForumImage
Previous
 
Next
New Post
5/2/2007 5:10 AM
 

I'm using DNN 4.5. I can insert images into ForumImage but I cannot insert any images into post body. Does anybody know why?

 
New Post
5/4/2007 11:28 AM
 

It would require gallery integration, I would seriously look into using the html provider to do this as this is how it is handled in the next forum version.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
5/5/2007 1:55 AM
 

Thanks a lot for replying to my question! I actually could insert images into the integrated gallery; but when it came to inserting an image from the gallery to post body, nothing happened except for an "Error on page" indicated by IE browser. The error looks like this:

Error: 'dnn_ctr375_Forum_PostEdit_teContent_teContent_designEditor' is null or not an object

I decided to trace the error down. This is what I found:

An image on the window which is popped up by clicking on the "Insert Image" button is a link that looks like this:

<a id="dlStrip_ctl00_lnkFullSize" title="Insert full zise image into post body..." class="Forum_AltHeaderText" href=" window.opener.SetParentValue('Form','','rockpray.jpg','&lt;IMG src=\&quot;http:\/\/www.makeaband.com\/thanglong\/Portals\/0\/ForumImage\/rockpray.jpg\&quot; \/>','body');">rockpray</a>

So it called a javaScript function SetParentValue in the originating page which contains this codes:

<script src="/thanglong/js/dnncore.js" type="text/javascript"></script><script language="JavaScript">
var popUp;
function OpenNewWindow(url, params, postBack)
{
popUp = open(url + "&formname=" + document.forms[0].name, 'forum', params);
}
function SetParentValue(formName, targetID, image, mediaURL, type)
{
if(type == "header")
{
var media = document.getElementById(targetID);
var mediaHolder = media.parentElement.parentElement;
var mediaFile = mediaHolder.firstChild.firstChild.firstChild;
media.innerHTML = mediaURL;
mediaFile.value = image
}
else
{
this.dnn_ctr375_Forum_PostEdit_teContent_teContent_designEditor.focus();
sel = this.dnn_ctr375_Forum_PostEdit_teContent_teContent_designEditor.document.selection.createRange();
sel.pasteHTML(mediaURL);
}
popUp.close();
}
</script>

There I found the line of code that causes the "null or not an object" error.

As a side note, "Insert Image" button is available when we choose a specific item in the Gallery Image drop down list under Forum Administrations>> Gallery & Emoticons.

Hope this would help for future version of the Forum module. Thank you for reading up to this line!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumCannot insert image from ForumImageCannot insert image from ForumImage


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