MasinoLogin10 extension will customize the look and feel of your Login page that generated by PHPMaker 10. You will see a new panel in this page so that the Login form will become eye-catching. The panel width will auto-adjust to the maximum width of the your web application. This extension also has the ability to hide the breadcrumb links that generated by PHPMaker 10. By default, PHPMaker 10 will generate the breadcrumb links in the Login page. By using MasinoLogin10 extension, then by default, the breadcrumb links will be hidden. I don't see the functionality of this breadcrumb links on the Login page, so it is better to hide it by default.
From the generated Login page, now you can either display or hide the Captcha (security code) by adjusting the related setting in the generated (ewcfg10.php) file. The same way also if you want to display or hide the breadcrumb links, and also if you want to change the panel type of the Login page. In other words, each time you want to change the settings and see the result you don't have to re-generate the script files. All you have to do is by adjusting the related setting from the generated configuration file.
To display or hide the Captcha on the Login page, then adjust the following code from your ewcfg10.php file:
define("MS_SHOW_CAPTCHA_ON_LOGIN_PAGE", FALSE, TRUE); // <-- Switch FALSE to TRUE if you want to display Captcha on the Login page
To display or hide the breadcrumb links on the Login page, then adjust the following code from your ewcfg10.php file:
define("MS_SHOW_BREADCRUMBLINKS_ON_LOGIN_PAGE", FALSE, TRUE); // <-- Switch FALSE to TRUE if you want to display breadcrumb links on the Login page
To adjust the panel type on the Login page, then adjust the following code from your ewcfg10.php file:
define("MS_LOGIN_FORM_PANEL_TYPE", "panel-default", TRUE); // available: panel-default, panel-primary, panel-success, panel-warning, panel-danger, panel-info
However, in order to adjust the default setting of those last two settings above, then you can define them from the Advanced setting of MasinoLogin10 extension, under the Tools -> Extensions -> MasinoLogin10 -> Advanced tab. Especially for Captcha setting on the Login page, you can define the default setting of it from the Security -> Advanced -> User Login Options -> Login of PHPMaker.
Please note that in order to display all the changes in the Login page properly, then you have to enable also MasinoCustomCSS10 and MasinoCaptcha10 extensions. The reason for this, since the custom CSS code which will customize the Login page will be generated using MasionCustomCSS10 extension, and the Captcha code will be generated by using MasinoCaptcha10 extension.
Updated on October 8, 2013: Now the unknown users are logged in into the Audit Trail. Also, logged the date and time of last login and logout of known users into the User Profile.
Updated on October 10, 2013: Some code customization that related to other extensions.
Updated on November 13, 2013: Added IsAdmin() function into the global function.
Updated on November 19, 2013: Fixed: Captcha not showing on the Login form if MasinoFixedWidthSite10 extension is enabled.
Updated on May 15, 2014: Added: Popup or Default options to display the Login Form as the popup window or as the normal page (as you have been using until now).
Updated on May 31, 2014: Fixed: missing the ability of focus on the first textbox when the popup dialog window is being shown.
Last Updated on July 10, 2014: Some code customization that related to other extension.
Conclusion:
As the conclusion and recap, here is the advantage of MasinoLogin10 extension:
- A new option for displaying the Login Form as popup window. However you may still use the default option for the normal Login page.
- A new panel for the Login page so that the form will become eye-catching. You can even change the panel style from the generated configuration (ewcfg10.php) file.
- The ability to hide or display the breadcrumb links on the Login page (default is hidden). Simply adjust the related setting in the generated configuration (ewcfg10.php) file.
- The ability to display the Captcha security code without having to re-generate the script files. Simply adjust the related setting in the generated configuration (ewcfg10.php) file.
- When the Login page is loaded, then mouse cursor will automatically focus on the Username input box.
- Logged the unknown users into Audit Trail which are trying to login.
- Logged the date and time of last login and logout of known users into the User Profile of them.
I am unable to generate a project with this extension enabled. Generation fails with the following message:
PHPMaker: Generate phpmkrfn page error
PHPMaker (ewExphpmkrfn): Microsoft JScript runtime
error (1391), line 438
Description: ‘sSecTblVar’ is undefined
If I disable the extension, it will generate with errors.
Any ideas?
This error happened since you have not enabled the users table from “Tools” -> “Security” -> “Use Existing Table”. Make sure you have enabled it before generating the script files.
Thanks – Getting closer. I can generate the project now with the extension enabled, but the app displays the following error:
Call to undefined function My_Global_Check in login.php line 199
If I remark out line 199 and 200, the login will appear correctly, but not sure what is causing that error….
That function is related to the MasinoFixedWidthSite10 extension. Make sure you have already enabled it before regenerating the script files.
Masino
Seems like the login page is not using the panels. No matter what I do, all of the information is displayed vertically along the left side of the page. I have debug set to TRUE and there are not sql errors.
I get the login form, but it’s vertical with no CSS and just above the footer on the left. Everything else is just below the footer.
Once I am logged in, everything seems to be working correctly.
I am using panel-default, but I have tried other panels and none seemed to help.
Have you enabled MasinoCustomCSS10 extension, too?
I have enabled all except the detect changes.
When you view the page source, did you see such the following code?
What I’m seeing is this:
Sorry. Looks like it didn’t take.
phpcss/customcss-.css
No font size
Make sure in settings or your users table, the Font_Size field has the value already, for example: 11px.
It’s correct on the remaining pages as: phpcss/customcss-14.css (from my user’s record)
and this is defined in ewcfg10: define(“MS_FONT_SIZE”, “12px”, TRUE);
Are you sure phpcss/customcss-14.css? It should be phpcss/customcss-14px.css. Make sure it has suffix px. So, the value in your user’s record is 14px.
that may be the problem. I don’t see a fint_size in the settings table.
Then please make sure you have already had Font_Name field with default value: tahoma, and also Font_Size field with default value: 11px in settings and users table respectively.
All is right with the world, again. Thanks for the assistance.
No worries. I’m always glad to help you. 🙂
Masino,
With debug on, I was looking at the SQL results and saw something very strange.
I am seeing the following results over 100 times.
(mysqlt): SELECT Theme FROM `authorize` WHERE (`username` = ‘keith’)
Error (0):
(mysqlt): SELECT Table_Width_Style FROM `authorize` WHERE (`username` = ‘keith’)
Error (0):
(mysqlt): SELECT Font_Name FROM `authorize` WHERE (`username` = ‘keith’)
Error (0):
(mysqlt): SELECT Font_Size FROM `authorize` WHERE (`username` = ‘keith’)
Error (0):
Thanks for reporting this. Yes, this is happened since we check all each menu items to see which ones is currently active for the related menu. I am going to make it simpler.
Any progress on this issue?
Will update the demo project regarding this, so that you will use the alternative method to reduce the number of SQL calls.
Now please download my demo project file again from this link, and then adjust your code from “Menu_Rendering” and “MenuItem_Adding” server events. You will see the difference.