-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usercp2.php removal #3034
Comments
I have already made changes, testing now. I need some guidance: Hooks will be renamed as well? There is no point using 'usercp2' in hook names, but if I modify those hooks maybe some existing plugins using those hooks break. Please confirm so that I can make a PR. |
Well, here is the PR. |
I’m not sure what the best option for hooks is. I’d say we should keep the names the same, and add a comment explaining why they’re called that.
… On 2 Apr 2018, at 16:08, effone ***@***.***> wrote:
Well, here is the PR.
Tested so far working fine ...
Unfortunately messed and mixed up with my other PR and reverted commit. Is it okay or I have to create fresh?
Also suggest required changes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@euantorano Alright I will do the necessary reverts. Just another point, if we keep the old hooks there is an open hook in usercp2.php Decision? |
I doubt any plugins use usercp2_start (I could be wrong though). We might be able to get away with not including it.
… On 2 Apr 2018, at 17:20, effone ***@***.***> wrote:
@euantorano Alright I will do the necessary reverts.
Just another point, if we keep the old hooks there is an open hook in usercp2.php
$plugins->run_hooks("usercp2_start"); which I have ommitted as $plugins->run_hooks("usercp_start"); is already in place. But there is no $plugins->run_hooks("usercp2_end");
This start hook of usercp2 is pointless and can be omitted. But if I omit that the issue remains same as any plugin using the hook $plugins->run_hooks("usercp2_start"); will break.
Decision?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If we're keeping this issue for 1.9, then the hooks should be renamed. |
Commit: Hook names retained If we are going to rename hooks at all; its not a big job, but a matter to decide. Let me know and I will revert my last commit, if required. |
Are we gonna merge this or waiting for 1.9? |
A change like this would be best for 1.9 in my opinion.
… On 5 Apr 2018, at 06:28, effone ***@***.***> wrote:
Are we gonna merge this or waiting for 1.9?
I have a messed up fork of MyBB (no idea how some commit happened directly to feature while I was playing with VSCode) and this is preventing me to make a freah fork as well as making new PR. So I need to delete and refork.
Still not much familiar with GitHub, I guess ...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@euantorano with due honor to your view this is not gonna impact much in extend as you can see only 6 links to be fixed in theme.xml removing '2' from links (css association can be kept as is) and thats all. Even if people not comfortable or not ready to modify links we can suggest them with 2 lines of htaccess code and that will handle all routing from usercp2 to usercp. The frontend impact is neglegable wrt the ongoing / upcoming changes. |
Another solution is to keep a dummy usercp2 for now with a code like following:
that will handle updated as well as old themes ... |
Yes, that would work. And yes, we're keeping the old hooks as of now. |
* THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed.
* THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed.
* Fixes #3034 usercp2.php removal (#3093) * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed. * Converted usercp_addsubscription_thread * usercp2 -> usercp
…bb#3261) * Fixes mybb#3034 usercp2.php removal (mybb#3093) * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed. * Converted usercp_addsubscription_thread * usercp2 -> usercp
…bb#3261) * Fixes mybb#3034 usercp2.php removal (mybb#3093) * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed. * Converted usercp_addsubscription_thread * usercp2 -> usercp
* Fixes #3034 usercp2.php removal (#3093) * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed. * Converted usercp_addsubscription_thread * usercp2 -> usercp
* Fixes #3034 usercp2.php removal (#3093) * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed. * Converted usercp_addsubscription_thread * usercp2 -> usercp
[Rebased for 1.9 by Laird] * THIS_SCRIPT Fallback added. Moved from ./global.php * Revert "THIS_SCRIPT Fallback added." This reverts commit 81fecc7. * Removal of usercp2 Removed traces of usercp2 from wol functions * Removed traces of usercp2 Updated Unsubscription Information links. * Removal of usercp2 CSS attachment & links updated. * Merged usercp2 codes Combined usercp & usercp2 codes. Maintained usercp condition style. * Delete usercp2.php Codes combined in usercp. * Hook names retained 1. Hook names reverted to earlier for backward compatibility 2. $plugins->run_hooks("usercp2_start"); Dropped. 3. Comments added to hooks for reference. * Removed ALLOWABLE_PAGE As suggested ... * Added back "ALLOWABLE_PAGE" .... as confirmed.
In 1.9 we should remove the usercp2.php and look to merge this into one since the file doesn't do a huge amount and tidy things up a little bit.
The text was updated successfully, but these errors were encountered: