News:

Follow us on Bluesky!

Main Menu

Recent posts

#1
SMF 2.1.x Support / Re: array_keys(): Argument #1 ...
Last post by FatRat - Today at 07:08:44 AM
I have since run the repair_settings file and now I get this error..

theme_template_error
#2
SMF 2.1.x Support / array_keys(): Argument #1 ($ar...
Last post by FatRat - Today at 07:00:50 AM
I have just moved web hosts and am trying to restore my forum (2.16) from a back up, through cPanel/phpmyadmin.

All goes well, I create a new DB, import the back up .sql file and then run a clean SMF install. The installer finishes and then I get this error at fabcampers.com/smf [nofollow]

array_keys(): Argument #1 ($array) must be of type array, null given

#3
Español (Spanish) / Re: Mi foro ha desaparecido
Last post by prdx - Today at 06:53:16 AM
Lo primero decir que actualmente (imagino que has cambiado la configuración después del primer mensaje del topic) no hay ssl activo en tu foro:
Quote$ openssl s_client -showcerts -servername www.superkillers.smfnew2.com [nofollow] -connect www.superkillers.smfnew2.com [nofollow]:443 </dev/null
CONNECTED(00000003)
129781009495360:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../ssl/record/rec_layer_s3.c:1552:SSL alert number 40
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 320 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

Tanto el dominio smffy.com como el actual smfnew2.com parece que soportan ssl y lo único que te piden es que actives la función de ssl en tu foro [nofollow].
Yo creo que deberías preguntar en el foro de soporte de smfnew2.com [nofollow] ya que te podrán confirmar la configuración.

Entiendo que smfnew2.com [nofollow] tiene un certificado de tipo wildcard y por lo tanto te protegerá tu dominio. Sin embargo al registrarte veo que hablan claramente de no poner las "www" delante de tu dominio.

Eso puede parecer estético sin embargo es posible que lo digan ya que si el wildcard es de un solo nivel te protegerá dominio.smfnew2.com [nofollow] pero no www.dominio.smfnew2.com [nofollow].
#4
Español (Spanish) / Re: colocar boton en perfil
Last post by prdx - Today at 06:15:30 AM
Si lo haces con hooks debes usar `integrate_profile_areas` con algo parecido a eso:

add_integration_function
('integrate_profile_areas', __CLASS__ . '::addProfileButton', false, __FILE__);


Y luego la función añades una condición que si el id de usuario no es uno mismo no haga nada:

public static function addProfileButton(array &$areas): void
{
   global
$user_info, $context;

   
// No hacemos nada si no es tu propio perfil
   
if (empty($context['member']) || $context['member']['id'] != $user_info['id']) {
       return;
   }

   
// Añadimos botón, en este caso en la sección info
   
$areas['info']['areas']['MI_BOTON'] = [
       
'label' => 'Mi Botón',
       
'custom_url' => 'index.php?action=MI_ACCION',
       
'enabled' => true,
       
'permissions' => ['profile_view'],
   ];
}
#5
SMF 2.1.x Support / Re: Members registrations sett...
Last post by laltie - Today at 04:00:00 AM
Quote from: CRM 114 on Today at 03:01:07 AMAnd does sending emails generally work on your forum?
Yep, both test email and recover password.
But not the new members email.

Anyway I don't understand why the option is missing on the Registrations section (screenshot on 1st post)

Thank you anyway for trying to help
#6
SMF 2.1.x Support / Re: Members registrations sett...
Last post by CRM 114 - Today at 03:01:07 AM
Quote from: laltie on Today at 02:17:22 AMThis option?
Yes.

Quote from: laltie on Today at 02:17:22 AMIsn't works.  :'(
Hm, on my forum, it works.

Quote from: laltie on Today at 02:17:22 AMYes, I just fix the mail queue manually, like indicated on Github.
And does sending emails generally work on your forum?
#7
SMF 2.1.x Support / Re: Members registrations sett...
Last post by laltie - Today at 02:17:22 AM
Thank you for your reply.

Quote from: CRM 114 on Yesterday at 08:44:47 AMYou can activate it in your Profile Settings > Notification Preferences.

This option?



Isn't works.  :'(

Quote from: CRM 114 on Yesterday at 08:44:47 AMBut: There is a bug in 2.1.6 with sending mails/mail queue.

Look here:
https://www.simplemachines.org/community/index.php?topic=592099.0
https://www.simplemachines.org/community/index.php?topic=592094.0


Yes, I just fix the mail queue manually, like indicated on Github.

#8
Español (Spanish) / Re: Mail Queue no trabaja en a...
Last post by ZabiinoOo - Today at 01:37:37 AM
tuve que deshabilitar la cola de mails y lo deje que envie directo los emails
#9
Español (Spanish) / Re: colocar boton en perfil
Last post by ZabiinoOo - Today at 01:36:16 AM
alguno sabra?
#10
SMF 2.1.x Support / Re: Expanded view as default
Last post by Sir Osis of Liver - Yesterday at 06:05:52 PM
Quote from: Sir Osis of Liver on August 11, 2025, 09:25:47 PMHmm, that being the case, you can create a new category as collapsible (default) or not, but there doesn't seem to be any way to change that setting for an existing category.  You'd have to go into the database, in the categories table set can_collapse to 0 for all categories. This will remove the option and uncollapse all categories for all members.

This is incorrect, there is a collapsible setting for existing categories in ACP.  If disabled, categories are uncollapsed for all members. The info center can be forced uncollapsed with a couple of code edits -

BoardIndex.template.php


<h3 class="titlebg">
<!--span class="toggle_up floatright" id="upshrink_ic" title="', $txt['hide_infocenter'], '" style="display: none;"--></span>
<a href="#" id="upshrink_link">', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '</a>
</h3>
</div>
<!--div id="upshrink_stats"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '-->';


Just comment out the two lines as shown.  First one removes the upshrink button, second forces uncollapse.


Advertisement: