1
chadm
Show debug information for webmasters only?
  • 2007/11/2 20:11

  • chadm

  • Just popping in

  • Posts: 50

  • Since: 2006/6/29


Is it possible to show the debug information for webmasters only?

OR

Is there a bit of PHP code I can call to get the debug information even if "Debug" is turned off in the main preferences?

Our site is in production and showing debug information for everyone visiting the site is not an option.

Thanks for any suggestions...

Chad

2
chadm
Re: Show debug information for webmasters only?
  • 2007/12/17 19:09

  • chadm

  • Just popping in

  • Posts: 50

  • Since: 2006/6/29


Does anybody have any thoughts on this? Anything?

Thanks

3
hackbrill
Re: Show debug information for webmasters only?
  • 2007/12/17 22:37

  • hackbrill

  • Friend of XOOPS

  • Posts: 283

  • Since: 2005/7/14


I know it's not much help, but I always turn my site off to everyone but the webmaster when debugging.

4
christian
Re: Show debug information for webmasters only?
  • 2007/12/18 0:18

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

Use the last XOOPS version.

Changelog for XOOPS 2.0.17

Quote:

Fixed bug #1626243 : when the site was closed and the Smarty Debug activated, the debug popup was displayed to anonymous users (rowd/malanciault)

5
nachenko
Re: Show debug information for webmasters only?
  • 2007/12/18 0:24

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


for Smarty, you can call the debug console into the template:

<{debug}>

so you just should put this at the end of the theme template:

<{if $xoops_isadmin}>
<{debug}>
<{/if}>

For this to show only to admins.

6
chadm
Re: Show debug information for webmasters only?
  • 2007/12/19 14:46

  • chadm

  • Just popping in

  • Posts: 50

  • Since: 2006/6/29


nachenko : That's exactly what I was looking for! THANKS!

hackbrill : Unfortunately, I can't just turn off our web site, even at odd hours in the night. The researchers who use it are, well, always online. It's amazing.

Christian : We will be upgrading to XOOPS 2.0.17 as soon as we can. I've already scheduled downtime and the researchers (our users) have already started complaining!

Thanks all for the suggestions.

Chad

Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits