Saturday, August 1, 2015

EL-Wiki's Missing Forum and How to Reach It

 

 NO LONGER APPLIES

The el-wiki forums are back as of August 5th. This script is no longer necessary.

If you were using the script, you should delete it.







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


As most know, EL Wiki can now be accessed, but only if you make sure to include "www." at the start of the domain. -> http://www.el-wiki.net

The forum remains inaccessible. Though with a bit of a hack, it can be reached (until whoever's behind el-wiki finally fixes the issue.)

Greasemonkey /Tampermonkey Users: 

How to Gain Access to the Forum

 

Why the Forum Can't Be Reached

The forum remains inaccessible because subdomain smf.el-wiki.net, where the forum is accessed, has not been set up to show it as it did before. An oversight of whoever's behind the server these days.

But the Forum Is Still There

However, the forum exists at http://www.el-wiki.net/forum/ (but that's the only page you can see, and it's broken because everything on it points to "smf."


Make the Forum Useable With Greasemonkey / Tampermonkey

The below script will change all smf.el-wiki.net references to www.el-wiki.net/forum, and works.

Steps:

1. Add the below script to Greasemonkey (Firefox) or Tampermonkey (Chrome).
(I do not provide support for these extensions. If you don't know how to use them, find someone else who does.)

2. Go to http://www.el-wiki.net- Click the "Forum" link on the left side menu which should take you to www.el-wiki.net/forum/index.cgi . If it doesn't, your script is not set up properly.

3. Important about Logging In: When you enter your username and password on the forum with this, you'll end up going to the "503 error" page we're all familiar with by now. It's okay! Just hit "back" to the previous page where you entered your user/pass, and click to refresh the page. You should see that you're logged in at the top right, and all forums should be visible.

4. Important about Posting: Like the login, when you post you'll get the 503 page. However, if you back up to the thread you were posting in and reload the page, your post should be there.

DELETE THIS SCRIPT when http://smf.el-wiki.net becomes accessible again.


Add what is between the asterisk lines (not the asterisk lines themselves)
*******************************************************************************

// ==UserScript==
// @name           EL-Wiki Forum Temp Fix
// @namespace      http://www.el-wiki.net/
// @description    convert smf.el-wiki.net to www.el-wiki.net/forum
// @include        http://www.el-wiki.net/*
// @grant none
// ==/UserScript==

var links,thisLink;

links = document.evaluate("//script[@src]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i    var thisLink = links.snapshotItem(i);

    thisLink.src = thisLink.src.replace('http://smf.el-wiki.net/',
                                          'http://www.el-wiki.net/forum/');
}

links = document.evaluate("//link[@href]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i    var thisLink = links.snapshotItem(i);

    thisLink.href = thisLink.href.replace('http://smf.el-wiki.net/',
                                          'http://www.el-wiki.net/forum/');
}
links = document.evaluate("//a[@href]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i    var thisLink = links.snapshotItem(i);

    thisLink.href = thisLink.href.replace('http://smf.el-wiki.net/',
                                          'http://www.el-wiki.net/forum/');
}
links = document.evaluate("//img[@src]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i    var thisLink = links.snapshotItem(i);

    thisLink.src = thisLink.src.replace('http://smf.el-wiki.net/',
                                          'http://www.el-wiki.net/forum/');
}

links = document.evaluate("//form[@action]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i    var thisLink = links.snapshotItem(i);

    thisLink.action = thisLink.action.replace('http://smf.el-wiki.net/',
                                          'http://www.el-wiki.net/forum/');
}



*****************************************************************************