Error Log Popup

Started by SleePy, April 24, 2022, 02:13:11 PM

Previous topic - Next topic

SleePy

Link to the mod

This customization adds a popup window for the error log.  This was developed to easily check the error log while doing other development work.

This avoids heavily trying to modify too much aspects of the code and requires javascript and JQuery to be functional.

There is a feature in which you can add this early in in your PHP stack to auto include it in SMF without needing the hooks to be installed.  I won't provide any configuration examples for this, but one way to do this is to configure the php.ini setting auto_prepend_file for your forum directory.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

-Rock Lee-

This is good for me because I'm with something I can't get out and it gives a thousand errors everywhere, we'll see how it behaves. Thanks for sharing!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Darknico

Very helpful :)
I can suggest an icon in mobile view, like PM and alert? :)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Shades.

Quote from: Darknico on October 03, 2022, 10:31:16 AMVery helpful :)
I can suggest an icon in mobile view, like PM and alert? :)

Yes is there a way to add an icon? I really like this mod!

Thanks,
Shades 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

SleePy

I've added it to the tracking: https://github.com/jdarwood007/smfmod_errorpopup/issues/1
But this wasn't designed for mobile, but glad it works. I like using it while developing code because I can quickly see the logs if my poor code is generating any errors I'm not seeing.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

SleePy

Added something to do this.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Darknico

Thanks @SleePy
The icon show in mobile view, but hide the errors count (the number)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


SleePy

Hmm, well its copying the logic for the other views.  I will have to look at it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Shades.

Quote from: Darknico on March 30, 2023, 04:25:37 AMThanks @SleePy
The icon show in mobile view, but hide the errors count (the number)
Same for me.

Also, can you add the icon for desktop view too please? Personally I don't even use mobile, especially when I'm working on my sites. ;)

Thanks again,
Shades 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

SleePy

I was able to add the counter for mobile.  But the default theme isn't using icons on anything other than the user avatar.  So it makes more sense to keep the flow of the theme.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: