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

Forum

Select Avatar
Last Post 2007-07-19 01: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 01: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 12: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 12: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 10: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 08: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 04: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 05: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 05: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 10: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 10: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 05: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 09: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 01: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: User Autrhority by Kaustav
Thanks for your reply. Can we do it like this way that different users will see differnt files af
RE: HTML editor adds target="blank" by Abraham Tameru
even if I choose "None". On other portals, I don't know why it works fine. The problem is not on all
Issue 22 . "Find and Replace SQL queries for DotNetNuke" not working by Abraham Tameru
Hi, I have some problems using Issue 22 . "Find and Replace SQL queries for DotNetNuke (To fix prob
RE: PCI Compliance with PayPal integration by Joseph Craig
Robb Bryn has a blog at www.dotnetnukefool.com/Blog.aspx that includes a nice three part series on P
RE: User Autrhority by Joseph Craig
I might start by looking at DMX Pro. At the other end of the spectrum would be the Documents or the
RE: horizontal main and submenu items by Joseph Craig
Yes, you can do that by including and excluding specific pages from a particular menu.
RE: horizontal main and submenu items by Dan Glanton
will this work with menus that have subitems already? I have a hiearchy to concider with the pages.
RE: Where is the General Exception happening? by LetItShine
Yes I use the reports module in a number of pages and often there are more than one on a page. I was
RE: Active Forums vs. DNN 6.2 CE by Joseph Craig
There is a LOT of new stuff in 6.2, so setting up a test site and learning to use it is a great idea
RE: Where is the General Exception happening? by Joseph Craig
This appears to be related to the Reports module. Are you using it? Do you recognize ALastName, AF
RE: Active Forums vs. DNN 6.2 CE by Aggiedan97
I installed 6.2 RC and AF 5.0 beta and it appears to be there but I don't know enough about AF to kn
Where is the General Exception happening? by LetItShine
I have a number of General Exceptions in the log that I'm trying to resolve and I would like help un
RE: Active Forums vs. DNN 6.2 CE by Joseph Craig
Here is a good one: http://www.dotnetnukefool.com/Blog/EntryId/56/Is-DotNetNuke-PCI-Complaint-part-1
Blog Post Permissions by Jason Hunter
Hi, We are currently using the blog module as a way to contain our sites announcements. I am looking
RE: PCI Compliance with PayPal integration by Aggiedan97
I was researching PCI compliance on the PayPal site and found this informational page. https://merc
RE: PCI Compliance with PayPal integration by Joseph Craig
Dan, It might be interesting to see if someone at PayPal is able to answer these questions ...
RE: Active Forums vs. DNN 6.2 CE by Aggiedan97
I have read and understood all of what you have understood. I hope (and I mean hope) that everything
RE: PCI Compliance with PayPal integration by Aggiedan97
Correct Joe, I'm curious when that article was authored as there are a lot of people ranting about n
RE: dnn module developement by Sameer
Thanks for your reply i thing there is one released before a couple of days back by using that on
Issue after making site Live by Sameer
Hi All i am using DNN 6.1.3 for my site every on my server working good but as i send the databas
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds