Saturday, November 22, 2008     | Register
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker W...  default notification
Previous Previous
 
Next Next
New Post 3/20/2008 12:15 AM
  MarkSensei
88 posts
3rd Level Poster


default notification  (N/A)

I am wondering if there is a way to set the user to be notified of posts as a default setting so they can later choose not to recieve emals rather than the other way around.

Also I am curious about one thing. On my community each user has a personal account page and a public profile page. I have the wall the public page but I want the user to see their wall and be able to use it from their account page aswell to make the users experience more aggrogated. When I use the DNN "add an existing module" tool to add the wall from the profile page, it shows up, but it does not display any content nor allow for posting by the user (there is a profile module instance on the account page set to logged in user) so the user ID is being passed in.

Any thoughs?

Mark

 
New Post 3/26/2008 3:10 AM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (Australia)

Hi Mark,

Apologies for the slow reply - I took a ferw days off over Easter.

 

Yes, I wanted this as well - it makes sense from a business POV that it defaults to notify the owner. The problem is that technically this is quite tricky and costly. The Wall module and the UserProfile module are very lightly coupled.

 

You could of course run a SQL script (or even schedule it to run daily) to populate the records to set everyone to "notify". I want to do this so I will post the script here when I get a chance to run it on PokerDIY. You could then check how new the user record is and if it is a new user assume that they have not set it to "off" by choice and update it to "notify". In the next version of the UserProfile module I can add a Setting to create the new record in the Wall module to On (if the Wall is used). I guess the upgrade script could set all users to "notify", although I should have done this in the first version of the Wall module.

 

With regards to the last question - can you post an example URL of the Account page? It sounds as though it is not getting the UserID from the URL.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 3/26/2008 4:26 AM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (Australia)
Modified By Rodney Joyce  on 6/30/2008 5:24:06 AM)

Ok, here is the script I ran on PokerDIY to update all existing users to Notify if they have not already changed their preferences (add in ObjectQualifier/change ModuleIDs/PortalID etc.):

 *EDIT* Fixed Not Exists query - 30th June, 2008

--get a list of all users on the site (exclude superusers and non-auth)
INSERT INTO SmartThinker_WallSubscription ([PortalID],[ModuleID],[RelatedID],[UserID],[Notify])
SELECT 6, 1970, U.UserID, U.UserID, 1
FROM Users U
INNER JOIN UserPortals UP ON UP.UserID = U.UserID
WHERE IsSuperUser = 0 AND Authorised = 1 AND UP.PortalID = 6
--Ignore all user that have already set their pref
and not Exists(select SubscriptionID from SmartThinker_WallSubscription W where PortalID = 6 and moduleID = 1970 and RelatedID = U.UserID and UserID = U.UserID)


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 3/26/2008 5:17 AM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (Australia)

I just posted on someone's wall on PokerDIY and I thought of another feature for the next version:

 

If you post on someone's wall for the first time then it defaults Notification to on (if it is not your first post it assumes that you have decided already).


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 5/20/2008 5:36 AM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (Japan)

 Rodney Joyce wrote

I just posted on someone's wall on PokerDIY and I thought of another feature for the next version:

 

If you post on someone's wall for the first time then it defaults Notification to on (if it is not your first post it assumes that you have decided already).

Just a follow up on this - I thought about this in more detail and it's going to be a significant performance hit to achieve this, so I have postponed it - I can go into more techincal detail if anyone wants, but this is not as simple as it seems.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 6/9/2008 6:08 PM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (Australia)

Keep an eye on this post.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 6/30/2008 4:28 AM
  Rodney Joyce
2908 posts
www.DNNDir.com
1st Level Poster




Re: default notification  (N/A)
Modified By Rodney Joyce  on 6/30/2008 5:29:44 AM)

I have also done a SQL script for updating all active Group members and all Event Guests. You will need to change your moduleID's PortalIDs and insert the correct objQualifier. Ru nat own risk...

 

--update all active group members to be notified when there is a new post
insert into SmartThinker_WallSubscription (PortalID, ModuleID, RelatedID, UserID, Notify)
select 6, 1963, GroupID, GU.UserID, 1
from SmartThinker_GroupUser GU
--make sure this user exists
inner join users U on U.UserID = GU.UserID
inner join UserPortals UP on UP.UserID = GU.UserID
where not Exists(select SubscriptionID from SmartThinker_WallSubscription W where PortalID = 6 and moduleID = 1963 and RelatedID = GroupID and GU.UserID = W.UserID)
and Up.portalID = 6 and Up.Authorised = 1
and ApprovalStatusID = 1

 

--update all event guests to be notified when there is a new post
insert into SmartThinker_WallSubscription (PortalID, ModuleID, RelatedID, UserID, Notify)
select 6, 1971, eventID, EU.UserID, 1
from SmartThinker_EventUser EU
--make sure this user exists
inner join users U on U.UserID = EU.UserID
inner join UserPortals UP on UP.UserID = EU.UserID
where not Exists(select SubscriptionID from SmartThinker_WallSubscription W where PortalID = 6 and moduleID = 1971 and RelatedID = eventID and EU.UserID = W.UserID)
and Up.portalID = 6 and Up.Authorised = 1

 


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker W...  default notification
Top Threads
In the past 1 week, we have 29 new thread(s) and 70 new post(s)
The most popular thread has been Re: Multipaid Sponsored Enhancements
The most active thread has been Multipaid Sponsored Enhancements / Crowdsourcing to improve modules
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use