The GBAtemp Sidebar

Discussion in 'Site Discussions & Suggestions' started by Ace, Feb 8, 2011.

Feb 8, 2011

The GBAtemp Sidebar by Ace at 12:18 AM (4,372 Views / 0 Likes) 54 replies

  1. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    I realized today that many Tempers probably don't have GBAtemp as their homepage. So I threw together a simple (and as small as possible) sidebar website, that can open all subforums in a new tab, and the Shoutbox (100 posts plus limitation). It's made exclusively for GBAtemp, and I'm by no means going to take credit for it (I used Mobile GBAtemp as a template, even [​IMG]). Sadly, because of the limitations imposed by Google Chrome, it will only work for FireFox users.

    It's very easy to set this up and get it running:
    [​IMG]
    See this silhouette of our Temp Mascot? He's so ace that you're dragging him onto the Bookmarks Toolbar.
    HOLD IT! Not quite done yet.
    See that it says GBAtemp Sidebar there, now?
    Go ahead and right click it, slide down to Properties, and check the box that says "Load this bookmark in the sidebar"
    Hit Save


    Keep classy, tempers,

    Ace Faith


    Versions:

    ---------------------
    Version 1: [​IMG]
    Latest version mirror #1 (Thank you, iFish!): Broken [​IMG]
    Changes:

    Mazor's Überawesome version: [​IMG] Dead link
    ---------------------
    7/02/11: Original version written.
    8/02/11: Mazor's version added to post. It includes latest posts, updated in realtime (I think...)
    9/02/11: Mazor's version updated. Chrome extension (coming up in a bit, I hope tomorrow?), Ask GBAtemp/EOF/News/Blogs realtime feed added, general clean-up.

    Other Browsers?
    ---------------------
    For Opera:
     


  2. Pyrmon

    Member Pyrmon Burnin' Monkey Love

    Joined:
    Sep 25, 2010
    Messages:
    1,086
    Location:
    Montreal
    Country:
    Canada
    Dude, that is fucking awesome.
    But if you do a self-updating latest posts toolbar, I will literally flood my keyboard with drool.
     
  3. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    Quite difficult, as the entire thing is written up in HTML, and in about 7 lines less code than the Forum Index of the mobile GBAtemp site. The entire point is to have an athletically fast sidebar. But the admins/supervisors/coders for this site are more than welcome to pick it up and improve it. The point so far is to make it distanced from the official GBAtemp services.
     
  4. Vidboy10

    Member Vidboy10 Tsardom

    Joined:
    Dec 15, 2008
    Messages:
    2,617
    Location:
    Vancouver, B.C
    Country:
    Canada
    Wow, Already a sticky?
     
  5. Cuelhu

    Member Cuelhu КУ!

    Joined:
    May 19, 2010
    Messages:
    536
    Location:
    Fantasy Land
    Country:
    does it work on Seamonkey?
     
  6. Invisible Man

    Newcomer Invisible Man Member

    Joined:
    Oct 31, 2010
    Messages:
    17
    Country:
    United States
    Just some information which might be useful for anyone who wants to expand on Ace Faith's idea...

    GBAtemp Latest Posts
    Example URL: http://www.gbatemp.net/index.php?act=last10&show=0

    Parameter: show
    0: Posts
    1: News
    2: Blogs
    3: EOF

    ---------------------------

    GBAtemp News RSS Feeds
    Example URL: http://www.gbatemp.net/rss.php?show=00100 (info)

    Parameter: show = ?????
    1st ?: GBAtemp and Scene News
    2nd ?: GBA Releases
    3rd ?: NDS Releases
    4th ?: Wii Releases
    5th ?: Homebrew News

    ---------------------------

    Shoutbox
    I don't have enough posts

    ---------------------------

    Ask GBAtemp Search
    Example URL: http://ask.gbatemp.net/ajax-search-questions.php?q=NDS

    Parameter: q
    The search term

    ---------------------------

    FileTrip Search
    Example URL: http://www.filetrip.net/autocomplete.php?string=NDS

    Parameter: string
    The search term

    ---------------------------

    FileTrip RSS Feeds
    Example URL: http://www.filetrip.net/rss.php?feed=file_new (info)

    Parameter: feed
    file_new: Most recently added files
    file_updated: Most recently updated files
    top_downloaded: Most downloaded files
    top_rank: Highest rated files

    ---------------------------

    GBAtemp Portal News
    Example URL: http://www.gbatemp.net/index.php?act=home&...lectedNewsTab=1

    Parameter: selectedNewsTab
    1: All News
    2: Popular
    3: Gaming
    4: Homebrew
    5: Videos

    ---------------------------

    GBAtemp Portal News (single news item)
    Example URL: http://www.gbatemp.net/index.php?aj=1&...s&id=277681

    Parameter: tp
    nws: News
    gn: Gaming News
    hbr: Homebrew News

    Parameter: disp
    hdr: Topic details (author, date, comments)
    con: Topic content

    ---------------------------

    GBAtemp Release List/Details
    Example URL: http://gbatemp.net/index.php?act=ajax_rele...p;count=-277998

    Paramater: type
    0: All releases
    1: DS releases
    2: Wii releases
    3: GBA releases
    4: WiiWare Releases
    5: Virtual Console Releases
    1337: Display release details

    Paramater: count
    Number of items to show in list or thread ID if getting release details (ID must be prepended with a minus (-) symbol).

    ---------------------------

    Information on Loading and Parseing XML/HTML files with JavaScript
    http://www.w3schools.com/xml/xml_http.asp
    http://www.w3schools.com/dom/default.asp

    Would be cool if there was a good API which spat out an XML file with requested information instead of trying to extract the information from HTML files which don't have element id's in useful places all the time. [​IMG]
     
  7. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    It sadly doesn't work on SeaMonkey.
     
  8. Cloak519

    Member Cloak519 GBAtemp Advanced Fan

    Joined:
    Oct 7, 2010
    Messages:
    566
    Country:
    This a brilliant idea! If I make any modifications, would you object to me posting them Ace Faith?
    It would be nothing major, just me messing around mainly.
     
  9. Mazor

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    Objections or no objections, I made a few "modifications" after reading pyrmon24's post.

    http://pcdb.info/scarlet/GBAtemp/LatestPosts.php

    Here's a POC or something of this. It updates every few seconds.

    Install the same way as described in OP.

    If anyone can spice up the HTML a bit I'll update it and it would become pretty cool.

    Edit: Typo.
     
  10. Sterling

    Member Sterling GBAtemp's Silver Hero

    Joined:
    Jan 22, 2009
    Messages:
    4,023
    Location:
    Texas
    Country:
    United States
    >.< No Chrome? [​IMG] I love Chrome, and I really don't want to switch. :/ I may have to make an exception in this case though.
     
  11. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    It'll work, just not in a side bar. You could probably make it work using iFrames or something similar. But it would only show in one tab, and be lost if you refreshed the tab or typed in the URL bar on that tab (clicking links on the main page would be OK). So all in all, fairly pointless TBH.
     
  12. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    This is AMAZING! But the default hyperlink color gives some glare, but that can easily be fixed.
    In fact, keeping with the color scheme of GBAtemp, the best color to use would be (in hex): #EA792E
     
  13. Sterling

    Member Sterling GBAtemp's Silver Hero

    Joined:
    Jan 22, 2009
    Messages:
    4,023
    Location:
    Texas
    Country:
    United States
    Eh, if someone releases a proper chrome one, I would not only love them forever, but would... [Censored]. Ah, well, it isn't as though I couldn't wait. The idea is out there, if someone feels like doing it, then it will happen. :/ As for the initial idea, not only one of the most awesome posts ever, but the quickest sticky from a normal user. [​IMG]
     
  14. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    Trust me, I'm pretty surprised as well. Mad props to TrolleyDave for that!
    As much as I also wished the sidebar would work for Chrome, it's Google's fault to not include a sidebar for bookmarks, IMO. I'd suggest just using Firefox for your Temp needs for now, and then we'll see what happens [​IMG]
     
  15. Mazor

    Member Mazor Z80 master arch

    Joined:
    Feb 14, 2008
    Messages:
    547
    Country:
    Sweden
    Updated it with this color and changed the line formatting a bit so it looks better.

    Open to more suggestions/prettier html code.
     
  16. Ace
    OP

    Member Ace GBATemp's Patrick Bateman

    Joined:
    Apr 8, 2009
    Messages:
    1,035
    Location:
    Manhattan
    Country:
    Sweden
    To be fair, I don't know how far I'll be able to extend this, even :S
    I'm hoping the community can build on top of it, see how far it extends xD
    I only know (barely) how to write HTML. You obviously have more experience and resources here than me, using PHP [​IMG]
    Hell, I was using PasteHTML for my hosting [​IMG]
    Best case scenario, we get a great multi-browser sidebar.
    Oh, and I realized I forgot a few important links for this:
    -GBATemp's Picture Upload service
    -Ask GBAtemp
    -FileTrip
    -IRC
    I think a LOT of Temper's could have good use of these. Could you (pretty, pretty pretty,) please add them?
     
  17. Ireland 1

    Member Ireland 1 GBAtemps resident Irish

    Joined:
    Sep 21, 2008
    Messages:
    666
    Location:
    Ireland
    Country:
    Ireland
    Thanks loads. This is savage addition to Firefox.
     
  18. ineap09

    Member ineap09 GBAtemp Regular

    Joined:
    Nov 18, 2010
    Messages:
    285
    Location:
    Many places. O_O MemeLove: 4/5
    Country:
    Guyana
    The sidebar's awesome! I've been using it a lot since I added it yesterday. Thanks! [​IMG]
     
  19. JinTrigger

    Member JinTrigger Asentrix Studios

    Joined:
    Jun 25, 2008
    Messages:
    1,550
    Location:
    Lunesta/Mysteria
    Country:
    United States
    ....I love you

    ACE FAITH SIDEBAR FTW!!!

    EDIT-Why hasn't this made front page news cause I probably wouldn't have known about this if I wasn't about to post in this section (which I normally don't do)
     
  20. Cuelhu

    Member Cuelhu КУ!

    Joined:
    May 19, 2010
    Messages:
    536
    Location:
    Fantasy Land
    Country:
    works on Opera. Just open the link in a new tab and grab the tab to the panel (side) bar.
     

Share This Page