Hi,
is anyone using google sitemaps with openguides?
Thanks, Markus
On Mon, Dec 11, 2006 at 11:46:16AM -0500, Markus Linke wrote:
is anyone using google sitemaps with openguides?
Not that I know of. The way it would probably need to work is to implement another Wiki::Toolkit::Feed class as a sitemap is essentially another index listing.
Anyone got any further thoughts about implementation details/relative merits of Google Sitemaps?
Dominic.
On 11/12/06, Markus Linke markus.linke@linke.de wrote:
Hi,
is anyone using google sitemaps with openguides?
Yep, Nottingham has one; I just use an external script to generate it. Said script can be found here:
http://nottingham.openguides.org/make_sitemap.txt
It's pretty much just the result of a few minutes playing about with the existing reindex.pl script, as far as I recall, and I'm sure a much better job could be done, but it Works For Me (TM).
Hope this helps,
James
Thanks James; it works for me too :O)
----- James Green jkg@earth.li wrote: | On 11/12/06, Markus Linke markus.linke@linke.de wrote:
| Yep, Nottingham has one; I just use an external script to generate | it. | Said script can be found here: | | http://nottingham.openguides.org/make_sitemap.txt | | It's pretty much just the result of a few minutes playing about with | the existing reindex.pl script, as far as I recall, and I'm sure a | much better job could be done, but it Works For Me (TM). | | Hope this helps, | | James
Is there any way to protect the openguide wiki from spam? The New York pages get messed up all the time :o(
On Thu 27 Sep 2007, Markus Linke markus.linke@linke.de wrote:
Is there any way to protect the openguide wiki from spam? The New York pages get messed up all the time :o(
Yep! As of version 0.61, OpenGuides lets you define a spamchecker module that will be invoked every time someone tries to save an edit. If the module decides that the edit is spam, it refuses the edit and informs the user.
From the docs for OpenGuides->commit_node:
If you have specified the "spam_detector_module" option in your wiki.conf, this method will attempt to call the "looks_like_spam" method of that module to determine whether the edit is spam. If this method returns true, then the spam_detected.tt template will be used to display an error message.
The looks_like_spam method will be passed a datastructure containing content and metadata.
Here's an example:
[in wiki.conf]
spam_detector_module = OpenGuides::Local::OGLSpamDetector
[in OGLSpamDetector.pm]
package OpenGuides::Local::OGLSpamDetector;
use strict;
sub looks_like_spam { my ( $class, %args ) = @_;
if ( $args{metadata}{comment} =~ /some grammatical corrections/i ) { return 1; }
my @cats = @{ $args{metadata}{category} }; foreach my $cat ( @cats ) { if ( $cat =~ m'http://%27i ) { return 1; } }
my @locs = @{ $args{metadata}{locale} }; foreach my $loc ( @locs ) { if ( $loc =~ m'http://%27i ) { return 1; } }
}
thanks, I'll give it a try ...
----- "Kake L Pugh" kake@earth.li wrote: | On Thu 27 Sep 2007, Markus Linke markus.linke@linke.de wrote:
| Yep! As of version 0.61, OpenGuides lets you define a spamchecker | module that will be invoked every time someone tries to save an edit. | If the module decides that the edit is spam, it refuses the edit and | informs the user. | | From the docs for OpenGuides->commit_node: | | If you have specified the "spam_detector_module" option in your | wiki.conf, this method will attempt to call the "looks_like_spam" | method of that module to determine whether the edit is spam. If | this | method returns true, then the spam_detected.tt template will be | used | to display an error message. | | The looks_like_spam method will be passed a datastructure | containing | content and metadata. | | Here's an example: | | [in wiki.conf] | | spam_detector_module = OpenGuides::Local::OGLSpamDetector | | [in OGLSpamDetector.pm] | | package OpenGuides::Local::OGLSpamDetector; | | use strict; | | sub looks_like_spam { | my ( $class, %args ) = @_; | | if ( $args{metadata}{comment} =~ /some grammatical corrections/i ) | { | return 1; | } | | my @cats = @{ $args{metadata}{category} }; | foreach my $cat ( @cats ) { | if ( $cat =~ m'http://%27i ) { | return 1; | } | } | | my @locs = @{ $args{metadata}{locale} }; | foreach my $loc ( @locs ) { | if ( $loc =~ m'http://%27i ) { | return 1; | } | } | | }
This one time, at band camp, Markus Linke wrote:
Is there any way to protect the openguide wiki from spam? The New York pages get messed up all the time :o(
I'm still running 0.59 but will upgrade soon. One thing I've noticed though is I'm getting a persistent search engine spammer on the node "Wiki Discussion". I delete it as soon as I notice it, but it never comes up in the RSS feed of recent changes. Why is that?
On Fri 28 Sep 2007, Rev Simon Rumble simon@rumble.net wrote:
I'm getting a persistent search engine spammer on the node "Wiki Discussion". I delete it as soon as I notice it, but it never comes up in the RSS feed of recent changes. Why is that?
Good question. Do you mean that you're checking the RSS feed manually before you delete the spam? Or do you mean that you're checking the RSS feed on everywhere.openguides.org? If the latter, then the answer is that you're deleting the spam fast enough that the (hourly?) scrape of the RSS feeds never has a chance to see it.
Kake
This one time, at band camp, Kake L Pugh wrote:
Good question. Do you mean that you're checking the RSS feed manually before you delete the spam? Or do you mean that you're checking the RSS feed on everywhere.openguides.org? If the latter, then the answer is that you're deleting the spam fast enough that the (hourly?) scrape of the RSS feeds never has a chance to see it.
None of these. I subscribe to the RSS feed through Google Reader and these changes happen without them showing up there at all. Some of them have been a few days before I notice them, so it's not a timing thing.
However I've turned moderation on for that node. Didn't know about that!
On Sat 29 Sep 2007, Rev Simon Rumble simon@rumble.net wrote:
None of these. I subscribe to the RSS feed through Google Reader and these changes happen without them showing up there at all. Some of them have been a few days before I notice them, so it's not a timing thing.
Odd. Did you check the RSS feed directly, and if so, were the edits visible there or not?
Kake
On Sat, Sep 29, 2007 at 07:59:34PM +0100, Kake L Pugh wrote:
On Sat 29 Sep 2007, Rev Simon Rumble simon@rumble.net wrote:
None of these. I subscribe to the RSS feed through Google Reader and these changes happen without them showing up there at all. Some of them have been a few days before I notice them, so it's not a timing thing.
Odd. Did you check the RSS feed directly, and if so, were the edits visible there or not?
Isn't the default for the RSS feed not to include minor edits? Most spammers on boston use minor edits to do their spamming, so they sometimes don't show up in the default RSS feed.
Regards,
On Sun 30 Sep 2007, Christopher Schmidt crschmidt@crschmidt.net wrote:
Isn't the default for the RSS feed not to include minor edits?
Doesn't look like it from the code, and the default RGL RSS feed certainly has minor edits in.
Most spammers on boston use minor edits to do their spamming, so they sometimes don't show up in the default RSS feed.
This might be connected to your having forked it? Not sure.
Kake
On Sun, Sep 30, 2007 at 10:16:59PM +0100, Kake L Pugh wrote:
On Sun 30 Sep 2007, Christopher Schmidt crschmidt@crschmidt.net wrote:
Isn't the default for the RSS feed not to include minor edits?
Doesn't look like it from the code, and the default RGL RSS feed certainly has minor edits in.
It's possible it has changed over the past 2 years :) It has been a while since I've looked at it.
Regards,
This one time, at band camp, Kake L Pugh wrote:
Odd. Did you check the RSS feed directly, and if so, were the edits visible there or not?
Okay I'm going to leave this change active. It's moderated anyway, so not visible directly.
http://engineer.openguides.org/?action=rc
Yet neither the RSS nor the Atom file contains the change. The change you're looking at is by "reervejob"
So what's going on?
On Fri, Sep 28, 2007 at 12:48:10AM +0100, Rev Simon Rumble wrote:
This one time, at band camp, Markus Linke wrote:
Is there any way to protect the openguide wiki from spam? The New York pages get messed up all the time :o(
I'm still running 0.59 but will upgrade soon. One thing I've noticed though is I'm getting a persistent search engine spammer on the node "Wiki Discussion". I delete it as soon as I notice it, but it never comes up in the RSS feed of recent changes. Why is that?
Not an answer to your question, but support for moderated nodes was added in 0.57, and if it's spammers hitting particular nodes then this may be very useful.
Try visiting wiki.cgi?action=admin on your guide to set up the moderation.
Dominic.
openguides-dev@lists.openguides.org