Monday, November 30, 2009

Admin Pages

Since my husband is Santa at Nordstrom's and at a photo studio, I took care of his family during the Thanksgiving week. That put me so far behind that I was a bit stressed out, but my admin pages are up and running.

Left the sample developer and his password, so access should be obvious from the admin.php form.

Spent a couple of hours listening to the classes I missed and getting the files up and running from my website, changing the format for the admin link so that it fit in better with my site. All-in-all about 3 hours to get this assignment done. Now I'm on to the next one up there. Boy, missing out so many classes is taking its toll on my nervous system, and work is necessary, but putting a crimp in my getting things done.

Off I go to the next assignment!!

Friday, November 20, 2009

Paging complete

Used the cooler arrows, so I had to make more space under my list items, but I finally have a look I like.

It only took about 2 hours to code and debug the garage sale so that 4 items show at a time. I like the larger arrows and being able to bounce to the first and last page. Now I want to add more items!! :)

Back to the book to debug my contact form.

Bad news on the job front -- I didn't get the job for which I interviewed. Oh, well...

home/classes/home

This makes no sense. I've been trying to get my website to get an email out to me at my home email address. I tried:


\<\?php echo INCLUDE_PATH\; ?\>/mafMail.html

and got a 404 Error saying that the system couldn't find:

/home/classes/home/classes/mdavis31/inc_codestress/mafMail.html

so, I took out the include_path and put the literal path in as is set in my config include file, and I got the same 404 error.

Next attempt will be to use the virtual path (since that worked for my logo image) and see if that works...

Son of a gun. It did work. So, I just have to move my mail pages into my regular include directory, and they work.

Off to work, and then to paging homework...

Wednesday, November 18, 2009

Interview for a real job

Well, I was hoping to be off the hook until the new year, but it looks like I was tagged by a friend for a job on the eastside. I will probably mess up the interview because I stink at interviews, but I have to give it a try.

Hopefully, I won't miss too much in class this week, but I am entering "interview mode" and won't be able to get to class.

Now the hard part is remembering what I used to do (i.e. Java/XML/C#) instead of PHP (which I now LOVE).

Sunday, November 15, 2009

Sick as a dog - and no pictures.

Well, I finally fixed my headers, and got pictures (that I stole from Amazon for this assignment) to display for each item. You'll never guess how I managed to drive myself crazy with pictures existing but not displaying...

I set the permissions on the upload file to 0700 instead of 0755. Doh! So my website wouldn't show the pictures from that directory on the website!!

Hard to say how much time I spent on this today, since I've been running to/from the bathroom all day. I'm heading to bed for good and all right now, and will look at the assignment tomorrow to see if there's anything else I need to clean up.

Nighty-night!

Friday, November 13, 2009

Oh, just do things in order

So, I took the list/view assignment doc, borrowing the printer at the office (since I currently don't have a working printer at home) and thought I understood how to just invent something for myself so that I'd have an inventory to use for my assignment. I can't use the database for my friend's site because it's way too big and not on a system I'm comfortable configuring, so I'm just going to make something up.

I figure I'll do a virtual garage sale, since my husband and I are marginally employed, and I'd love to get rid of some things, but my condo association doesn't allow garage sales. I suppose that's why we have Craig's List...

Anyway, I spent too much time trying to understand photoshop, and not enough on the meat of my assignment, so now it's late and I'm tired so I'm just going to run the muffin demo and see what happens. One good thing did come out of the waste of effort with photoshop, and that is that I figured out how I can generate the space I need for the lovely logo a friend made for me ONLY on the first page, and then leave the rest of the pages with the same CSS file, but without the image or the forced spaces. It'll be cleaner, and the images I'll need for the books and whatever will stand out more on the pages.

So, about 3 hours wasted with photoshop, and 1 hour creating the demo for muffins. I need to get the muffin images uploaded (well, downloaded and then uploaded) to see the full meal deal. I can take pictures myself for the garage sale (another benefit of choosing that for my list/view assignment) but I'll use the same naming conventions we're using in the demo. I like the idea - it's clean and simple.

Off to watch monk and get some herbal tea. Enough for today.

Thursday, November 5, 2009

It worked!

The good news is that I was able to create an if statement that selected the style for the first page and subsequent pages. The bad news is that I am terrible at photoshop, and I am going to have to mess with the alternate image I have to make it worth using.

Spent about 3 hours tonight messing with files, but left the new image out so the second page (the one for First Data) looks naked right now. I'll work on PS over the weekend and see if I can make something worth using.

Wednesday, November 4, 2009

Virtual Path

Okay. Finally found the problem with the virtual path. The file name didn't match - it had nothing to do with the path! Oy!

Still having trouble getting rid of the spaces and image on pages other than the home page. Part of that has to do with the forced spaces that I have in my header (which used to be in the index.php file) that give the space required for the extra-large picture. Now that the extra spaces are on every single page, I have to think about what to do with all that space. For now, I'm leaving the title and image on every page, but that won't do for the long term.

I tried modifying conn_inc.php to check to see if THIS PAGE started with 'index', in which case, I'd use the standard header_inc.php. Otherwise, I created a file header2_inc.php, but it didn't ever find a match, so I NEVER got the image. That won't do. Just got a hint as to why that is, so I'm going to see if I can get the different header version to work.

I also tried to set a variable $cssClassName and do a switch statement at the start of the header to determine whether THIS PAGE is 'index.php'. If it is, then the class name gets set to maffy, otherwise, it gets set to otherpages. That really blew things up.

Well, off to home to work on the various header choices.

Weird, but sort of done

I can't get the VIRTUAL_PATH variable to pick up my style sheet, so I used my old link to CSS in the index.php file for now. It's very confusing having the include directory outside of the web application folder, but it works for now.

I have to figure out what's supposed to be in the link for the the assignment, though. I didn't do anything with the MySQL part of the assignment (other than changing my credentials in the appropriate file.

More later. Time for class.

Spent about 2 hrs on getting everything merged and working.