|
|
| Integration Customizations - Active and Core Forums (United Kingdom) |
|
|
This post should be used to discuss the integration of the UserProfile module with other modules and resources (for example, the customization of the core UsersOnline).
Disclaimer:
Without scaring you off, we feel it is necessary to mention the following due to the nature of customizations:
Please note that we do not officially support these customizations as they can occupy too much time and are provided for free for everyone's benefit. Having said that, we will try to help if you raise any issue on the appropriate Forum, but please backup all modules before making any changes. We also assume that you know a little bit about module development and ASP.NET coding, and you know how to deploy DNN and how the modules tie into the core. Please ask questions before trying this if you are unsure. We provide the files "as is" and cannot be held responsible for any damage or errors that occur as a result of these customizations. Where possible, we will provide the actual files for you to download, but if it is a change to another commercial module then we will describe the changes you need to make to the actual file if you are the owner of that module.
Applying Customizations:
- Bear in mind that we are not responsible for any problem or error that a customization may cause
Backup your database and files
Ensure you have read all documentation and understand what you are doing
Post any questions you have in the relevant Forum first
Apply customization and test
Let us know your results - we love feedback!
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (Ireland) |
|
|
Rod,
What about integrating the UserProfile with the Repository?
The way I see it working is that when special types of users register as part of the profile setup they could be allocated to a category (or more than one) that relates to the repository, either by selecting it themselves or being set up by administrator.
As an example you could have advertisers or service providers who are in a certain role. A site visitor could select a category from the repository and see a summary (like businesscard template) then click to see full profile of the service provider. Further to that, integrate the ability to add products/services/offers to a profile (updateable by the user) which can be displayed in the full profile, or as a separate list (eg. top offers)
Any ideas of where to start with this idea?
Paul |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
|
Hello Paul
The reason
integration with some other modules is so simple is because it is merely
passing a UserID around and this is fed into the UserProfile module (which is a
Smart-Thinker module itself) and displays the appropriate data.
I have not
looked at the source of the repository module, so I am not sure how tricky it
would be to do what you are proposing. However I am not sure the UP module is
where the functionality belongs – it may fit better into a custom module. I
would keep pure user information in the UserProfile module (keyed on UserID)
and possible write another module that aggregates the data you wish (you could
always display them on the same page).
I think it
is better to keep the interface to the UP module as a UserID only (and it
handles the displaying of user profile info) – bear in mind that you can always
associate a normal user record with the repository, the UP info is merely an
extension of the User record – hence it may be cleaner to have a User
Repository control that showed this information.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (Ireland) |
|
|
Thanks for your thoughts Rod.
Am off on Hols for a few weeks this weekend (where I will not even think DNN!) but once I return I will get into specing and how this could work.
Paul |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
For those of you who want to integrate Active Forums signature with their UserProfile, all you need to do is construct the string to look like: http://www.pokerdiy.com/tabid/391/ID/[USERID]/Default.aspx
for example, this is the URL on PokerDIY: http://www.pokerdiy.com/tabid/391/ID/1/Default.aspx
Let me know if you are battling to do this...
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
Hey Rod,
Do you think the ability to link to the users photo will be something that could be developed in the future? I like the idea of integrating with Active Forums and other modules on my site and linking to the users photo, not just the username.
Thanks! |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Hi,
This is actually a limitation of the Active Forums templating tokens in that case - they are not able to handle the image. I am hoping that soon the core will support image uploading and then this kind of stuff will be standard across the board, but until then I don't think it's going to be possible I'm afraid....
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Hi Rod,
I am using Ventrian's Property Agent. I am trying to include a token used to link to Private Messaging to link to your User Profile module. I managed to get it all working for Messaging using Ventrian's [USERNAME] token, but I cannot seem to get your module to work on it. I wondered, is this because User Profile needs [USERID] and not [USERNAME]?
This is what I am trying to use:
..../tabid/62/ID/[USERID]/Default.aspx
It links to the page OK, but does not pick up the user. Think it also gives an error:
Error: Profile is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Input string was not in a correct format. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at SmartThinker.DNN.Modules.UserProfile.UserProfile.IsValidUserProfileIDForRetrievalType(Int32 selectedProfileTypeID) at SmartThinker.DNN.Modules.UserProfile.UserProfile.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Any ideas?
Thanks,
Anna
Anna Tarrant | In8 Website Design Hampshire | In8Website.co.uk
Content Managed Websites | User Group Websites | Build you own website
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Hi Anna, Yes, the ST UP module does use UserID and not UserName (this reminds me- I have been asking Ventrian to start using DisplayName instead of UserName whever they display names (or at least expose the DisplayName token).
Ok - can you post the URL that you are passing in to the ST UP module (the one formed using "..../tabid/62/ID/[USERID]/Default.aspx") so I can see what is incoming...
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
| |
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
The ST UP most have a UserID passed in - it looks to me as if the ActiveForums module does not expose the UserID if it is doing this. I would have thought it would (this is the basic ID of all users, even in the database), but you are going to have to take it up with them.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
ps - I was just playing around with the querystrings, and I noticed something interesting - if you remove the ID variable in the URL completely then the module will throw the correct error (Invalid UserID). If you remove just the variable value (like the URL you are using) then it shows the stranger "Invalid String Input" error as it thinks there is a UserID and tries to convert the null value into an integer. Not really relevant to the problem but I was interested as to why the module did not throw the correct "Invalid UserID" error message which makes the problem easier to track down.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
Is it possible to integrate Active forums (or the core forums for that matter) and ST UP so that when you click on the user in the forums it takes you to their ST user profile and not to the forum profile? |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
This all depends on the Forum software and whether the signature allows the [USERID] token. If it does, then it is possible. I THINK that Active Forums does (I have never used it) and I asked the core team to provide this support for extensibility many months ago.
If you would like to see this happen please go to the core Forum forums and request that they expose the [USERID] as a token in the signature or for the profile link so we can plug in our own profiles - they will only do this if we can get enough demand for it - I really dislike that my forums have their own profile and private messages. Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
I think we finally decided to go with DNN (were thinking of MOSS 2007) so I will have to get more involved. Plan to buy that platinum benefactor package so I can scream a bit louder:).
DNN Fusion integrates his UP with Active Forums so I guess it works. What is the reason the core Forum people don't want to do this? You may want to switch to Active Forums as you can integrate there the Ventrian private message module that you use for communication between users.
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Good choice.
No, it's not a case of them not wanting to do it, they just see one person requesting it (me) and therefore it's hard to justify the cost of making the UserID a token development-wise. This is why the more people that request it the better (and it makes the core Forums nice and flexible for integration). Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
| ivtch wrote
Is it possible to integrate Active forums (or the core forums for that matter) and ST UP so that when you click on the user in the forums it takes you to their ST user profile and not to the forum profile?
|
Has anyone done this to date? We would like to implement this also. |
|
|
|
 |  |
|
|
| Re: Integration Customizations (Germany) |
|
|
With a little change with the Uploaded Profile Pictures the Integration into ActiveForum would be very easy. If the Uploaded ProfilePicture would be stored in a different way, it wolud be possible to use this picture for the forum even with a link to the profile!
If it would be stored like this: ...folder/[UserID]/Profile[UserID].jpg
<a href=".../tabid/XY/[UserID]/Default.aspx">
<img border="0" src="/Portals/0/Profiles/[USERID]/Profile[USERID].jpg">
</a>
Maybe Smart-Thinker can change this in the next realese, so everyone could easily use this! I think this could be great step for integration ;-)
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (Australia) |
|
|
| stephan schneider wrote
With a little change with the Uploaded Profile Pictures the Integration into ActiveForum would be very easy. If the Uploaded ProfilePicture would be stored in a different way, it wolud be possible to use this picture for the forum even with a link to the profile!
If it would be stored like this: ...folder/[UserID]/Profile[UserID].jpg

Maybe Smart-Thinker can change this in the next realese, so everyone could easily use this! I think this could be great step for integration ;-)
|
Hi,
A new token was added in 04.03.09 to allow this kind of integration:
Sponsored Enhancement: Profile Pic can now be retrieved with UserID only - eg. /DesktopModules/Smart-Thinker%20-%20UserProfile/Profile.ashx?id=[USERID]
- http://www.smart-thinker.com/Support/Forums/tabid/111/forumid/11/postid/3832/scope/posts/Default.aspx
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (Germany) |
|
|
Oh, ok I did not see this Post. I got this working now, great job ;-) Thank you for the fast and very usefull response!
I´m looking forward which new features the upcoming releases will bring
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
Can this code be modified for Active Forums to show the user photo? |
|
|
|
 |  |
|
| |
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
What am I missing here,
I'm trying to integrate the UserProfile photo along with a link back to the userprofle.
<A href="http://mywebsite.com/User/tabid/157/ID/[UserId]/Default.aspx" class="CommandButton"><img src="/DesktopModules/Smart-Thinker%20-%20UserProfile/Profile.ashx?id=[UserId]></a>
I've also tried entering the full string for "img src", change [UserId] to [USERID] and commented id="[USERID]". Ive also removed the %20 and replaced w/a space instead. I'm running Active Forums 3.6
Any ideas?
EDIT:
I forgot to mention, I am adding this to Templates: PostInfo, under admin control panel |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
Additional Update:
The default images populate and display corrently, but any profile with an uploaded image does not display. I simply get:
An error has occured, forums is unavailable |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United States) |
|
|
Last update,
I think I can figure the rest out. after placing the code into my template, I went into a demo user account and uploaded a new user image, went back to the forums and is displaying correctly. Funny thing is, I had cleared cache prior to all these posts, as I was sure that was not the issue, but now I'm not sure.
All currently appears normal |
|
|
|
 |  |
|
| |
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Hi Rodney,
I'm not having any luck with this, I'm even trying replacing the userid with a hard coded userid I know has a photo, but still no luck... any thoughts?
I'm not using this wih the forum I using it to pull a link into another page... is this the problem?
Cheers
Nick
|
|
|
|
 |  |
|
|
| Re: Integration Customizations (Australia) |
|
|
| Nick Wild wrote
Hi Rodney,
I'm not having any luck with this, I'm even trying replacing the userid with a hard coded userid I know has a photo, but still no luck... any thoughts?
I'm not using this wih the forum I using it to pull a link into another page... is this the problem?
|
Hi Nick,
It's hard to say without knowing more about what you are trying to do:
Can you outline your objective and what you are trying to achieve, and then let me know what you have done so far, and what exactly is not working? Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
Hi Rodney,
I have a list of record labels being pulled from the catalook system by a sql sharp module and creating links to a custom page which lists information on that label - this is working very nicely.
However alongside his text list I want the image pulled from smart-thinker profile, but all I get is the broken missing image icon.
I have being using the image coding in this way...
<a href="http://www.mywebsite.com/Labels/LabelDetails/tabid/459/LabelID/$row.UserID/Default.aspx">
<img src="/DesktopModules/Smart-Thinker%20-%20UserProfile/Profile.ashx?id=371>"</a>
Cheers
Nick |
|
|
|
 |  |
|
|
| Re: Integration Customizations (Australia) |
|
|
| Nick Wild wrote

|
Ok, that looks fine - if you copy that URL into the browser - what error does it give you? Can you check the Event Log immeditately after you have done this. Are you using UserProfile 4.3.11? Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Integration Customizations (United Kingdom) |
|
|
HI Rodney,
I've found the problem... the code is putting on an extra >... I've omitted the > from my string and now all works thanks.
NIck |
|
|
|
 |  |
|
| |