It's finally here!

FreakinMeany FreakinMeany — April 23, 2003
The content sharing system is finally here and of course, this is the place to talk about it. Anything regarding the system is welcome here: comments, feedback, suggestions, feature and data list requests.
Subscribe (Text is inserted via code, leave as-is)

Comments

  • NaSa NaSa — May 16, 2003
    Please remember I have no coding experience. I now have two fan sites up one for U2 the other Chaser. I would like to have the sharing on both sites. I use a web editor and have very little knowledge of coding. The following gives me an error, for the life of me I cant work it out. Its probably very simple but I just cant see it.

    Line 17
    Char 5
    Error 'ivertical' is undefined
    Code 0

    I know this is for ut2k3 maps, just a test.
    <html>

    <head>
    <!-- Include the data file that you
    want to use from the Mapraider.com server -->
    <script language=
    "JavaScript" src=
    "http://www.mapraider.com/sharing/js/top10-ut2k3.js"></script>
    <!-- include the library file below the data file -->
    <script language="JavaScript" src="inc.mapraider.js"></script>
    </head>
    <body bgcolor="#ffffff">
    <p>
    <script>
    <!--
    // Call ShowMaps () to display the maps.
    ShowMaps ( iVertical, 0, 0,
    bShowName, bShowAuthor,
    bShowScreenshot, bShowScore,
    bShowRatings);
    // -->
    </script>
    </p>
    <p>&nbsp;</p>
  • MrBrownstone MrBrownstone — May 16, 2003
    Make sure you have copied the inc.mapraider.js file into the same folder as your HTML file.

    If you want to be more organised, put the file in a folder called /script/ (or whatever) and change the line that reads:

      <script language="JavaScript" src="inc.mapraider.js"></script>


    To this:

      <script language="JavaScript" src="script/inc.mapraider.js"></script>
  • NaSa NaSa — May 16, 2003
    :B Spot on my friend many thanks! :D
  • NaSa NaSa — May 16, 2003
    Nearly done it! :D Looking for the unreal 2 link, I've seen it just cant find it at the mo :P
  • FreakinMeany FreakinMeany — May 16, 2003
    The documentation has a complete list of the available data files in Appendix A : XML and JavaScript Data Files

    Newest 10 U2 maps:
    http://www.mapraider.com/sharing/js/new10-u2.js

    Top 10 U2 maps:
    http://www.mapraider.com/sharing/js/top10-u2.js

    I also notice that you're not sure what to do with the style sheet defs: i.e. ".mrmapname"

    These built in CSS defintions allow you to change how the text in the JavaScript version looks. For example, if you want to change the color, size or font of the map's name, author name, score, etc.

    If you look in the <HEAD> section of the sample HTML/JavaScript files (sample1.html), you'll see a <STYLE></STYLE> block that defines style sheets for the page.

    ".mrmapname" is the style that defines how the map's name is to be displayed. In the examples, the map's name will simply be displayed at the default font size and in black (#000) Since the map name is also a link, the "a:hover.mrmapname" style tells the browser to change the link color to red (#f00) when the mouse rolls over it. You can change the color that it's displayed in by simply changing the color value.

    The other styles listed have the same effects on the other text that you can display with the javascript version. .mrscore affects the score of the map, for example.

    Hope that's some help. Cascading Style Sheets can be pretty complex, but this should give you an idea of what they're there for :)

    Here's a link where you can see all of the web-safe colors and their appropriate numbers. Just take the first number shown for the color (i.e. ff0066) and add a pound sign in front to use it in the style sheets (i.e. #ff0066)

    http://www.lynda.com/hexh.html
  • NaSa NaSa — May 16, 2003
    Thanks guys :P Now up and running, not to fancy but it works. Comments :D
  • FreakinMeany FreakinMeany — May 16, 2003
    Sure does! By the way, there are a couple of new maps for Unreal II due out in the very near future. They'll show up on that list as soon as the author's release them :)
  • slipo666 slipo666 — July 6, 2003
    Hey nasa,
    Is that your webpage?
  • slipo666 slipo666 — July 6, 2003
    Man, i'm getting error 404 here!

Subscribe

Be notified via email when new comments are posted in this discussion.

Unsubscribe

Stop receiving email notifications when new comments are posted in this discussion.