18-97-9-172.crawl.commoncrawl.org | ToothyWiki | ToothyWikiInternals | RecentChanges | Login OK, MoonShadow has been Perl hacking. For those interested, here are the gruesome gory details of how logging in is meant to work right now:
If you are logged in, the links at the top of each page should include Preferences and Logout, as well as your username (if you have one) and unique user ID.
You will need to remember your user ID if you want to be able to log in from somewhere else.
You don't need to log out if you are the only person that uses this machine to post to ToothyWiki.
If you log out, your browser will be assigned an invalid user ID number.
If an invalid user ID is obtained from a browser, the Login option will be displayed in the links at the top of each page.
If someone who does not have a valid user ID number assigned to their browser edits a page, only their IP address will be logged in RecentChanges. There is a polite suggestion that they choose a nickname next to the Save button, but it is not enforced, in keeping with the general spirit of freedom.
If someone who does not have a valid user ID number goes to the [Preferences] page, a new user ID will be created for them. The preferences page is linked from the login and editing pages. People who just come in and browse and don't want to edit aren't forced to concern themselves with creating a nickname or entering preferences.
The login page now contains a [link] to explicitly create a new user ID.
If any of this is broken, please tell me.. whimper -- MoonShadow
I'm trying to set up a wiki, based on the UseModWiki source. It seems to work, but I could really do with this feature - how would one do this? --M-A
Um. You could try and unpick it from a diff of the [ToothyWiki source] against vanilla. You could switch to using the ToothyWiki source (in which case you'll probably want to localise it - which could be tricky, since a number of the changes are hardwired hacks. Senji went that way.) Or you could write your own. Here's roughly what I did:
[Code snipped.]
I don't remember how much of that was around in vanilla. Basically, the login functionality was already present - I just added a couple of actions to clear the cookie, which has the effect of logging people out, and made a few cosmetic changes (displaying appropriate info/links in the goto bar). There's a few other cosmetic tweaks - mainly things like links to action=newlogin from assorted places - but that should be sufficient for the basic functionality. - MoonShadow
Excellent, thanks. I've now got to sort out the three-way diff between the 0.92 version you used, the current ToothyWiki version and the 1.0 version that I've just downloaded... :) --M-A
I've never been able to login to the wiki. The login fails every time, whether I have assigned a password to the account, or not. Browser is Mozilla 1.5a -- Kitiara
Please describe exactly what you do. Things that have got people in the past:
You need to set a password. If you don't set a password when you create the account, there's no way to log back into it once you've logged out.
You need to have cookies enabled in your browser.
You need to be typing the user ID number the account you created got given into the login box, not your nickname.
Caching issues - some browsers seem to cache CGI results slightly too aggressively. Try logging in via a different URL to one where you've previously had a failed login page during that session (e.g. toothycat.net/wiki/wiki.pl rather than www.toothycat.net/wiki/wiki.pl)