twincascos
03-11-2007, 10:41 PM
I wanted to disable the security images label and info text for logged in users since there was no image for them to identify, So...
I put together the following hack which checks if you are logged in then doesn't display any of the security image stuff.
You'll need to open and edit the file ja_submit.html.php
find the following section:
<?php
if ($H_securityimage){
global $H_securityimage;
# security image by www.waltercedric.com
include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php');
echo "<tr><td col valign=\"top\"><label for=\"security_try\">"._H_IMGVERIFY."*</label>:</td>";
echo "<td>".insertSecurityImage('security_refid')."</td></tr>";
echo "<tr><td></td><td colspan='2'>".getSecurityImageField('security_try')." <span class=\"small\">" . _H_IMGVERIFY_DES . "</span></td></tr>";
# end security image by www.waltercedric.com
}?>
And replace with this:
<?php
if ( $my->id ) {
}
else {
if ($H_securityimage){
global $H_securityimage;
# security image by www.waltercedric.com
include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php');
echo "<tr><td col valign=\"top\"><label for=\"security_try\">"._H_IMGVERIFY."*</label>:</td>";
echo "<td>".insertSecurityImage('security_refid')."</td></tr>";
echo "<tr><td></td><td colspan='2'>".getSecurityImageField('security_try')." <span class=\"small\">" . _H_IMGVERIFY_DES . "</span></td></tr>";
# end security image by www.waltercedric.com
}
}?>
Simple, but it works for me.
I put together the following hack which checks if you are logged in then doesn't display any of the security image stuff.
You'll need to open and edit the file ja_submit.html.php
find the following section:
<?php
if ($H_securityimage){
global $H_securityimage;
# security image by www.waltercedric.com
include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php');
echo "<tr><td col valign=\"top\"><label for=\"security_try\">"._H_IMGVERIFY."*</label>:</td>";
echo "<td>".insertSecurityImage('security_refid')."</td></tr>";
echo "<tr><td></td><td colspan='2'>".getSecurityImageField('security_try')." <span class=\"small\">" . _H_IMGVERIFY_DES . "</span></td></tr>";
# end security image by www.waltercedric.com
}?>
And replace with this:
<?php
if ( $my->id ) {
}
else {
if ($H_securityimage){
global $H_securityimage;
# security image by www.waltercedric.com
include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php');
echo "<tr><td col valign=\"top\"><label for=\"security_try\">"._H_IMGVERIFY."*</label>:</td>";
echo "<td>".insertSecurityImage('security_refid')."</td></tr>";
echo "<tr><td></td><td colspan='2'>".getSecurityImageField('security_try')." <span class=\"small\">" . _H_IMGVERIFY_DES . "</span></td></tr>";
# end security image by www.waltercedric.com
}
}?>
Simple, but it works for me.