Check out our blog!
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Civil Discussion
Switch to Role-Playing Civil Discussion

Viewing a Post

Eglath

Avatar: Pink Dress
10

[The Flamers of Loa-
thing
]

Level 35 Camwhore

Gnefarious Gnymphomaniac

MC Banhammer Posted:

What language is the code written in? Because he wrote the wiki in Ruby on Rails.

The “sorttable” module is just a javascript file.

To ‘install’ it he just needs to copy so it is in the same local folder as the wiki pages, and then add an javascript import line for the code at the top of the wiki pages and possibly add a section to the CSS page to define a new clbum called ‘sortable’ which extends the normal table attributes or overrides the normal attributes depending on if he wants the sorttables to look similar or dissimilar to the normal tables. (The code works even without the changes to the CSS.)

All of the code in the sorttable is run on the client side, so no extra processing or page calls for the server. There should not be any impact on other tables in the wiki, as they only have the added functionality if the table is specifically written to use it. (ie clbum=”sortable”

Since all this configuration is via a javascript import, and all the functionality is run on the client side, it should be very easy to integrate no matter what server-side scripting language he is using.

I took a quick look at the ROR dogreat timesentation, and he should only have to put:

<script src="sorttable.js"></script>
in the RoR code that generates the HEAD portion of the html for the wiki pages, and then do any tweaks to the CSS he wants.

Then using it on the wiki, you would just specify the clbum of your table as a sorttable by:

{| clbum="sortable"

Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!