|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 01/03/2007 14:10:04
Posts: 6,
Visits: 19
|
|
Can you replace the text that shows up in areas such as posted by: username, to use the users email address or another field from the db. If so where can I change this.
Thank you
|
|
|
|
|
Support Supremo
      
Group: Customers
Last Login: 13/11/2008 12:44:07
Posts: 568,
Visits: 2,507
|
|
jayham (2/8/2007) Can you replace the text that shows up in areas such as posted by: username, to use the users email address or another field from the db. If so where can I change this.
Thank youDear jayham, Yes, In the InstantASP.InstantForum\InstantASP.InstantForum.UI\Controls\ViewTopics.vb around line 825 we have : If tLastPosterUserID > 0 Then hypLastPostBy.TextNonLocalized = InstantASP.Common.Text.Helpers.Truncate( _ Topic.LastPosterUsername, MyBase.CurrentContext.CurrentForumSettings.UsernameTruncation) hypLastPostBy.NavigateUrl = MyBase.CurrentContext.InstallURL + _ InstantASP.InstantForum.Globals.Paths.UserProfile(tLastPosterUserID) hypLastPostBy.ToolTip = "ViewTopics_LastPostByToolTip" Else hypLastPostBy.TextNonLocalized = InstantASP.Common.Text.Helpers.Truncate( _ MyBase.CurrentContext.CurrentSharedSettings.AnonymousUsername, MyBase.CurrentContext.CurrentForumSettings.UsernameTruncation) End If You would need to modify this to: If tLastPosterUserID > 0 Then Dim lastposteruser As New User(Topic.LastPosterUserID) hypLastPostBy.TextNonLocalized = InstantASP.Common.Text.Helpers.Truncate( _ lastposteruser.EmailAddress, MyBase.CurrentContext.CurrentForumSettings.UsernameTruncation) hypLastPostBy.NavigateUrl = MyBase.CurrentContext.InstallURL + _ InstantASP.InstantForum.Globals.Paths.UserProfile(tLastPosterUserID) hypLastPostBy.ToolTip = "ViewTopics_LastPostByToolTip" Else hypLastPostBy.TextNonLocalized = InstantASP.Common.Text.Helpers.Truncate( _ MyBase.CurrentContext.CurrentSharedSettings.AnonymousUsername, MyBase.CurrentContext.CurrentForumSettings.UsernameTruncation) End If
You will also need to recompile your solution.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 01/03/2007 14:10:04
Posts: 6,
Visits: 19
|
|
| Thanks for your reply Carlos, now I have a really stupid question, how do I recompile? Sorry I am a newbie
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 01/03/2007 14:10:04
Posts: 6,
Visits: 19
|
|
| By the way I am using Visual studio 2005
|
|
|
|