Nuclear General Posted December 4, 2011 Share Posted December 4, 2011 File Name: Synch Me! File Submitter: Nuclear General File Submitted: 03 Dec 2011 File Category: User and Social Engagement This hook when enabled, will Show your members a link after the notification drop-down that will allow them to at whim synchronize their Notification Preferences to the Admin-Defined Defaults. It will ALSO Change Auto follow topics I reply to preference to match the setting for Default follow method on registration, Enable Show inline pop-up when I have new personal messages, and Send me any updates sent by the community administrator. Extremely useful for a "Natural" opt-in to the ACP-Defined Notification Defaults for existing members after an upgrade or conversion. Also adds check-all boxes to the User Control Panel, and a floating save box. Extremely useful for a "Natural" opt-in to the ACP-Defined Defaults for existing members after an upgrade, or, just setting up your preferences quickly and painlessly. Includes a postUpgrade tool to resolve ALL members to the defined ACP Default Settings from Recount and Rebuild, as Well as the Tweak above.DO NOT ABUSE THIS TOOLIf You do, I am NOT Responsible For the Results. Additionally, the ACP Rebuild tool in this package has been known to occasionally cause odd interaction with item marking for the specific day it is run on, You are Warned, to be used after upgrades and sparingly only. DEMO info: link: http://www.marchertech.com/board/ username: demo pass: demo1234 simply click "Synch" logged in with this account, you may feel free to un-select everything, save, and click it again here to download this file Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 Looks interesting... Is there a way to run a forced sync for all member accounts? Could be very useful indeed. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 Looks interesting... Is there a way to run a forced sync for all member accounts? Could be very useful indeed. In Frank Honesty, it "could" be done, but I won't author an admin force to be abused. This is a simple re-usable noticeable easy opt-in. Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 In Frank Honesty, it "could" be done, but I won't author an admin force to be abused. This is a simple re-usable noticeable easy opt-in. Personally, running a clan community I'd rather I could apply the default new notification settings introduced since ipb 3 (we've been with ipb since late 1. / early 2. so most do not have notifications set). Then they could opt out (though I doubt they would, considering I'd be applying the defaults for the board which are essentially recieve an inline notification when someone posts a topic in a forum they are following - with all of them already following the events forum). :| Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 Personally, running a clan community I'd rather I could apply the default new notification settings introduced since ipb 3 (we've been with ipb since late 1. / early 2. so most do not have notifications set). Then they could opt out (though I doubt they would, considering I'd be applying the defaults for the board which are essentially recieve an inline notification when someone posts a topic in a forum they are following - with all of them already following the events forum). :| .... That's the reason I went this way TBH..... its a LOT easier to opt-in to that pane-of-doom of check-boxes than to opt-out.... I would hate to be a user that did not want half the notifications options on a board with any quantity of apps : My own takes me 5 minutes to clear after a synch >.< ::shrugs:: this is a slap it visible link, and let members make the decision even IF they have different preferences to opt-in. Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 .... That's the reason I went this way TBH..... its a LOT easier to [u]opt-in[/u] to that pane-of-doom of check-boxes than to [u]opt-out[/u].... I would hate to be a user that did not want half the notifications options on a board with any quantity of apps : My own takes me 5 minutes to clear after a synch >.< Surely that should be for the Board Owner to decide at their own peril. Either they use it sensibly knowing that their members will accept and desire this change, or they abuse it and lose activity traffic and members. It's in the Owner's best interest to not abuse it. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 ugh.... sigh.... some kind of acp tool then? Hate to have to add an entire section to do no more than add a link and some per-go "fixes"...... How should it handle members that have this configured already? As an opt-in I am able to just re-assign, as a "force" I would assume existing selected options should be left alone. Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 Yeah just a simple tool would work excellently in my opinion, since really it would only need to be run once after an upgrade or changes to default notification options. I'd recommend having an option to either overwrite all options entirely regardless of if they've been altered previously or only overwrite those options which users have not defined for themselves since an upgrade from ipb 2 to 3. No matter what you do this would definitely be welcome as I know a lot of my users have not yet used ipb 3+ to its fullest potential. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 Yeah just a simple tool would work excellently in my opinion, since really it would only need to be run once after an upgrade or changes to default notification options. I'd recommend having an option to either overwrite all options entirely regardless of if they've been altered previously or only overwrite those options which users have not defined for themselves since an upgrade from ipb 2 to 3. No matter what you do this would definitely be welcome as I know a lot of my users have not yet used ipb 3+ to its fullest potential. In flat honesty, cleanest way to slice it is a members Application upgradePostRebuild.php included.... the application doesn't have one at stock(existing are in core area)... Give me like an hour max, and i'll have said rebuild tool added, and instructions updated for install.... Though i REALLY dont like the fact i Cant lock it after one run... text appears in red.... but it would be nice IMHO to be able to Really Lock it after one run. I Hereby Take NO responsibility for abuse. This Tool I'm adding to Recount and Rebuild is to be used Once. You are Warned. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 In Frank Honesty, it "could" be done, but I won't author an admin force to be abused. This is a simple re-usable noticeable easy opt-in. Love how I eat Crow here..... and so Quick too! >.< After an Upgrade borking the configs... people do need a tool to opt everybody in(thousands of members... itd take forever to get them all to click.... so-on and so forth). Treating it as a postUpgrade Rebuild Option though.... As BOLDLY Stated... It is to be used once postUpgrade after Configuring the Notification Defaults. File Updated. Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 Love how I eat Crow here..... and so Quick too! >.< After an Upgrade borking the configs... people do need a tool to opt everybody in(thousands of members... itd take forever to get them all to click.... so-on and so forth). Treating it as a postUpgrade Rebuild Option though.... As BOLDLY Stated... It is to be used [u]once[/u] postUpgrade after Configuring the Notification Defaults. File Updated. Found a Bug of sorts... When you run the new task, it automatically ticks 'Auto follow topics I reply to. Notification frequency:' at the top of the notification options, despite it not being defined in Notification Defaults in the ACP. Any chance of a fix? I can imagine that WOULD annoy members :P Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 Found a Bug of sorts... When you run the new task, it automatically ticks 'Auto follow topics I reply to. Notification frequency:' at the top of the notification options, despite it not being defined in Notification Defaults in the ACP. Any chance of a fix? I can imagine that WOULD annoy members :tongue: Ugg. as you said, no settings existent.... open up admin/applications/members/extensions/upgradePostRebuild.php included. find: //No setting >.< we are hardcoding this loosely. $r['member_cache']['show_notification_popup'] = '1'; change to: //No setting >.< we are hardcoding this loosely. //$r['member_cache']['show_notification_popup'] = '1'; Then, find: //again, we are loosely hardcoding this, as no settings for these defaults either.... IPSMember::save($r['member_id'], array( 'core' => array('auto_track' => 'offline', 'allow_admin_mails' => '1', 'members_cache' => $newpost ))); change this to: //again, we are loosely hardcoding this, as no settings for these defaults either.... IPSMember::save($r['member_id'], array( 'core' => array( 'members_cache' => $newpost ))); Save, and re-upload the file. Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 Ugg. as you said, no settings existent.... open up admin/applications/members/extensions/upgradePostRebuild.php included. find: //No setting >.< we are hardcoding this loosely. $r['member_cache']['show_notification_popup'] = '1'; change to: //No setting >.< we are hardcoding this loosely. //$r['member_cache']['show_notification_popup'] = '1'; Then, find: //again, we are loosely hardcoding this, as no settings for these defaults either.... IPSMember::save($r['member_id'], array( 'core' => array('auto_track' => 'offline', 'allow_admin_mails' => '1', 'members_cache' => $newpost ))); change this to: //again, we are loosely hardcoding this, as no settings for these defaults either.... IPSMember::save($r['member_id'], array( 'core' => array( 'members_cache' => $newpost ))); Save, and re-upload the file. Made those changes, then re-ran the recount and rebuild tool and got the error: Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 etc Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 Made those changes, then re-ran the recount and rebuild tool and got the error: Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 Warning: Invalid argument supplied for foreach() in /<removed>/forums/admin/applications/members/extensions/upgradePostRebuild.php on line 144 etc 0-o..... that would mean the core notifications cache is not being loaded... or a syntax error...but im unable to reproduce that in any manner locally.... check the edits didn't get typoed :/ Link to comment Share on other sites More sharing options...
Divine Forces Posted December 4, 2011 Share Posted December 4, 2011 0-o..... that would mean the core notifications cache is not being loaded... or a syntax error...but im unable to reproduce that in any manner locally.... check the edits didn't get typoed :/ Found the issue, I had the hook disabled but the postupgrade script was still showing as available so had forgotten - It now seems to have worked & that fix works :) Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 4, 2011 Share Posted December 4, 2011 uuuh... LOL... that makes sense... hook loads the notifications cache globally for that to work :tongue: cleaner than manually calling it in and therefore adding a query overhead on run. Lack of the text on the Recount/Rebuild tool should've been a clue stuff was amiss. Link to comment Share on other sites More sharing options...
KittyCanuck Posted December 5, 2011 Share Posted December 5, 2011 Just to clarify: this synchronizes the user's setting with all of the default notification settings, correct? Is there any way to have the option of only syncing the "receive emails from administrator" setting? I don't really have a preference what other notification settings my users have (unless there's some reason I should?), but it sure would be great if there was an easy way for them to opt-in to the admin emails. My site has used IPB since early 2.x, and for a number of years the default setting during registration was "no" for receiving administrator emails (and the vast majority of my users don't change the defaults on the reg page). Unfortunately, the notifications page is confusing to many members, so a one-click opt-in would be amazing. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 6, 2011 Share Posted December 6, 2011 Just to clarify: this synchronizes the user's setting with all of the default notification settings, correct? Is there any way to have the option of only syncing the "receive emails from administrator" setting? I don't really have a preference what other notification settings my users have (unless there's some reason I should?), but it sure would be great if there was an easy way for them to opt-in to the admin emails. My site has used IPB since early 2.x, and for a number of years the default setting during registration was "no" for receiving administrator emails (and the vast majority of my users don't change the defaults on the reg page). Unfortunately, the notifications page is confusing to many members, so a one-click opt-in would be amazing. The hook opt-in sychronizes it all.... very simply for the very reason you stated :P no-one wants to go down that pane-of-doom to check all the stuff to be notified when someone responds to their posts. that being said..... the fact you specify opt-in means you dont want a tool to resolve them do you? You like the choice :ike: Link to comment Share on other sites More sharing options...
KittyCanuck Posted December 8, 2011 Share Posted December 8, 2011 Pardon? Yes, I offer the choice, but the point of my asking was to see if it would be easier for members to opt-in. Right now, they have to go into the "panel-of-doom" and find the right option and save. It would be a lot nicer for them to be able to do this with the ease that the Sync button provides (they just have to click one easily visible button, and boom, it's done), but without having to lose all their other notification settings. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted December 8, 2011 Share Posted December 8, 2011 Pardon? Yes, I offer the choice, but the point of my asking was to see if it would be easier for members to opt-in. Right now, they have to go into the "panel-of-doom" and find the right option and save. It would be a lot nicer for them to be able to do this with the ease that the Sync button provides (they just have to click one easily visible button, and boom, it's done), but without having to lose all their other notification settings. After seeing the response to this item, and considering its the only hook having to do with follow/notifications presently without settings, I am revisiting this to see what can be made more malleable/configurable. Link to comment Share on other sites More sharing options...
Richard.C Posted January 7, 2012 Share Posted January 7, 2012 After seeing the response to this item, and considering its the only hook having to do with follow/notifications presently without settings, I am revisiting this to see what can be made more malleable/configurable. works well thank you. Are there any ACP settings for this hook? Link to comment Share on other sites More sharing options...
Richard.C Posted January 8, 2012 Share Posted January 8, 2012 also, I changed the location of the button, still easy to access but less tempting for users to click it all the time :wink: Link to comment Share on other sites More sharing options...
Marcher Technologies Posted January 9, 2012 Share Posted January 9, 2012 also, I changed the location of the button, still easy to access but less tempting for users to click it all the time :wink: no additional settings are included at this time, honestly debating wether it is quantifiable as an app/module as i have come to loath the way system settings are handled(complete lack of language capabilities). I do like the reposition and will revisit this in whole when i have spare moments. Link to comment Share on other sites More sharing options...
TracyIsland Posted May 1, 2012 Share Posted May 1, 2012 Hi - Clicked on the demo board and logged in. Could not find the 'synch' thing anywhere, displayed in the header menu or in the user drop down. Didn't see anything in the Notification Options area either. Brian Link to comment Share on other sites More sharing options...
Marcher Technologies Posted May 1, 2012 Share Posted May 1, 2012 Hi - Clicked on the demo board and logged in. Could not find the 'synch' thing anywhere, displayed in the header menu or in the user drop down. Didn't see anything in the Notification Options area either. Brian sigh... I need to stop popping hooks disabled replicating bugs(only way to be certain its not some hook doing something weird) :D simply had to go turn it back on. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.