Chris Pollett > Students >
Mallya

    ( Print View)

    [Bio]

    [Blog]

    [CS 297 Proposal]

    [Deliverable 1]

    [Deliverable 2]

    [Deliverable 3]

    [Deliverable 4]

    [CS297 Report - PDF]

    [CS 298 Proposal]

    [CS 298 Slides - PDF]

    [CS 298 Final Report - PDF]

Deliverable 3

Generalising the Traditional Wiki Systems to New Media Page Formats

Purpose:

To add a pastebin like media page format. The motive behind this deliverable is to give any user i.e. both anonymous and registered the ability to read and edit code posted by users on Yioop.

Description:

When users go to create a wiki page the Pastebin is presented as an option in settings. In the Paste Raw Data text area, the user places the desired code snippet for review and collaboration with other registered users or anonymous users, on clicking "Save" the code snippet is presented as shown in Sample Output below

Code Snippet for Pastebin to allow anonymous users to edit posted code content:


            foreach ($keep_fields as $field) {
                if (isset($request[$field])) {
                    if ($field == "arg" && !in_array($request[$field],
                        ["diff", "history", "read", "pages", "media", "source", 
                        "statistics"]) && $request['paste_bin_page'] == "") {
                        continue;
                    }
                    $_REQUEST[$field] =
                        $this->clean($request[$field], "string");
                }
            }
            $_REQUEST["c"] = "group";
            if (isset($request["paste_bin_page"])) {
                $_REQUEST["a"] = $request['a'];
                $_REQUEST["paste_bin_page"] = $request['paste_bin_page']; 
            }
        }
 

Sample Output: