Products

Solutions

Resources

Partners

Community

About

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 ForumsFeedbackFeedbackFeedback Module - Existing PostsFeedback Module - Existing Posts
Previous
 
Next
New Post
5/5/2011 10:45 AM
 
Hello..
When we add the feedback form to a page, it automatically adds the feedback results module to show feedbacks which have been sent.  This will resolve our requirements showing the feedback information which have been entered and sent.

I've added the [Feedback:SenderRemoteAddr] token to the item template to show the client user IP address.  If I enter the token within the brackets, then it shows the IP address inside these brackets ([ 192.168.100.100]); for the other tokens, it doesn't show them inside brackets.  BUT, if I remove the brackets, then it just shows Feedback:SenderRemoteAddr instead of the true IP address.

I'd like to add the following hyper-link into the item template so if we click on the IP address, it takes us to DNSSutff.com to show us information about this client IP address.  But because the brackets aren't working properly (they're showing up), I can't have the hyper-link work properly.

Is there a code change I can make which will help to resolve this for the time being?  Thanks.. -Jeff

Example Item Template:
<div>
<div style="clear: both;">
<b>From:</b>&nbsp;[Feedback:SenderName]&nbsp;&nbsp;&nbsp;<b>Entered:</b>&nbsp;[Feedback:PublishedOnDate]<br />
<b>IP Address:</b>&nbsp;<a href="http://private.dnsstuff.com/tools/ipall.ch?ip=[Feedback:SenderRemoteAddr]" target="_blank">[Feedback:SenderRemoteAddr]</a><br />
<b>Subject:</b>&nbsp;[Feedback:Subject]
</div>
<div style="margin-top: 10px">
<b>Message:</b><br />
[Feedback:Message]
</div>
</div>


 
New Post
5/5/2011 10:57 AM
 
This also kinda goes with the results module issue.

I have the [Feedback:PublishedOnDate] token included in the item description.  Yet, the results are showing the time 3 hours behind.  EST/EDT is 10:55am, but the results module will show the time as 7:55am.  Odd..

I looked in the database the correct time is shown.
 
New Post
5/5/2011 10:59 AM
 
Also, when I looked in the database, I see the SenderRemoteAddr is entered as [ 192.168.100.100].  This is why the original IP address issue I originally posted about, is occurring.
 
New Post
5/7/2011 11:19 PM
 
The leading and trailing brackets are being intentionally added when the remote address is formatted by the FormatRemoteAddr method found in the Feedback module's source code at line 73 in the file ModuleSecurity.vb. I'm not sure why I did this. In order to remove the brackets it would be necessary to modify the FormatRemoteAddr method or the GetUserIPAddress method found at line 83 in the same source file.

Alternatively, the leading and trailing brackets could be left as is when the remote address is written to the database then stripped off with a modification to the GetProperty method (IPropertyAccess implementation) in the file FeedbackInfo.vb.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/7/2011 11:37 PM
 
Datetime values such as that for PublishedOnDate are stored in the database using the database server's time zone. When they are retrieved for display during Guest Book/Comments module's template token resolution, they are converted to the time zone of the user viewing the guest book. If the user's time zone preference is not set or for an anonymous user the datetime value is converted to the portal's default time zone. No adjustment is made for daylight savings time. So, if the user's time zone preference or the portal's default time zone is set incorrectly or if daylight savings is being observed, it is quite possible that the displayed time could be off by several hours. Also, if the database server is not located in the same time zone as the portal default time zone and additional error may be introduced.

Hopefully DNN 6.x will see the introduction of a new way to handle time zone correction and will include the proper offsets for daylight savings time where such can be determined.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackFeedback Module - Existing PostsFeedback Module - Existing Posts


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