Saltar navegación

[Resuelto] Conditional Content based on specific time-slots?

This support ticket is created hace 3 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 3 años, 10 meses.

Asistido por: Shane.

Autor
Mensajes
#1939415

Hello Toolset Team,
I would like to know if the following is possible with Toolset:

In a personalised dashboard, the logged-in user should be greeted as follows:

From 6:00 am to 11:59 pm:
"Good morning, Mr XXX"

From 12:00 am to 5:59 pm:
"Good day Mr XXX"

From 6:00 pm to 11:59 pm:
"Good evening, Mr XXX"

I would be very reluctant to use another plugin (e.g. IF-SO; enlace oculto) as I want to keep my WordPress installation as lean as possible. Therefore, I have the hope that I can also implement this directly with Toolset.

Many thanks in advance for your help.

Many greetings from Germany

Manuel

#1939943

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Manuel,

Thank you for getting in touch. Now you won't be able to implement this directly with Toolset.

The reason for this is that we don't have any function that can tell what time of the day it is. Essentially if you don't want to use a plugin for this, the only other option is to implement this with the use of custom coding which would be out of the scope of our support forum.

The idea of the custom code is that you will need to get the current time of the user and not the time of the server that the website is on and then display the messages according to this.

Also the comparison logic would need to be done in the custom code itself to display the appropriate message. Now if this is something that you truly want to achieve without using another plugin then I would suggest getting in touch with a contractor as custom coding will definitely be required for this.

You can find a list of available contractors on the list below.
https://toolset.com/contractors/

Please let me know if this helps.
Thanks,
Shane