-
Notifications
You must be signed in to change notification settings - Fork 7
Early SMF initialization and Ajax Login #30
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
base: master
Are you sure you want to change the base?
Conversation
|
@jdarwood007 I made this change because I wanted to use SMF's globals in the meta tags and need to initialize SMF early for that.. But maybe the example usage I added may not be desireable for everyone. I can remove it if needed. |
f88093b to
2975225
Compare
|
I removed the previous example and added default JS variables for SMF. This plus the |
|
An issue I see so far is that you changed the AJAX loading to use SMF's theme URL, which is only present when loaded with SSI. If SSI is off, that won't set. |
This is kind of the point. The |
dff53f6 to
5f7d1ec
Compare
* Moved the SMF initialization from template class to the skin class. This allows us to use SMF's globals early. This is needed for setting SMF's headers. * Added SMF's headers. This is needed for JS. * Added the missing `reqOverlayDiv` function for ajax login. smfCurve2TemplateCustom template is already correcly set up to use it. Ajax login works now. * Removed the now obsolete fixes from popup functions, since loading SMF's globals fixes them. * Added a section to `README.md` about how to properly configure your forum to avoid CORS errors. * Fixed incorrect viewport setting. (copied from the curve2 theme) * Added missing theme color. (copied from the curve2 theme) Signed-off-by: Mustafa Can Elmacı <[email protected]>
|
This is great in theory, but this theme is designed to operate under the assumption that SMF is not installed, i.e., it is standalone. If we wanted SMF fully, after loading SSI, we could have essentially called template_header/template_footer() and done some adjustments to capture the output for the logic that adds the scripts/css to inject them into SMF. |
|
Well, I made the assumption that if an user enables the, If the I didn't see the need to seperate SMF integration, since If we need to have SMF integration seperated from the core theme, I would suggest having a seperate skin/template instead, (let's for example call it
So my proposal is:
I can create |
|
Creating the integration version would be acceptable. The idea for custom is to prepare some adjustments that allow for tweaking the provided template with changes. We use a modified version of the custom on our site to overload the changes yet again to integrate deeply into our site usage. But its otherwise the same as custom. |
Sorry for the late reply. I completely forgot about this. About the installation on wiki.simplemachines.org, I have found a number of differences unrelated to the customizations, even on the core theme. For example if we compare the default curve2 theme on the simplemachines site to a fresh installation from this repo you might find that the quick search is missing: (You can view the uncustomized version here: https://wiki.simplemachines.org/w/index.php?title=Main_Page&useskin=smfcurve2) This is something I fixed myself (yet to be upstreamed). There is also the case of icons, where this repo has missing most of the icons while it's visible on simplemachines website: Again, this is something I fixed. Also the Mobile menu fix #31 I upstreamed here is not yet installed to simplemachines. So, my question is: How extensive are these modifications? I'm asking this because looking at this repo's activity, and the number of fixes present on simplemachines site and not this repo, this theme is only used on simplemachines site. Honestly, I don't want to waste my time upstreaming, if it ends up being not used. Thanks for understanding. I've spent a lot of time making many changes and adding many new useful features like, forum news, forum logo (instead of showing mediawiki logo), forum slogan, collapseable sidebar and a completely redesigned usermenu that mimics SMF's usermenu for standalone and merged SMF/MediaWiki usermenu for use with smf-mw-auth. And it'll take me time and effort to beautify up my code, seperate them up to chunks, and open merge requests. |


Early SMF initialization and Ajax Login
reqOverlayDivfunction for ajax login. smfCurve2TemplateCustom template is already correcly set up to use it. Ajax login works now.README.mdabout how to properly configure your forum to avoid CORS errors.