I've been tinkering with the new info plugin in the latest release.
First, there's a small bug in line 188 of functions.php, which should
read:

        if (isset($args['exclude']) && strpos(",$args[exclude],",
",$pageLink,") !== false) return;

It only affects it's ability to exclude certain pages from processing.
Evidently spammers were charging my sandbox and it took a while to
tune out that page. I also deleted it from open editing on the
BoltWire site...

Anyway I created a page call info.track that looks like this:

[(search group=info.track.* template=track)]

/*
[[#track]]
[(template group)][t width=100%][r][h]{+p3}[t]
[(template each)]IP Address: [[{+p}|+]]
<(include {+p})>
----
[[#end]]
*/

Then I put this on the bottom zone:

<(info field="[(time {now} %H-%M-%S)]" value="{p} [if
login]([[~{id}]])[if]" target=info.track.[(time {now} %Y-%m-%d)].{ip2}
exclude=site.cron,sandbox output="false")>

It's worth studying to see what this can do.

You also need to define ip2 which simply converts the .'s to -'s in
their ip address.  By this line in config.php:

$BOLTvar['$ip2'] = str_replace('.', '-', $_SERVER[REMOTE_ADDR]);

Check it out and let me know what you think.  To view the results, go
to info.track. When you have lot's of records, you'll want to delete
them one way or another and/or limit the search function some way. But
it's a fun experiment. Depending on feedback, I'll set this up as a
plugin eventually...

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to