Version Numbers

Posted on 2009/06/27 by Randall.
Categories: Uncategorized.

This is getting ugly. So many extensions in play. I’m just going to make some notes here about the various extensions and their version numbers.

Joomla! 1.0.15 Stable - the CMS

JUGA 1.01 - the user groups extension

JoomlaPack 1.2.3 - Joomla backup extension

Community Builder 1.2.1 Stable - user profile extension

AEC 0.12.6RC2o <– lolz - subscriptions/paypal

FireBoard 1.0.4 Stable - Forums

Emailing via PHP 5 and Gmail

Posted on by Randall.
Categories: Uncategorized.

This is something I’ve been trying to setup for a while now. I’ve finally got it and here is how I did it. It is totally fucked!

I take it back! It’s not totally fucked. There are some pretty easy to follow instructions over here.

So far so good. My test email script is sending emails properly. Next I will see if Joomla makes use of this correctly. Because the technique works at the PHP level, I believe it’s going to be no-fuss.

It works!

Update

Posted on 2009/06/25 by Randall.
Categories: Uncategorized.

Well I got a long list of things to do today. I’ve installed Fireboard on the server.

I should not even link that hideously ugly site, but if their extension helps me get my job done, I will have to thank them. Still, their website has far too much clutter to appeal to me.

The client has devised an extensive system of user groups and access control. I think it’s probably a little overblown for something that might not really get that much traffic.

The integration between users in Fireboard and users in Joomla is a little lacking from what I see. I’ve got to spend a little more time with it though. I think that Joomla’s built-in user management is inadequate as well. Maybe the AEC extension is going to be the way to setup these various user groups in the system.

If It’s Not Broken Do Not Fix It and Other Aphorisms

Posted on 2009/06/14 by Randall.
Categories: Uncategorized.

Working on the joomla stuff again and I have to tell you that when you setup your fields for Community Builder, you might as well just get all the settings right the first time. The user interface for updating properties of the fields is really bad.

It’s in bad need of some AJAX. Say you want to mark a field so that it appears in the registration form. You will need to go to the CB Field Management page and scroll down the list to find the field, then click on the red X to change it to a checkmark. Wait…wait…….wait for the page to reload. Hit your Page Down key to scoot back down the list and mark the next field. It’s kind of fun if you liked the old Track & Field arcade game. A lot of extra button pressing, you know?

So it’s best to just set these up right, from the start. Another aphorism: why can you never find the time to do it right the first time, but you can make time to go back and fix it? My uncle Charlie used to say that one. God rest his soul.

And one more recommendation. You really should setup at least one of your websites on sites.google.com and get yourself some free mail hosting. While testing out my work I’m having to fill out a lot of registration forms and for each I must provide a unique email address. Google makes it easy for you to create up to 50 unique email accounts for each domain you host on google sites. Even if it takes me 15 minutes to setup my 10 test accounts, it’s a helluva lot easier than setting up my own email server on my crappy residential internet connection. Plus it’s free.

Paypal Integration

Posted on 2009/06/08 by Randall.
Categories: Uncategorized.

This is getting tough. I’ve got a few pissant bugs left on the website, css kind of issues and some navigation page-flow issues. Then I have some scary problems. Emails. Paypal. Both of these are hard to test. You at least need to setup some testing accounts to even start working on either of these problems.

I’ve been looking around the web trying to get more info. There’s nothing spectacular that I’ve found yet. I didn’t search too hard though.

Right now I’m going to get working on the Paypal part of this problem. I will be satisfied when I see the following:

  • A fake Paypal account, the subscriber’s account, debited for the subscription fee
  • A fake Paypal account, the seller’s account, my client’s account, credited for the subscription fee. I would also be satisfied if this is the live seller’s account.
  • An invoice in the AEC system to show me payment received
  • An update on the logged-in user’s profile which shows the subscription extended for a year

That is the testing criteria right there. Here’s the trick. I have a Paypal developer account. In this account I’ve created two test accounts:  a business account and a personal account.

In the AEC Central panel, all I see right now to acknowledge the payment is the following snippet of error message in the event log: “Payment Notification Parser responds Invoice status: Unknown Error”. That’s something which might just go away when this goes live. The other thing that happens is if I click on View Invoices in the AEC Central there is a new list item for the transaction. I can click “clear and Apply Plan” and the user’s subscription is extended another year. This seems like a pretty satisfactory result for the last item on my list.

Looking around a little more I have found the paypal developer network community forums. This might be a pretty good place to go with my questions.

It doesn’t help that I’m so very clueless about the down-and-dirty details of paypal and ecommerce. There’s a term that I do not yet understand, and looking into it a little I’d say this is part of the answer. There’s something called an IPN or IPN Posts. This apparently transmits data regarding the transaction back to the server. I see there is (or was) an extension called mosIPN and this allowed the authors to fulfill orders when they were asleep.

I guess I don’t understand why anyone would have to go in and update the invoice in AEC Central. Shouldn’t the user be immediately able to login after making their Paypal payment? I don’t get it.

Oh, by the way, IPN stands for Instant Payment Notification

Well I went into the AEC panel and changed the subscriptions, I turned off the testing setting. Now the flow does not work at all. I’m going to try using the email address of my actual client to see if that works. I don’t think it will because so far I haven’t really seen the difference between buyer and seller accounts in this testing scenario.

I was thinking, I should just turn everything on in the e-commerce side of this and try it out. You’d think that if I use my client’s email address and my own real Paypal account, I’d be able to put ten cents into my client’s account. But that did not work. I get an error message which says “The link you have used to enter the PayPal system is invalid. Please review the link and try again.”

From the Subscriptions list in AEC, I click on a subscription plan and can edit its details. In here there are two links of interest. One points to index.php?option=com_acctexp&task=subscribe&usage=1 and is labeled Subscribe, the other index.php?option=com_acctexp&task=addtocart&usage=1 and is labeled Add to Cart.

Wtf, the link i used to enter is invalid.

Just Start Over!

Posted on 2009/06/04 by Randall.
Categories: Uncategorized.

I made the fatal mistake of choosing the defaults for my apache installation on windows. Never ever use the defaults, do not put it into c:\program files. So much of what’s written for LAMP is written on linux and assumes that paths do not contain spaces.

I hit this point with my installation of the AEC extension. I got a hard to decipher error message and with no other recourse simply blew away my database and m7 apache installation afterwards. So I’m starting with a clean slate.

First I install Apache. Then I run the PHP installer again to ensure the new httpd.conf file has any php-relevant entries added to it. Next I install Joomla. This is the easy part. Then I install Community Builder. This is when it starts to get fucked up. This is a twelve step process. It’s about as fun as a typical AA meeting.

Then I run my couple of import scripts. But before I can run the second one I need to setup Community Builder for the new tab and the new user fields.

And there’s even more, but enough talking time to do the typing.

Creating a Community Builder Login Module in Content

Posted on 2009/05/29 by Randall.
Categories: Uncategorized.

I’ve got CB installed on the test server. I’ve already imported a bunch of usernames/passwords which I want to test using the CB login module. I could not figure out a way to do this on Joomla 1.0, but then I just found this article. It worked on my machine, I’m going to try it out on the test server now.

That worked on the server. So you have to create a copy of the CB Login module, then create a new position for the module in the site templates. Finally, you create a new content item (I made a static content item) and put in {loadposition cblogin} as the content for the new item.

Finally I had to figure out a way to expose the profile editor. This was done by creating a new menu item and pointing it at the CB component. Literally, this is what you do. Create a new menu item and it’s type will be Component, then you’ll see an option to select the Community Builder component.

This brings up the topic of joomla architecture. Components versus modules versus mambots. Wtf are all of these. A couple of link which may clear this up:

Something is Wrong

Posted on 2009/05/28 by Randall.
Categories: Uncategorized.

I was having some problems with this blog on the backend. For some reason it was failing at the basic task of creating and editing new posts. I guess it’s working ok again now.

I’m trying to figure out how to create a plain content page in joomla which contains a simple login panel for community builder. I ran across this thing called mosmodule which allows you to insert “modules” into any joomla page. The problem is, I can’t make it work. It installs as a mambot and maybe that’s where I’m going wrong. But I installed it and then noticed it needed to be published. Maybe a restart will do it…

Nope.

I will keep messing with this and hope that I figure out what’s going wrong. Maybe there’s some other way to test out this new community builder stuff…

Importing Users in Joomla

Posted on 2009/05/14 by Randall.
Categories: Uncategorized.

This is what I am working on today. So far I am having difficulty just getting the documentation. I’m looking into something called com_user. This seems like a good starting place. I’ve found a couple of links in the official forums.

Freelancing Now

Posted on 2009/05/13 by Randall.
Categories: Uncategorized.

Today I am working on a freelance project. The task is to migrate users from one Joomla installation to another. I have never even touched Joomla but here goes.

So I’m working on just installing Joomla and all the required software. This includes Apache web server, MySQL database, PHP 5, and Joomla itself.

First off, I wouldn’t recommend using IIS for this even though we’re running it on Windows XP. It’s just asking for trouble. I don’t really recommend running this on Windows at all, but if you must then setup a separate Apache/PHP stack.

Install Apache first. Then install PHP. During the PHP installation you will see a screen which allows you to select extensions to install. Be sure to install the PHP MySQL extension. I did not and this caused my Joomla installation to fail.

The next step is to write a simple page which tests your PHP install. Once you’ve verified that it works, you can perform the Joomla installation. You should unzip all the files and put them in the htdocs folder of your Apache installation.

This is where it gets funky.

I wasn’t able to get the install.php file to run. I kept getting a message “Restricted access.” There is also a configuration.php file that you can hack to get the installation running. I entered in the MySQL username and password, then I pointed my browser at http://localhost/administrator/index.php and this got the installation wizard started.

If you need instructions for the wizard, please read some other blog.