Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-25 05:21:20
- datumax
- Member
- Registered: 2005-01-12
- Posts: 16
Request: Plugin that accrues and displays site issue/version number
One of my visitors told me today that my site would be easier to “check” if there was a version number that appeared some place prominent. This number would indicate that a change has been made to the format or content since the last increment.
For example:
The owner creates a new design, applies a new template or changes the direction of the site. That warrants a whole number change:
2.0
An article is written:
2.001
A comment is made:
2.0011
Another article is written:
2.002
Three comments are made:
2.0023
Et cetera.
The plugin would just need to allow the owner to define what warrants each increment so that it can be customized easily. It would need to allow the format of the output to be modified as well (font, seperators).
That’s all I can think of for now.
Offline
Re: Request: Plugin that accrues and displays site issue/version number
Isn’t this generally speaking the whole idea behind RSS/Atom feeds? I mean, I realize that a lot of users aren’t savy enough to understand / know what the hell is going on with this “feeds” and “xml”, but even so…
I do think this would be an interesting plugin, although I don’t totally see a point to it. You might want to steer your users towards feeds.
Offline
#3 2006-03-25 06:02:44
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Request: Plugin that accrues and displays site issue/version number
Another thought: the numbers could easily become ridiculous and unmanageable; I don’t know that they’d ever be truly usable.
Offline
Re: Request: Plugin that accrues and displays site issue/version number
Hi datumax. A better way to what your visitors tell you might be to have somewher when the site was last updated. There is a plugin for that (mrz_lastsitemod) but unfortunately there is nowhere to be found online. I do have it on my disk and I can post it here if you want it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2006-03-26 00:04:37
- datumax
- Member
- Registered: 2005-01-12
- Posts: 16
Re: Request: Plugin that accrues and displays site issue/version number
Oh well. Thanks for the suggestions.
Offline
Re: Request: Plugin that accrues and displays site issue/version number
I agree with Mary, especially if you’re using a decimal number (integer_part.decimal_part) and toying with 0’s… see how it went with Perl version numbers… if you’re to do it, I’d recommend using multiple integer parts, instead of:
For example:
The owner creates a new design, applies a new template or changes the direction of the site. That warrants a whole number change:
2.0
An article is written:
2.001
A comment is made:
2.0011
Another article is written:
2.002
Three comments are made:
2.0023
do something like:
The owner creates a new design, applies a new template or changes the direction of the site. That warrants a whole number change:
2.0
An article is written:
2.0.0.1
A comment is made:
2.0.0.1.1
Another article is written:
2.0.0.2
Three comments are made:
2.0.0.2.3
CSS or templates get changed:
2.0.1
Sections are added or removed:
2.1
Anyway, I think the RSS solution is better… or maybe we could take a look at mrz_lastsitemod… would you post the plugin here, colak?
We could even modify/rewrite the plugin so that it keeps different “last_updated” timestamps for different kinds of stuff (templates, articles, comments, etc.)
Does anyone think this would be useful?
I want to get ideas of simple plugins wanted for a small group of students to develop as part of an assignment.
Regards.
Mariano Absatz – El Baby
I don’t suffer from insanity. I enjoy every minute of it.
Offline
Re: Request: Plugin that accrues and displays site issue/version number
baby wrote:
Anyway, I think the RSS solution is better… or maybe we could take a look at mrz_lastsitemod… would you post the plugin here, colak?
Here you go… I hope it will post ok
<pre>YTo4OntzOjQ6Im5hbWUiO3M6MTU6Im1yel9sYXN0c2l0ZW1vZCI7czo3OiJ2ZXJzaW9uIjtzOjM6IjAuMSI7czo2OiJhdXRob3IiO3M6MTI6Ik1hcmlvIFBhcnJpcyI7czoxMDoiYXV0aG9yX3VyaSI7czoyOToiaHR0cDovL21hcnoudmlzaW9ubGVhZ3VlLm5ldC8iO3M6MTE6ImRlc2NyaXB0aW9uIjtzOjM4OiJTaG93cyB3aGVuIHRoZSBzaXRlIHdhcyBsYXN0IG1vZGlmaWVkLiI7czo0OiJoZWxwIjtzOjU2OToiCgk8aDE+U3VtbWFyeTwvaDE+CgoJPHA+T3V0cHV0cyB0aGUgZGF0ZSBvZiB0aGUgbGFzdCBzaXRlIG1vZGlmaWNhdGlvbi48L3A+CgoJPGgyPkhvdyBUbyBVc2U8L2gyPgoKPGNvZGU+Jmx0O3R4cDptcnpfbGFzdHNpdGVtb2QgW3dyYXB0YWc9InRhZyJdIFtmb3JtYXQ9ImQgTSB5Il0gLyZndDs8L2NvZGU+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1vZCA9IHN0cnRvdGltZSgkcHJlZnNbJ2xhc3Rtb2QnXSk7CgkkbGFzdG1vZCA9ICAkbGFzdG1vZCArICRwcmVmc1sndGltZW9mZnNldCddOwoKCS8vZm9ybWF0IHRoZSBkYXRlCgkkb3V0cHV0ID0gZGF0ZSgkZm9ybWF0LCRsYXN0bW9kKTsKCgkkb3V0cHV0ID0gdGFnKCRvdXRwdXQsJHdyYXB0YWcpOwoJLy9vdXB1dCB0aGF0IGRhdGUKCXJldHVybiAkb3V0cHV0Owp9CiI7czozOiJtZDUiO3M6MzI6IjhiZWQ2NWIyOTZkMTA4ZGI1NjE3YmRjMGU1ZTdhNmVmIjt9</pre>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline