Security Images

17 years 3 months ago #29466 by beat
Replied by beat on topic Re:Security Images
mihat wrote:

I dont know why patch in this topic has been removed. I compared files befoure upgrade with files after upgrade and added code that initialize security images. Everything works fine. Users can normaly register and login.

I urge the CB team to post back security images patch that has already been posted in this topic cca in september when I was developing first relase of my site.


Don't see what would have been removed by whom ! :angry:

I could download without problems the files attached to posts (you might need to be logged-in), but didn't try clicking external links.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 3 months ago #29467 by mihat
Replied by mihat on topic Re:Security Images
Sorry, didnt checked all posts again. I have in my memory a post that was edited and link to a file was removed.

It is only in my memory, maybe i dont remember it correctly :)


I guess I can return something back to the comunity.
I hope it will be helpful!

Install security images as component. Install CB. Then edit comprofiler.html.php

find

echo _REGISTER_PASS; ?>" size="40" value="" /><?php
echo getFieldIcons(1,true,false, sprintf( _VALID_AZ09, _UE_PASS, 6 ), _REGISTER_PASS); ?></td>
</tr>
<tr>
<td class="titleCell"><?php echo _REGISTER_VPASS; ?></td>
<td class="fieldCell"><input class="inputbox" type="password" name="verifyPass" autocomplete="off" mosReq="0" mosLabel="<?php
echo _REGISTER_VPASS; ?>" size="40" value="" /><?php
echo getFieldIcons(1,true,false); ?></td>
</tr>


in my case it is on line 1236

after add

<?php
//security image by www.waltercedric.com
global $mosConfig_absolute_path;
require($mosConfig_absolute_path."/administrator/components/com_securityimages/config.securityimages.php"«»);
include($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php');

echo "<tr><td class=\"titleCell\">".getSecurityImageTextHeader()."</td>";
echo "<td class=\"fieldCell\">".insertSecurityImage("security_refid"«»)."<br/>".getSecurityImageField("security_try"«»)."<br>".getSecurityImageTextHelp()."</td></tr>";
//end security image by www.waltercedric.com
?>



open comprofiler.php
find

function saveRegistration( $option ) {
global $database, $my, $acl, $ueConfig, $mainframe, $_POST;
global $mosConfig_emailpass, $mosConfig_allowUserRegistration, $_PLUGINS;

// simple spoof check security
cbSpoofCheck();
cbRegAntiSpamCheck();

if ( ( ( $mosConfig_allowUserRegistration == '0' )
&& ( ( ! isset($ueConfig) ) || $ueConfig != '1' ) )
|| $my->id ) {
mosNotAuth();
return;
}

in my case line 931

after add

//securityimages by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SaveRegistration.php')) {
include_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SaveRegistration.php');
}
//end security images by ww.waltercedric.com



I hope it will work for you guys (and girls if any ;) )

Regards
Miha

Post edited by: mihat, at: 2007/01/20 22:51

Post edited by: mihat, at: 2007/01/20 22:51

Please Log in to join the conversation.

17 years 3 months ago #29690 by paulypaul
Replied by paulypaul on topic Re:Security Images
Hi mihat. I added the code as you advised but get the following error:

Parse error: syntax error, unexpected T_STRING in /home/sites/hounslowtw3.net/public_html/components/com_comprofiler/comprofiler.html.php on line 1240


line 1240 is:

[code:1]require($mosConfig_absolute_path."/administrator/components/com_securityimages/ config.securityimages.php"«»);[/code:1]

my limited brain can only spot the white space after "com_securityimages/"

Thanks!

Please Log in to join the conversation.

17 years 2 months ago #30113 by john1000
Replied by john1000 on topic Re:Security Images
Is this it?
no good release ?
after so many requests?

i tried the latest verson of security images but in firefox it shows an error...because of that the security image doesnt refresh if you want to.,..

and with the above sample .....for what version of security images is it?

Im using cb 1.0.2 and joomla 1.0.12

My soon to be released website.
www.joomla-reviews.com

Please Log in to join the conversation.

17 years 2 months ago #30166 by john1000
Replied by john1000 on topic Re:Security Images
anyone ?

My soon to be released website.
www.joomla-reviews.com

Please Log in to join the conversation.

17 years 2 months ago #30168 by ei8ht
Replied by ei8ht on topic Re:Security Images
I've the same problem here.

I'm using Joomla 1.0.12, CB 1.0.2 and SecurityImages 4.1.2

greez

ei8ht

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.693 seconds

Facebook Twitter LinkedIn