All posts by Bay Phillips

jQuery Validator – Accept Youtube Videos

I currently do freelance web development for a company named Kyjen. They create fun and innovative dog toys, so I suggest checking them out.

For what I’m working on now, I needed to accept a URL of a Youtube video that the user would submit. I looked into the jQuery Validate plugin and saw that they had the ability to validate if the user submission was a valid URL.

That’s great and all; however, it didn’t prevent people from submitting non-Youtube videos which would be a problem for in the future if we wanted to embed the user submitted videos.

The Validate plugin has the method of adding your own custom methods, and I was able to write my own to only accept valid Youtube URLs. Here’s what I came up with:
Continue reading jQuery Validator – Accept Youtube Videos

jQuery Help – Odd .click() declaring in IE

I’ve run into a very weird issue that I’ve neither seen before nor do I have any clue how to fix it. This happened when I redesigned/coded my rush page functionality on the ZAX Portal.

My weird issue is that when I redeclare the .click() functionality on an element on my page, the code executes the actual functions within the new declaration. Sounds weird right? Here’s the setup:

In my showRushee() function, I change our image’s source (it’s a + to – image), remove the previous onclick function, and add a new .click() functionality that calls hideRushee().

function showRushee(rusheeId,myClass){
$("#"+rusheeId+"_collapser").attr("src","'.ADDRESS.'images/expanded.png");
$("#"+rusheeId+"_collapser").attr("onclick","");
$("#"+rusheeId+"_collapser").unbind("click");
$("#"+rusheeId+"_collapser").click(function() {
hideRushee(rusheeId,myClass);
});

There’s some more that happens afterward, but it seems pretty straight forward right? Well, here’s a screenshot of what is actually happening using IE’s web developer debugger.

I ended up putting a breakpoint within the hideRushee() function in order to see if it was being called. Once it reached the breakpoint, I went one step up in the call stack which is what you see above.

I don’t really understand why this is happening. This code works in Firefox, Chrome and Safari just perfectly. This code also works after you click on the expander once again, so it only happens the first time it is clicked. Does anyone have any idea what’s going on?

Mafia 2 – A Sandbox Game Without the Sandbox

Over the past week or two I’ve been playing the recently released game Mafia 2.

Mafia 2 has you playing as Vito Scaletta, a young Italian-American who’s trying to make it in Empire City (New York City) through the 40’s and 50’s. I won’t go into too much detail about the story but you can use your imagine as to where it goes. Continue reading Mafia 2 – A Sandbox Game Without the Sandbox

Marketing on Social Networks

After launching the ZAX Portal, I’ve been doing my best to get the word out to the other 200 chapters throughout North America. The best way that I’ve found so far appears to be Facebook.

I’ve created a Facebook Page for ZAX Portal, and I’ve also added the plugin that Facebook provides and put it on the front page for everyone to see. In the past day, I’ve gotten 29 people to “Like” it, and it’s helping me connect with the brothers from other locations that I’ve never met personally. But aside from that, I’m kind of at a loss at what to do next.

Would it be worth it to start using Twitter as well? What else could I do with Facebook as that really will have the greatest amount of fraternity brothers on it?

ZAXPortal.com Launched

Back in the Fall of 2007, I joined the Lambda Chi Alpha fraternity here at RPI. I’ve enjoyed every bit of it, especially because its opened me up to a lot of opportunities that I may not have experienced normally. One of those was the creation of a Portal to make the tasks that any Greek organization has to do much easier.

In the Fall of 2008, for my Creativity and IT class, I created what I called the EHZ Portal. Since then, I’ve been working with my brothers in adding more features and functionality into it, to the point where I believe we get a lot of value out of it.

I’ve now expanded all of that, and brought it to the national level. I’ve just launched ZAXPortal.com, which I hope will become a staple tool used by chapters all across North America. Not only does it include the functionality of managing inter-chapter operations, but it also creates a private space for brothers across the nation to discuss, collaborate and share their ideas/experiences with each other. Something like this does not currently exist, therefore I’m very excited for what this could potentially turn into.

Please let me know what you guys think!

Bayphillips.com v2.0!

After mulling over various ideas and designs for a new website of mine, I’ve finally come up with what you see now. I’ve switched over from my custom Django website to the brand new WordPress 3.0 system.

I made the decision primarily because WordPress is able to do everything that I want with my own personal website right out of the box. I’m not dissing Django; in fact, I think it’s great and I will continue developing with it. I just wanted an easier system where I could make coding changes without having to restart my webserver.

Overall, I believe it came out well. I’ll be posting whatever I feel like it here. Topics could include web design, gaming, politics or whatever is crossing my mind at the time. Hopefully I’ll be able to create content that you all feel is worthy of discussing.