That sounds great - thanks very much. I need the default text in the form field to be:
User/something_unique_each_time_the_page_loads
It would be great if you could also have the extension automatically enter the user's username (users need to be logged-in to contribute on the wiki and so will always have a username), although this is not critical as I'm currently requesting that users manually change 'User' to their username. I guess the number of characters in the random part would need to be at least three or four, to avoid the same sequence being generated twice. The advantage of using the date and time was that it would of course simply be impossible for that to happen.
Thanks again!
On Thu, May 22, 2008 at 5:44 PM, Chris Riesen chris.riesen@gmail.com wrote:
If I were you, I'd make a copy of the extension, rename it, then hard code it to use a random value every time the extension is called (output of the time() function is the thing you are using now). If you want to, I think I could modify the current code and post it on MediaWiki.org for you.
- Chris
On Thu, May 22, 2008 at 10:33 AM, Derrick Farnell derrick.farnell@gmail.com wrote:
Do you mean code that I would add to LocalSettings.php and would affect
the
whole site? I only want this affect the page using this extension. Am I right in thinking that disabling caching slows the site down?
On Thu, May 22, 2008 at 5:29 PM, 65s.mg@atlas.cz wrote:
What about to use $wgParser instead? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l