PEAK XOOPS - D3Pipes - Public view of error messages in englishin japanese

D3Pipes - Public view of error messages

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/21 14:28
Nobelium  ¸àĹ   Posts: 47
GIJOE,

Bug or feature? Hummmm....

Is there anyway to turn off the public display of the error messages?

I have a big pink box on my front page saying:

XML type is not matched. confirm it by pipe admin
(1)

It's a temporary error I believe, that will correct itself, but anyway, even if it wasn't, I would prefer not to have internal error messages broadcast to the entire world.

Maybe have it display only to admins or something?

Anyway, just letting you know the issues...great work on some of the best modules out there!

n
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/22 0:05
Nobelium  ¸àĹ   Posts: 47
FYI, for those that don't want the error messages displayed...remove this section from your block template:

<{if $block.errors}>
<{foreach from=$block.errors item="error"}>
<div class="errorMsg"><{$error|escape|nl2br}></div>
<{/foreach}>
<{/if}>

I'm gonna try to tweak it to make it viewable only to admins if I get a chance.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2007/8/22 6:14
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Nobelium.

Your suggestion sounds quite reasonable.
I've just fixed it.

	<{if $block.errors && $xoops_isadmin}>
		<{foreach from=$block.errors item="error"}>
			<div class="errorMsg"><{$error|escape|nl2br}></div>
		<{/foreach}>
	<{/if}>
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!