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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHelp with IRC chat moduleHelp with IRC chat module
Previous
 
Next
New Post
8/22/2011 5:53 PM
 
I've looked around for a DotNetNuke IRC Chat module with no real luck. I found two sites that appeared they would help but the skill to code it is over my head. I'm new to DotNetNuke and have only developed C# Windows Form programs.

I've used Plouf's Java IRC chat previously (on a php website) and it worked really great. I'd like to use it with DotNetNuke, but I'm not really sure where to start.

Source Code : http://PackersHome.com/zFiles/PJIRC.zip


The link I had users click is shown below.
http://PackersHome.com/index.php?name=IRCChat&file=popup&host=irc.freenode.net

name=IRCChat&
file=popup&
host=irc.freenode.net

Those parameters can be hard coded as they won't be changing.





I'd like to have a module that has this Java Applet as a page that once the page is entered, the users UserName is passed and they enter the #PackersHome chat room automatically.


The problem is, as mentioned previously, I'm not sure where to start, or what should be in C# or ASP.net.


Any help is greatly appreciated.






 
New Post
8/22/2011 7:05 PM
 
As youre using a java applet you just need to have a page that shows the applet and param tags i.e. a module that emits these and replaces the param name with your username value would be the easiest i.e.

private UserInfo _currentUser =
                   DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo();

lblApplet.text="...all your fixed values would be here...." + "<param name='name' value=' + _currentUser.UserName.ToString() + "'>" + "..all the other fixed values here..."

Alternatively you could add this direct in the skin and use inline code to inject ie <% =_currentUser.UserName.ToString() %>

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/22/2011 11:21 PM
 
cathal connolly wrote:
As youre using a java applet you just need to have a page that shows the applet and param tags i.e. a module that emits these and replaces the param name with your username value would be the easiest i.e.

private UserInfo _currentUser =
                   DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo();

lblApplet.text="...all your fixed values would be here...." + " " + "..all the other fixed values here..."

Alternatively you could add this direct in the skin and use inline code to inject ie <% =_currentUser.UserName.ToString() %>

 lol, you make it sound so easy.

I understand what you're saying with the current user to get their UserName, but the rest is over my head.

If someone could throw this together, that would be awesome. Otherwise if you could point me in the right direction that would be wonderful. I can't imagine this being terribly difficult, but I feel like Ray Charles swinging at a pinata that's 6ft over his head.



Edit, here's the raw Java applet files, I'm not sure if this would be more helpful?
http://www.pjirc.com/downloads.php


 
New Post
8/23/2011 9:58 PM
 
cathal connolly wrote:
As youre using a java applet you just need to have a page that shows the applet and param tags i.e. a module that emits these and replaces the param name with your username value would be the easiest i.e.

private UserInfo _currentUser =
                   DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo();

lblApplet.text="...all your fixed values would be here...." + " " + "..all the other fixed values here..."

Alternatively you could add this direct in the skin and use inline code to inject ie <% =_currentUser.UserName.ToString() %>

 
Okay, I have the Applet up and running and it works... but the part I thought I understood, at least from a C# standpoint is now my hold up.

I created a page, added all of the code from this file
http://packershome.com/zIRC/index.html

I used only the code between the <applet> tags ...


Is it possible to retrieve the username while doing it this way or do I have to create a module and use C# code?



 
New Post
8/23/2011 11:48 PM
 
So, I tried creating a module to do this instead ... that failed too. It's frustrating because I know what I want to do, and it's not hard, yet I keep breaking things the more I try.


 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHelp with IRC chat moduleHelp with IRC chat module


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