You need to Register for free and Login to post a message in the forum.

Forum

Select Avatar
Last Post 2007-07-19 02:20 PM by Lee Sykes. 12 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-10-08 02:20 AM  

Should be a simple module... The ablity for a user to select an avatar from images on the portal, and update their forum (Active Forums) profile to link to that avatar.

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-10-21 01:54 AM  

We created the ability to select an avatar with XMod, and a AJax call to an aspx page that updated the Active Forums tables. If anyone has XMod, and Active Forums... AND would like this functionality, contact me and I'll share the code.

My Avatar @ GymnasticsMedia

http://www.gymnasticsmedia.com/Forums/MyAvatar/tabid/398/Default.aspx

Screenshot since you need to be logged in to "Select an Avatar".

http://www.gymnasticsmedia.com/portals/9/screenshots/screenshot_avatars.jpg

 

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-10-22 01:02 PM  
Hello,

Perhaps you would be interested in putting together an article on how you implemented it?  We could then publish it on DNN C. for everyone to read as it sounds like a good implementation of active forums and XMod.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-10-22 11:13 PM  

Lee,

I'm not very good at writing articles, but I gave it a try. I had a hard time with the code, and putting it in HTML, so I created a word doc. Edit it as you see fit.

 

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-10-23 09:22 AM  
That's great, thanks for taking the time to put it together,

Cheers,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Norberto OlazabalUser is Offline
Nuke Newbie
Nuke Newbie
Posts:1

--
2006-10-24 05:40 PM  
is it possible for the user to upload or maybe use a remote image as an avatar?
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-10-24 06:35 PM  

Yes actually you can upload, or point to a remote image via Active Forums "My Profile". BUT I think you made a good point. A link to where the user can edit their profile should be on the same page as the "My Avatar" page.

Thanks for the suggestion!

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-10-24 06:48 PM  

You can use the {XMOD_UserId} constant to embed the user id into the url to link to the user's "My Profile" page.

Below is what I used to link to the user id.

<CENTER><TABLE>
<TR>
<TD id="dnn_ctr761_NTForums_toolbar_tdMyProfile" nowrap="nowrap"><a id="dnn_ctr761_NTForums_toolbar_hypProfile" class="CommandButton" href="/Forums/tabid/230/view/profile/uid/{XMOD_UserId}/Default.aspx">My Profile</a></TD>
</TR>
</TABLE></CENTER>

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Steve TopilnyckyUser is Offline
Nuke Newbie
Nuke Newbie
Posts:2

--
2006-11-25 11:13 AM  
Ken,
I am trying your sample above. I ran into a little snafu.. I have admin, and a security role called Forum Admin, and of course registred users. I set the XMOD permissions so that Admin & Forum Admin can approve and Registred Users can upload. Funny, when I log in as a regular user, I can not added any Records. If I log in as Forum Admin, I can approved/disapprove of images, but can not upload. Only the Admin account current can upload. I am very new to XMOD, but I like your sample, it fills the gap where Active Forums did not add such a feature. Any suggestions on how to fix this. I have been through the configuration set up so many times I'm going blurry eyed.

Thanks in advance for your assistance.

--
Regards,
Steve
Steve TopilnyckyUser is Offline
Nuke Newbie
Nuke Newbie
Posts:2

--
2006-11-25 11:20 AM  
>>Ken, <<
BIG OOPPPSSSS.. Sorry I meant to write Kirk...

--
Regards,
Steve


Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2006-11-25 06:31 PM  

Steve,

Have you added a XMod Form? Only people who added the record,or have permissions to edit/delete records see have the option(s) in a ListView. Do you have a URL, or is this on your local machine?

In the below example on my site I have a list view, and a form view on the same page.

Add Gympedia Entry

 

On this example I have a two list views, with a link to a form is the user has no Swap Meet profile. Users must enter data through a Form View, while Admins can add through the list view, or for view.

Swap Meet

 

Hope this helps...

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Gym MediaUser is Offline
Nuke Pro
Nuke Pro
Posts:73
Avatar

--
2007-07-17 10:26 PM  

It's been brought to my attention that the selectavatar.aspx file could be suseptible to SQL injection attacks since the sql statment is not using paramters. Here is the updated code. If you have any questions please contact me.

 

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim objConn As New SqlClient.SqlConnection("Server=someserver;Database=somedatabase;uid=someuserid;pwd=somepassword;")

Dim objCommand As New SqlClient.SqlCommand

Dim sql As String

Dim PortalID As String

Dim UserID As String

Dim Avatar As String

Try

PortalID = Request.QueryString("pid")

UserID = Request.QueryString("uid")

Avatar = "/Portals/" & PortalID & "/SystemAvatar/" & Request.QueryString("avatar")

sql = "UPDATE NTForums_UserDetails SET AvatarLink=@Avatar, AvatarFileName='' WHERE PortalID=@PortalID AND UserID=@UserID"

objConn.Open()

objCommand.Connection = objConn

objCommand.CommandText = sql

objCommand.Parameters.Add("@Avatar", Avatar)

objCommand.Parameters.Add("@PortalID", PortalID)

objCommand.Parameters.Add("@UserID", UserID)

objCommand.ExecuteNonQuery()

Catch ex As Exception

Throw ex

Finally

objConn.Close()

objConn.Dispose()

objCommand.Dispose()

End Try

End Sub

GymnasticsMeida.com
The Ultimate Portal for the Ultimate Sport
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2007-07-19 02:20 PM  
The code change has been added to the tutorial:
Using XMod with Active Forums to select Avatars

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds