xoops forums

chadm

Just popping in
Posted on: 2007/11/2 20:11
chadm
chadm (Show more)
Just popping in
Posts: 50
Since: 2006/6/29
#1

Show debug information for webmasters only?

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

chadm

Just popping in
Posted on: 2007/12/17 19:09
chadm
chadm (Show more)
Just popping in
Posts: 50
Since: 2006/6/29
#2

Re: Show debug information for webmasters only?

Does anybody have any thoughts on this? Anything?

Thanks

hackbrill

Friend of XOOPS
Posted on: 2007/12/17 22:37
hackbrill
hackbrill (Show more)
Friend of XOOPS
Posts: 283
Since: 2005/7/14
#3

Re: Show debug information for webmasters only?

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

christian

Just can't stay away
Posted on: 2007/12/18 0:18
christian
christian (Show more)
Just can't stay away
Posts: 401
Since: 2002/2/24
#4

Re: Show debug information for webmasters only?

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)

nachenko

Quite a regular
Posted on: 2007/12/18 0:24
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#5

Re: Show debug information for webmasters only?

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.

chadm

Just popping in
Posted on: 2007/12/19 14:46
chadm
chadm (Show more)
Just popping in
Posts: 50
Since: 2006/6/29
#6

Re: Show debug information for webmasters only?

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