News:

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

Main Menu

Dev Center

Started by Diego Andrés, December 18, 2012, 03:05:26 AM

Previous topic - Next topic

NanoSector

Thanks phantom, I'll take a second look at it later this week. :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Package updated, thanks again phantomm! :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

davidhs

I have installed this mod on my test forum. It is very useful when writing SQL queries of my mods for SMF 2.0.x. :)

Some of my mods support SMF 1.1.x and would be very useful to see SQL queries. Do you plan to adapt this mod to SMF 1.1.x?

NanoSector

No, I don't plan to support 1.1 with any mod that doesn't support it right now. :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Arantor

$db_show_debug is supported in 1.1.x. If you want to use this yourself, simply add:
$db_show_debug = true;

to your Settings.php file for 1.1.x.

Of course, I would strongly encourage deprecating 1.1.x mods simply because at some point - probably in the next year - 1.1.x will no longer be supported anyway.

davidhs

Quote from: ‽ on August 27, 2014, 11:52:24 AM
$db_show_debug is supported in 1.1.x. If you want to use this yourself, simply add:
$db_show_debug = true;

to your Settings.php file for 1.1.x.
Thanks ;)

roshaoar

Just wanted to say big thank you for this. Fantastically useful to be able to toggle show queries etc from inside smf, saving me hours of time.

GL700Wing

I have created a "Forum Admin" membergroup which allows all Forum Administration privileges except for "Administrate forum and database".

By default, when "Show the amount of error log entries in the Admin menu button" is enabled, the number of errors in the error log is shown for this membergroup even though they can't actually access the logs.

To fix this anomaly I made the following change in ./Sources/Subs-DevCenter.php

Find:

        // Should we grab the error log entries?
        global $modSettings, $context;

        // If we are not empty, or want to show the count at all times, show the count.
        if (!empty($modSettings['devcenter_menu_count_log_entries']))


Replace with:

        // Should we grab the error log entries?
        global $modSettings, $context, $user_info;

        // If we are not empty, or want to show the count at all times, show the count.
        if (($user_info['is_admin']) && !empty($modSettings['devcenter_menu_count_log_entries']))
Life doesn't have to be perfect to be wonderful ...

NanoSector

Thanks for the suggestion, I'll add it to my to do list for the next version.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Diego Andrés

0.5 - 20 March 2022
  • New Feature Initial release for SMF 2.1

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

So 2.0.19 is no longer supported? :'(
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

Diego Andrés

Nope, make mods for 2.1!
I can add it back to the page tho if anyone wants it.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Quote from: Diego Andrés on March 20, 2022, 09:24:34 PMNope, make mods for 2.1!
I can add it back to the page tho if anyone wants it.
I have it on one of my 2.0.19 forums so I was just wondering. I'll probably upgrade it to 2.1.1 before long anyways! ;)
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

mickjav

Thanks @Diego Andrés This is going to help no end, Esp with the SQL View, Already found one table I didn't know name of as will need that to play my games  ;D

Advertisement: