blog@fourdown.org


Major Site Change for Facebook Application



Last night I made a major change to the way the site works.

Previously, the website and the Facebook application both completely ran off the same codebase. This was really cool to do, but there were plenty of nasty tricks involved - since the Facebook application runs within a frame, I was always checking to see if the site was being run from within a frame, and if so, it would attempt to kick you into "Facebook app mode."

It was interesting getting it to work, but if any site ever attempted to show something from my site inside of an iFrame, it would probably lead to all sorts of craziness.

I've now moved the Facebook app to run off its own core code. It's mostly a direct copy of the website, and all the core modules will actually run off the exact code - I'm still going to do CFIFs in all my pages to check if you're in the Facebook app, even though on the main website, now that is never possible. It'll help me make changes in both places easily and with no fuss.

If anyone notices any problems, please let me know!





What our players have said about this blog..
USER COMMENT
You must be logged in to leave a comment.
# cletus42o

Site Owner
cletus42o
Administrator of
WrestleHut 2000

One of the "benefits" of the way I rewrote things is that now if you wanna see what the Facebook app looks like, you can actually use it without being in Facebook. (though the Facebook-specific things, like showing people's real names and giving you a link to their FB profile, won't work)

You can play around using:

http://www.fourdown.org/facebook/fw/app/index.cfm

Posted on July 10, 2009 at 4:42 PM
Season 24 Overall Rank: #748 (Rank in League: #8)
# cletus42o

Site Owner
cletus42o
Administrator of
WrestleHut 2000

Though you really should already be logged into the site.. otherwise you might not see much. You can technically find a login page in some places in the app, but it assumes you're already logged in since you have to be coming from Facebook.

Posted on July 10, 2009 at 4:44 PM
Season 24 Overall Rank: #748 (Rank in League: #8)
# wwefan18
wwefan18
Member of
WrestleHut 2000

What coding did you use to create the Facebook app. Was it in Java or JavaScript? I really could use your help with my Java course. HAHA. I got project two now and we have to use Try/Catch Blocks, For, Do While, and While Loops, If, Else If, and Else Statements, Methods, JOptionPane or Scanner, and the Random Class. LOL. It's getting crazy and we have to create a Random Number Game for this project. He said it'll be over 300 lines of Java code. But anyways, let me know what coding you used to create your Facebook app? I'm just curious. LOL. Thanks Spencer and I hope to talk to you on AIM soon.

Posted on July 10, 2009 at 9:41 PM
# cletus42o

Site Owner
cletus42o
Administrator of
WrestleHut 2000

The site and the Facebook application are both built completely with ColdFusion. The front-end (generated by ColdFusion) is a healthy mix of HTML, CSS, and JavaScript. I heavily use jQuery when it comes to the JavaScript used. (the ColdFusion framework I built for the site includes places for easy jQuery implementation throughout my code, if you view the source of the site, you'll see ALL the jQuery for every page in the script tag at the bottom, completely minimized)

Posted on July 10, 2009 at 9:56 PM
Season 24 Overall Rank: #748 (Rank in League: #8)
# wwefan18
wwefan18
Member of
WrestleHut 2000

Oh wow. I look at the source code and that looks extremely familiar from my CIS 146 class. HAHA. But I heard that ColdFusion is slowly dying from one of my two CIS 156 professors, Professor Dushok. He said it isn't dead yet, but is getting there slowly. But the programming languages I have either some knowledge, will be getting knowledge in, or have expertise in are:

1. HTML
2. XHTML
3. DHTML
4. SHTML
5. XML
6. CSS
7. Java
8. JavaScript
9. Visual Basic
10. Visual Basic .NET
11. ASP.NET
12. C++
13. C
14. C#
15. SQL
16. RPG
17. AS/400 (Not a language, but still know how to use it)

I can use products such as Dreamweaver, Photoshop, Illustrator, Flash, Netbeans, Adobe Acrobat 9 Professional, Adobe LiveCycle 9 Professional, MySQL, Bridge, Visual Studio 2008, and Visual Web Developer 2008. Is that impressive, Spencer? Will some of the languages land me a good job after college?

Posted on July 10, 2009 at 10:04 PM
# cletus42o

Site Owner
cletus42o
Administrator of
WrestleHut 2000

The code you see when you view source is just plain old HTML and JavaScript. ColdFusion is run on the server, and generates the HTML that is then sent to your browser.

It's been so long since I've done any programming in DOS, but I'd assume in C++ you still use "cout >>" to print to the screen or "PRINT " in BASIC.. basically with ColdFusion I'm doing

PRINT "<html><head></head><body></body></html>"

where instead of printing to a screen, it's generating the HTML that goes to the browser, with all the actual HTML/JavaScript for the site in place of that blank HTML page.

People have been saying ColdFusion was dying since I started with it in back in 1997.. it's owned by Adobe now, ColdFusion 9 is coming out soon.. if it's dying, it's not going to be dead for over 10 years. (who wants to pay to have their site completely recoded in another language if it works great in ColdFusion??)

Posted on July 10, 2009 at 10:24 PM
Season 24 Overall Rank: #748 (Rank in League: #8)
# wwefan18
wwefan18
Member of
WrestleHut 2000

Oh okay, I see. I won't tell my professor about that because I don't wanna get in an arguement about ColdFusion dying and end up getting failing grades for being a bad student. HAHA. But yeah, C++ still uses cout>>. In Java, you print the statement in a String literal like System.out.println("My name is Scotty"); That's how you'd print a string literal in Java. If you already haven't know. LOL. But ColdFusion is something I never used before. But Professor Dushok said he use to have ColdFusion servers at LCCC, but changed it to Linux because of it dying slowly. But they use to have a ColdFusion class, but changed it to Server Administration with Linux, which is what I'll be taking next Spring of 2010. Anyways, I'm gonna go back watching WWE 24/7 Classics OnDemand. Have a nice night and speak to you tomorrow.

Posted on July 10, 2009 at 11:04 PM
You must be logged in to leave a comment.

Powered by BlogCFC v5.9.004 from Raymond Camden


4down superstars





4down territory

Latest Fantasy Blog Show Posts Author Show Comments Rating 
Huge News for Show Jan 25   TheWrestler WWE Superstars V2 2 0.00 
10/3 WWE Alpha Raw, Episode 11 Feb 13   edawg32 Temporary WWE Alpha 0 0.00 
9/27 WWE Gamma SmackDown Live, Episode 10 Feb 10   edawg32 WWE Gamma 0 0.00 
9/26 WWE Alpha Raw, Episode 10 Feb 09   edawg32 Temporary WWE Alpha 0 0.00 
Wrestlemania 33 Card Update Dec 28   TheWrestler WWE Special Events 3 0.00 
Visit the Fantasy Blog Show Home - Fantasy blog shows are where our players can create their own wrestling company and book TV shows and PPVs using any wrestlers past or present - or even create wrestling personas for players here at the site and put them to battle!
Latest Non-Fantasy Blog Show Posts Author Show Comments Rating 
WrestleMania 34 Jan 24   radschord89 LLWE non fantasy shows 0 0.00 
WrestleManis 33 (Predictions) Apr 02   radschord89 LLWE non fantasy shows 0 0.00 
Wrestlemania 33 Match Predictions Jan 04   radschord89 LLWE non fantasy shows 0 0.00 
Wrestlers with 1 or less days as WWF/WWE Champion Dec 16   radschord89 LLWE non fantasy shows 0 0.00 
Roadblock: End of the Line (Raw Exclusive) Predictions Dec 12   radschord89 LLWE non fantasy shows 4 0.00 
Visit the Non-Fantasy Blog Show Home - Our non-fantasy blog shows are series of blogs that deal with past or current wrestling topics and can also include fantasy booking - how the author would like to see current wrestlers be used on TV or how storylines could play out.