Slash Boxes

Slash Open Source Project

Counting Recent Logged In Users?

posted by Cliff on 01:13 PM February 26th, 2004   Printer-friendly   Email story
An Anonymous Slash Admin asks: "I finally have a running slashsite and am trying to customize it. Is there a simple way to query the DB for recent logins? I would like my main page to display something like:
XX users logged in within the past hour.
XX users logged in within the past 24 hours.
Would it also be possible to look at the number of IP's that Anon. users come in from to get a count of unique readers in the past hour and day? I've searched and have not found a plugin that will do this. Any advice on where to start would be appreciated!"

Installing Slash as a Site Subdirectory

posted by Cliff on 08:07 AM February 23rd, 2004   Printer-friendly   Email story
subdomain-less asks: "Hi, I run this site, and want to run Slash in, since I have no control of DNS to creat I can't see a way in slash install procedure to acomplish this. I've tried to do:
Alias /forum /usr/local/slash/...
However that doesn't seem to work. Any ideas?" There is a way to make it work, but it's not an easy procedure. First off, you'll have to change a few variables, once your slash site is installed: absolutedir, basedir, imagedir, rdfimg, and rootdir. Secondly there may be problems in some of the handlers, most notably Slash::Apache::ImageHandler, Slash::Apache::User::userdir_handler, and Slash::Apache::User::handler. A patch to fix these problems may be forthcoming, but it might take a while.

Dealing with Formkey Problems?

posted by Cliff on 01:43 PM February 20th, 2004   Printer-friendly   Email story
ecsd asks: "If I log in as a normal user and 'create discussion', then when I post the initial article for the discussion I get 'Error: Invalid Form Key xxxxxxxxxx' with a message saying to report the error to SourceForge. I saw there was a variable for 'lenientkey' or such for the site and had already set it to 1 (more lenient?). The error occurs with the unprivileged user, whether from the same subnet or not. I haven't tried posting a discussion-opening post as an admin. How can I ensure I have formkeys set up properly, and how can I diagnose why the errors occur?" Having problems with Formkeys? Then this is the discussion for you. Share your problems, and any solutions you may have used for getting everything working again. I do understand that Formkeys are somewhat of a problem, so I am hoping that those of you who have already gone through the hassle of getting them to work will share your experiences.

Machine-Automated Slash Posting and Moderation?

posted by Cliff on 04:45 PM February 19th, 2004   Printer-friendly   Email story
automatic-slash asks: "I am new to slash development, and interested in 'automatic, machine-automated content filtering, posting, and machine moderation of threaded discussions.' A couple of questions come to mind. What parts (which source modules) of Slash are responsible for content posting, and discussion moderation (assuming these would be the ones in need of modification for the above purposes)? Any thoughts on how a completely machine-automated Slash system might work? If a group of us eventually makes the above-described modifications, would it be possible (likely?) that they would be incorporated as options into Slash? I know that my description of 'machine-automated content filtering, posting, and moderation' is extremely vague! Please bear with me! I'm looking for a place to get started on this, so any thoughts on the subject would be greatly appreciated, and help with formulating more specific questions and proposals." While it might be slightly more work, it might be better to think about identifying the necessary parts from the first question, and then seeing if this functionality can be placed into a Plugin/Theme combination, rather than trying to change the core modules. Of course, for informational purposes, if any of you Slash developers can identify all of the places in the code responsible for content posting and moderation, it might help others who need this information.

Slashcode and FAQs

posted by Cliff on 02:30 PM February 11th, 2004   Printer-friendly   Email story
alexmc writes: "I keep on wanting to add lots of FAQ type information to my slash site. Is there a Slashcode compatible FAQ plugin? Should I install FAQ-O-Matic instead? or just use a Wiki? Suggestions wanted folks!" Slash has its own FAQ plugin, included in the CVS distributions, but you might be better off using something else. It would be interesting to note the experiences of those of you using that particular plugin. For those of you not running Slashcode's FAQ code, what have you been using and what have your experiences been dealing with it and its interactions with Slash?
Today's News | February 28 | February 26  >