- For each new page, it will display a poll beside the content of page. The content of poll is create one time when create page and cannot modified.
- Auto deletion base on the number of votes
I'm now trying to intergrate voting system to your wiki, but it seem so complex to hack in. May you give me some hints.
- which file to modify to allow poll appear in unedited part of page.
- How to automate delete page base on some parameters(ie. < 10 hits for a period of time)
Thank you very much,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> - which file to modify to allow poll appear in unedited part of page.
Probably one of the template files, maybe
themes/default/templates/browse.tmpl.
If I were doing it, I think I'd implement the poll feature as a plugin.
You can invoke plugins from either the wiki-text (edited part of the
page) or from one of the templates.
> - How to automate delete page base on some parameters(ie. < 10 hits for a
> period of time)
That's tougher. There really aren't any hooks for asynchronous
actions. A quick-and-dirty way to do it might be to write a
seperate top-level php script which you would invoke periodically
via a cron job.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to implement new features that allow:
- For each new page, it will display a poll beside the content of page. The content of poll is create one time when create page and cannot modified.
- Auto deletion base on the number of votes
I'm now trying to intergrate voting system to your wiki, but it seem so complex to hack in. May you give me some hints.
- which file to modify to allow poll appear in unedited part of page.
- How to automate delete page base on some parameters(ie. < 10 hits for a period of time)
Thank you very much,
> - which file to modify to allow poll appear in unedited part of page.
Probably one of the template files, maybe
themes/default/templates/browse.tmpl.
If I were doing it, I think I'd implement the poll feature as a plugin.
You can invoke plugins from either the wiki-text (edited part of the
page) or from one of the templates.
> - How to automate delete page base on some parameters(ie. < 10 hits for a
> period of time)
That's tougher. There really aren't any hooks for asynchronous
actions. A quick-and-dirty way to do it might be to write a
seperate top-level php script which you would invoke periodically
via a cron job.