Archive for the 'PHP' Category
Magento+Joomla! (status update II)
Good morning everyone,
I’m releasing the first public version of the Magento/Joomla! integration using JFusion 1.0.5e. This plugin has been designed for work with Joomla! 1.5.2 and Magento 1.0. I hope you can help me testing and improving it.
I’ve set up a testing matrix with some test cases, you can access it through Google Docs and help me fill the “gray” boxes ;P.
To test, use the following instructions:
- Download JFusion 1.0.5e, install, configure and publish everything that should be published. (if you need help, read the docs at http://www.jfusion.org )
- Download my new plugin
- Remove the default Magento plugin (under “Integration Config”: select “magento” and remove)
- Click on “upload” under the “Integration Config” screen to upload the new version of magento.tar.gz, click on “Install” and smile.
- Go back to “Integration config”, edit the new “magento” plugin according to your STORE configuration.
- Test and give some feedback: bigodines #at@ joomla.com.br
please help me fill the test matrix!!
Cheers
-bigodines
Magento+Joomla! (status update)
This morning I managed to authenticate against magento’s database (using salted and non-salted passwords). So, the testable version of the plugin is ready. I have found a small bug during the re-login (after logout) which I still didn’t find a generic workaround.
People whiling to test, please contact me. (I need TECHNICAL testers that can setup everything and track [eventual] errors without assistance). Just drop a comment or mail me: bigodines #at# joomla.com.br
-bigo
No commentsMagento 1.0 is out!
Hello guys!
I have some news for all those wanting Magento 1.0 and Joomla! 1.5.2 integration. I started working on it today.
I manage to hijack the magento session, the only missing part is to automatically identify the authentication method and generate the hash to authenticate against magento’s database (if you missed the new feature: magento now allows SHA1 and MD5). Then I’ll pack a new version of Magento plugin for JFusion so you can use it with our favorite Joomla! extension
Now, the bad news (which aren’t THAT bad). We are rewriting most of JFusion’s framework, and old plugins should stop working. That said, I’m not sure if its worth to create a Magento 1.0 plugin for the current version of JFusion (1.0.5
Oh, and I will need people to test in different environments. I hope I can count on you to help me (I will provide a Test-Matrix so we avoid redundant testing :P).
Gotta take some rest now. Stay tunned (I recommend you to subscribe to the RSS as I haven’t been able to update this blog very often lately…).
-bigo
No commentsJoomla! and the GSoC’08
Yay! Have you seen the announcement at Joomla.org about Google Summer of Code? Well, as I cannot participate as a student (not a student anymore
) I think I will help as a mentor. If you have a nice idea for a killer feature in Joomla!, want to earn some money (US$ 4.500,00 to be precise) and would like to be involved in a great open source project, this is your chance!
Tell us about your project and let’s have some fun ![]()
JFusion 1.0.5b
I’m very happy with opensource lately. I’m enjoying the feedback received with BigoCaptcha and I discovered that hacking JFusion is fun!
Marius has just released a new version of JFusion which adds two new [and exciting] features: user synchronization between external apps and joomla and a plugin installation (by bigo :P) whichi will allow people to install new plugins without need to hack the code. I hope this helps JFusion to gain even more popularity among devs.
I’m glad Marius decided to add my Magento plugin in the default package (although I know it probably won’t work with the latest version of magento).
Now, while I wait for my UK visa, I’ll work on a new Magento plugin for JFusion and help Marius and the other devs hunting some bugs before JFusion goes stable ![]()
yui + jquery + zend framework = bigodines.com :P
hello guys!
this morning I’ve uploaded the first preview version of my personal site. This is something I did just to play with ZendFramework, YUI and jQuery togheter (it’s slow and buggy, but I like it and I hope you like my idea as well).
Check http://www.bigodines.com/zf/ (I haven’t tested with IE yet…). And try to navigate inside the directories and explore some commands. There are only two files availble, both are inside “projects/zf/” and are just a PoC to show it works.
I’m working on a better admin area now and then I’ll add content e more commands (and webservice access).
comments are always welcome!
-bigo
No commentsMagento and Joomla! - HowTo!
Here's a short text explaining how to get Magento and Joomla! user integration using a plugin I wrote for JFusion.
UPDATE 2: There is a brand new version of this plugin (much simplier and should work with magento 1.0), please fallow the development process here and help me testing!! FEEDBACK IS APPRECIATED!
UPDATE: Magento plugin is, now, packed with JFusion versions higher than 1.0.5. You just need to install JFusion and enable Magento plugin. Cheers
Before we start:
This is not a user synchronization method. It validades all users (except backend users) against your Magento database. That's how JFusion 1.0.4 works so if you want user synchronization between Joomla! and Magento you'll have to wait for next releases of JFusion (we are working on this feature!).
What you will need:
- Joomla! 1.5.0+ installed and configured (1.5.1 strongly recommended)
- JFusion 1.0.4 installed and configured! (jfusion has plenty of documentation on how to get it working. please use it!)
- Magento eCommerce 0.7.1548 installed and configured (I can't say if this works with the latest version!! I promise I will release an up to date plugin as soon as Magento 1.0 stable goes public)
- My Magento Plugin for JFusion! (yay!)
- cURL extension for PHP (check your phpinfo(); if its not enabled, I'm almost sure there is a php5-curl package for your favorite linux distro, or a commented dll in your php.ini)
Once Joomla!, JFusion and Magento are running smoothly, extract my plugin (magento.tar.gz) inside JFusion's admin folder (yousite/administrator/components/com_jfusion/). This will create a yousite/administrator/components/com_jfusion/magento/ folder with two files in it: admin_forum.php and jfusion.xml
Missing information (thanks unleash.it):
add the new files to the com_jfusion.xml:
HTML:
<filename>magento/admin_forum.php</filename> <filename>magento/jfusion.xml</filename>Then manually add a new row for Magento in the jfusion table of the Joomla DB. You can do this simply copying one of the existing (forum) rows and change the name to "magento".
Now login in your joomla backend (using the "admin" username), go to components -> jfusion and configure your "magento" plugin.. that's it.
you should be able to login in joomla with your Magento users (the username is a e-mail address) and link to your magento site without need to restart the session
Warning:
This is a pre-alpha public release (magento plugin hasn't been released with jfusion yet). Use for testing purposes only and let me know if it worked as expected
Submit your comments here, here or by mail: bigodines ~@ ~ joomla.com.br
15 commentsMagento and Joomla! integration - I need your help
Hello,
I forgot to blog about this here (posted only in my portuguese blog :/) but I've been working in a Magento+Joomla! integration using JFusion. I'm coding this in my free time, as a hobby. This morning I've managed to get login working and I would love if some of you could help me testing before releasing anything to public.
As this a pre-alpha version, there won't be a "one-click install" or anything. So, I expect that experience programmers could help me test and improve this plugin. Credits will be given, of course.
If you are interested in help, drop me a line: bigodines ~at~ joomla.com.br
No commentsHow to add CAPTCHA to Joomla!’s com_contact component
The Dev team has just released Joomla! 1.5 stable. This is great news (after two and a half years of development we finally can use the new baby in production environment) but I've seen that an old problem hasn't been solved yet: people still get a lot of spam due to a weak (or nonexistent) mechanism to check if the e-mails sent through com_contact are from real people or spambots.
The beauty of open source is that anyone can change and improve a piece of software. So, here's my $0.02: changing com_contact to make it can work with your favorite Captcha Plugin! (all files are downloadable at the end of this article)
Read more
Improve Magento’s security with salted passwords
Long time without new posts in my english blog
sorry about that guys. I've been busy with the portuguese blog (wich gives me more feedback than this one...)
Last week I discovered Magento. This is the best opensource eCommerce I've seen so far. Unfortunately I haven't seen to much activity by the core (three days and no commits in the SVN repository and none tested my sugestions to the code..). I guess it must be the holidays.
Anyways, the beuty of opensource is collaboration. So I started doing my part and implemented salted password in Magento.
Why?
We all know that Rainbow Tables are getting bigger and bigger everyday and while studying magento's code I realised that they were storing password using a simple md5() function. That can be quite dangerous specially for a ecommerce software :).
In a couple hours I came up with this simple solution to implement salted passwords without messing Magento's Core package (although you will need to change the database, so PLEASE!! I'M BEGGING YOU TO CREATE A BACKUP BEFORE TRYING THIS!)
Here is the README file:
Salted Passwords in Magento
----------------------------This is a hack. There are no guarantees that your system will remain working smoothly
![]()
Install
--------1 - Make sure you change the size of your password field. You may run something like this in your MySQL:
ALTER TABLE `admin_user` CHANGE `password` `password` VARCHAR( 60 )
2 - Sign in in Magento admin (this is important because you'll need to create a new user to start using salted passwords)
3 - Untar/Unzip this file in your root magento folder (all files will be placed under /community/ directory so u won't loose anyting if it doesn't work)
4 - Create a new magento user and give him administrator privileges (your current user won't work anymore unless you change its password)
FAQ
----Q - I cannot login anymore!
A - I TOLD YOU TO LOGIN BEFORE UNZIPPING, you cannot login because the current users don't use salted passwords and the new authentication method does. Here's a workaround for this problem:- Go to your phpMyAdmin (or any other software you use to manage your MySQL database)
- Browse the admin_user table
- Change your user's password to: 5cf88201ea7be9037b934ec850c01a89:pQEuqfwbpJ
- Your new password is "changeMe" (without quotes)
- Login and change your password to the old one.
Now that you've read the README file you are ready to download and try salted passwords for Magento 0.7.1800
Download it here and let me know if it worked for you as well as it worked for me
