Recent posts

#71
SMF Coding Discussion / Re: Add custom functions to SM...
Last post by Arantor - May 21, 2024, 04:23:40 AM
You did. That's literally not how SMF hooks work. They can accept a file to load and they can accept a named function to call (either a procedural one or a static class method) but you cannot use a closure with them.
#72
Français (French) / Re: Des comptes piratés ?
Last post by Hotcmel - May 21, 2024, 03:43:30 AM
Bonjour,

Cela m'intéresse également s'il y a une solution car depuis environ 1 semaine j'ai le même problème
#73
Modifications and Packages / Re: Custom Form Mod
Last post by Grendor - May 21, 2024, 01:50:33 AM
Hey Guys,

Thanks for the help and info you supplied, I greatly appreciate it.

I guess I might have to request a custom mod to suit my needs.
I tried several mods and each had issues I could not work around.

Anyways thanks again for the help
Grendor
#74
Graphics and Templates / Re: Main Icon edit
Last post by Antechinus - May 20, 2024, 11:13:28 PM
Sounds reasonable :)
#75
Graphics and Templates / Re: Main Icon edit
Last post by Diego Andrés - May 20, 2024, 10:25:50 PM
Quote from: bethl on May 18, 2024, 03:31:27 PMHow do you overwrite the  overwrite the selector.
.main_icons.home::before {}. I'm not familiar with coding that good. 

It's just an example, you use what you have in .sprite, inside the brackets of the selector I posted.

I'm saying overwriting, because we don't know if you're editing the icon in the index.css in its original line, or adding your CSS at the end of the file.

In any case, you still need to check the path you're using because you didn't confirm if you added that directory called "imgs".


Quote from: Antechinus on May 20, 2024, 05:41:27 PMSerious suggestion: for God's sake, do any spriting in the next version of SMF sanely.

Switching to fontawesome, but likely keeping the custom selectors (replacing them) for backwards compatibility in case we switch to <i class="fa"></i> syntax.
#76
SMF 2.1.x Support / Re: only on front page
Last post by Kindred - May 20, 2024, 08:41:50 PM
Also,  forcing a pixel width like that is so 10 years ago... it's bad coding in current designs. Plus, I see tr and td, but no table...
But then again,  using a table for layout is also last decade
#77
SMF Coding Discussion / Re: Add custom functions to SM...
Last post by Tyrsson - May 20, 2024, 08:40:15 PM
Quote from: Arantor on March 15, 2024, 03:48:58 AMHooks can't accept closures if they're saved to the database because you can't serialise a closure to persist it.
Who said anything about serializing a closure?
#78
SMF 2.0.x Support / Re: Can't acces website after ...
Last post by Diego Andrés - May 20, 2024, 08:36:36 PM
If you have a copy of the dabatase you can still run the upgrader, with a fresh set of 2.1.4 files.
#79
Español (Spanish) / Re: Varias preguntas para una ...
Last post by Diego Andrés - May 20, 2024, 08:30:06 PM
La versión de PHP la actualizas desde el cpanel.

SMF 2.0.19 es compatible con PHP 8.0 por lo que podrías mantenerte un rato más.

Para actualizar a SMF 2.1.4, tendrías que hacer un upgrade, lo cual no se puede realizar desde el manejador de paquetes.
Upgrading SMF

Igual te dejo un enlace a los requerimientos mínimos de las versiones: https://download.simplemachines.org/requirements.php
#80
SMF 2.1.x Support / Re: only on front page
Last post by Arantor - May 20, 2024, 06:42:43 PM
Well, first things first, index.template.php is on every page - if you want it on the board index, put it in Boardindex.template.php which is the template for the front page.

Secondly, you're not *really* supposed to use SSI.php inside SMF itself. Yes, it'll work, but it will likely introduce other issues. A better solution is to actually use one of the portal mods which come with a recent topics block to put at the top on any page you want.
Advertisement: