D3Pipes - Public view of error messages
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
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
msg# 1.1
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
msg# 1.1.1
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