Archive for the ‘Web Development’ Category

Facebook Mimic Layout

Sunday, August 24th, 2008

I’ve found a really cool layout for myspace that will basically change your profile to look like facebook. It takes a little coding work and there are some minor problems, but they have been fixed (by me). So make sure you look at the comments also as your adding it.

This is for the comments on the site:

I’ve fixed the problem of the links. Basicly you don’t get the FRIEND-ID in your URL (ex. myspace.com/NOT_YOUR_FRIEND-ID). Instead what I did was find the FRIEND-ID by (take off the facebook mimic layout by deleting the like to meet section first) looking at the the number for a link location like “View Pics”, which you will see is something like:

http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&friendID=SOME_NUMBER

SOME_NUMBER is your unique number that you use for FRIEND-ID. Then it works :D

Also, @Kal. I think I know what you mean by double spaces for the text on the right. I was trying to make a contact me and a networks, brithday, etc. thing mimicking facebook where it is single spaced.

What you do is add this code in the about me section:

div.left {
width:120px;
clear:both;
}

and then for text that you want single spaced instead you use the <div> tag instead of the <p> tag like this:

<div class="left">Political Views:</div>

<div class=”right”>

Liberal

</div>

Begining Object Oreinted Programming in PHP

Friday, March 28th, 2008

Okay, so as a self proclaimed PHP programmer, I’ve been rewriting the same code over and over again. I’ve tried to stay away from Object Oriented Programming because I just didn’t under stand it. So this morning I set out to find a tutorial that was unlike the same dog and cat descriptions I read over and over again. And I found one that actually made some sense. Begining Object Oriented Programming in PHP It states of the bat, on the first page, Object-Oriented Programming (OOP) tutorials are generally bogged down with programming theory and large metaphysical words such as encapsulation, inheritance and abstraction. They attempt to explain things by comparing code samples to microwaves or automobiles, which only serves to confuse the reader more.”