My Community
January 06, 2009, 02:07:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Forums updated to latest SMF 1.1.4 / PHP 5.2 / Mysql 5 / APC
Hope speed is better!
Do not put url in your message starting with http , www. is  enough
Cédric
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: SecurityImage 4.0.0 fixes  (Read 1885 times)
phlux0r
Newbie
*
Posts: 2


View Profile
« on: November 06, 2006, 04:49:25 AM »

Thanks for this useful component, Walter.

However, v4.0.0 has a few bugs and the instructions about putting the right code into the joomla files is not very accurate. Here's a few fixes for v4.0.0 I've done to make it work for me.

in file: inserImage.php, function:
Code:
function privateinsertSecurityImageInternal($packageName, $itswidth, $itsheight, $size, $desiredPluginName = null, $desiredPluginVersion = null) {
changed:
Code:
   $insertstr = "<script type='text/javascript' src='".$mosConfig_live_site."/components/com_securityimages/js/securityImages.js"."'/>".
to:
Code:
   $insertstr = "<script type='text/javascript' src='".$mosConfig_live_site."/components/com_securityimages/js/securityImages.js"."'></script>".

Also in pluginsA/core/1.1/adminpanel.php I had to add this code at line 80 to get the admin for to save the parameters to the config file:

Code:
foreach ($params_request as $val) {
$$val = mosGetParam($_REQUEST, $val, '');
}

Also, I realised that "_try" and "_refid" gets appended automatically to the package name that is passed in insertSecurityImage(packagename). So the instructions need to change for that. Also if you use the joomla.login.php patch for the login, you have to pass "security_joomlalogin" as the package name in the calls on your login form.

Apart from those little things (which can annoy people who don't know php) it's all good. Those are the problems that I've encountered when just starting to try out this component.
Logged
cedricwalter
Administrator
Hero Member
*****
Posts: 829



View Profile WWW
« Reply #1 on: November 06, 2006, 07:55:01 AM »

Thanks a lot for Your submissions. I really apreciate :-). I will make a securityimages 4.0.1 by the end of the day. I ve had no time because of opencomment, but I will improve securityimages as well

Bye
Cédric

Logged

Best regards,
Cédric
phlux0r
Newbie
*
Posts: 2


View Profile
« Reply #2 on: November 06, 2006, 08:51:41 AM »

No problem Cédric, glad to help  Cheesy.

I think to make this a successful component, you might want to take good care of the documentation because it's not really very intuitive what you can do with all the functions in insertText.php for example. Also there are a few options in insertImage.php for small and large images.

Sorry to add this as a feature request here, but since I'm at it already...

It would be great if the administrator part could be made a little nicer. At the moment there are lots of menu items in the Security Image sub menu. I think it would be cool if there was a sort of toolbar when you click on the top Security Image menu and get all the options as buttons or whatever. Sort of like a control panel.

Just an idea Smiley.

Otherwise, great component and I'm happily hacking away to make it the way I want it Smiley.
« Last Edit: November 06, 2006, 08:54:19 AM by phlux0r » Logged
heyjoe
Newbie
*
Posts: 4


View Profile
« Reply #3 on: November 08, 2006, 07:15:21 PM »

This fix makes you're image to show, but it doesn't let you submit the comment. Furthermore, the reload button doesn't work..... It's exactly the same prob as the firefox bug  in this bugtracker.... but I have this on IE6 .
I really hope on a new release, because after the upgrade to PhP5 at my provider security images 3.x aren't working for me anymore

But thanks Cédric, for all you're beautiful work !!!!!!!
Logged
mett
Newbie
*
Posts: 2


View Profile
« Reply #4 on: December 14, 2006, 01:01:51 PM »

I have the same problems; any news about that? I use latest version of SecurityImage, i just install it then drop it (and remove Joomla 1.0.11 patch) because of this problem  Sad

Thanks
Logged
heyjoe
Newbie
*
Posts: 4


View Profile
« Reply #5 on: December 14, 2006, 02:09:42 PM »

It still doesn't function with securityimages 4.01 and PhP5, images reload, but it is impossible to post any comment or gustbook entry....
Logged
cedricwalter
Administrator
Hero Member
*****
Posts: 829



View Profile WWW
« Reply #6 on: December 14, 2006, 10:04:21 PM »

for com_akoBook use nothing else than 3.0.8

4.0.X has an api change, 4.1.0 (the latest) is not compatible with akobook or akocomment.

I will do thee change for akobook and akocooment this week end...(with 4.1.0)

Logged

Best regards,
Cédric
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!