News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Recent posts

#1
Graphics and Templates / Re: Main Icon edit
Last post by bethl - Today at 03:31:27 PM
How do you overwrite the  overwrite the selector.
.main_icons.home::before {}. I'm not familiar with coding that good. 
#2
SMF 2.0.x Support / Re: fix_packages.php file does...
Last post by shawnb61 - Today at 03:28:33 PM
OK, I loaded PHP 7.3 and can see the problem.  I logged it here:
https://github.com/SimpleMachines/tools/issues/75

Allowing class type declarations was added to PHP in 7.4, and there is a class type declaration on that line. 

First recommendation is to upgrade to PHP 8.0.

If you cannot do that for some reason, I believe all you need to do is change the 'private bool' to 'private' on line 90.  Worth a try.

And then upgrade to PHP 8.0.
#3
SMF 2.0.x Support / Re: fix_packages.php file does...
Last post by Arantor - Today at 03:18:21 PM
It won't work on 7.3 because protected bool as a typed property declaration isn't supported until 7.4.

Easy to verify, copy/paste the content into 3v4l and run it on the last 7.3 version to see it dies with a parse error.
#4
SMF 2.0.x Support / Re: fix_packages.php file does...
Last post by shawnb61 - Today at 02:50:46 PM
Make sure you have the current version of fix_packages.php.  It had a bit of an overhaul a few months ago.  There are no known bugs at this time, all outstanding issues at that time were cleaned up.  (Issues would be visible here: https://github.com/SimpleMachines/tools/issues)

I just tried & had no issues with:
 - SMF 2.0.19 - PHP 7.4, PHP 8.0
 - SMF 2.1.4 - PHP 7.4, PHP 8.0-8.3

I don't have a PHP 7.3 to test with.  It's quite old, & has been out of support for a couple years. 

The current version is here:
https://download.simplemachines.org/index.php?tools
#5
SMF 2.1.x Support / Re: Multiple jquery.sceditor.c...
Last post by shawnb61 - Today at 02:20:43 PM
Quote from: barry1947 on Today at 01:52:27 PMI did try a very quick test to put a version of the jquery.sceditor.css (currently not looking at WYSIWYG) file into my theme css folder and then checked with the browser inspect function to get the address of the jquery.sceditor.css file and sure enough it still looked at the default theme location.

Note the naming difference...  Part of why it's confusing.  Copy it & rename it.

Quote from: shawnb61 on Today at 10:07:22 AMSo if you want a unique appearance of the editor, e.g., buttons & toolbars, etc., update jquery.sceditor.theme.css in your theme folder.  It may help to start with a copy of jquery.sceditor.css from the default theme.

#6
SMF 2.1.x Support / Re: Multiple jquery.sceditor.c...
Last post by shawnb61 - Today at 02:04:22 PM
Yes, if you put new css out there, make sure you force a browser cache refresh.  Usually shift-F5, shift-refresh or similar.

The above notes work fine - it's how my themes work (e.g., https://custom.simplemachines.org/index.php?theme=3009).

And yes, dynamically changing the WYSIWYG css can be difficult.  My themes use a .js solution to propagate css vars into the sceditor iframe. 

I believe @Diego Andrés provides a link to an alternate solution in the thread via the GitHub link above.

Or, possibly more user-friendly, you can simply provide a light & a dark theme, and allow the users to easily toggle between them (https://custom.simplemachines.org/index.php?mod=4336).
#7
SMF 2.1.x Support / Re: Multiple jquery.sceditor.c...
Last post by barry1947 - Today at 01:52:27 PM
Hi There Kindred, Steve , Arantor and shawnb61.
Thank you all for your input.

Kindred I assume that your reply means that there is one option for a css file and that is already taken by SMF's requirement.

Steve I chased yours through and I am not sure if that has implications for the sceditor css files. Looking through the sceditor docs it looks like the css files are loaded at the constructor stage and that is an end to it so nothing would seem to work after the event. If that is wrong please let me know.

Arantor thank you for your reply also. I have exactly the same scenario with a light and a dark theme. Did you find a cure for it?

shawnb61 thank you for your reply also. I did try a very quick test to put a version of the jquery.sceditor.css (currently not looking at WYSIWYG) file into my theme css folder and then checked with the browser inspect function to get the address of the jquery.sceditor.css file and sure enough it still looked at the default theme location. I suppose there could be a cache problem, Do you know of any other way of doing that. I suppose that one way would be to intercept the cseditors constructor and look at where the current theme is located and make a switch if that is not already being done?

Many thanks once again to you all. It is very much appreciated.
Best regards,
Barry.
#8
SMF 2.1.x Support / Re: Can I jump this windows wi...
Last post by shawnb61 - Today at 12:55:14 PM
A tool such as Papercut (link above) allows you to test email flows on your local test wamp server.  Even things like registration/activation emails.  It should help you get past being stuck there.  Enter the account/email, and when SMF sends the password recovery email, you will see it in Papercut.  Just click on the link in the email in Papercut.

There are other ways to fix a lost admin password, kinda involved.  IIRC you create a new account via the normal registration form, activate it & elevate it to admin (both via DB update) and use that new admin account to fix the password on the original one. 
#9
SMF 2.1.x Support / Re: Can I jump this windows wi...
Last post by gear777 - Today at 12:16:31 PM
Quote from: Kindred on Today at 12:02:22 PM
Quote from: Kindred on Yesterday at 06:17:32 PM...it's one of the many reasons that we don't recommend hosting yourself unless you really know what you're doing

It is a test server on my computer.  only the only one who can see it.  I just want to test mods and configurations before installing it on the hosting.
#10
SMF 2.1.x Support / Re: Can I jump this windows wi...
Last post by Kindred - Today at 12:02:22 PM

Quote from: Kindred on Yesterday at 06:17:32 PM...it's one of the many reasons that we don't recommend hosting yourself unless you really know what you're doing
Advertisement: