Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ Forum ➜ Test ➜ Testing templates

Testing templates

Posting of new messages is disabled at present.

Refresh page


Pages: 1 2  3  4  5  

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Wed 19 Aug 2009 01:24 AM (UTC)

Amended on Wed 19 Aug 2009 04:02 AM (UTC) by Nick Gammon

Message
Cool new feature (see http://mushclient.com/templates)

Template:faq Please read the MUSHclient FAQ.


Template:faq=16 Please read the MUSHclient FAQ - point 16.




Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.


Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.


Template:function=ColourNote ColourNote

The documentation for the ColourNote script function is available online. It is also in the MUSHclient help file.



Template:bug Please help us by advising:
  • The version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
  • A copy of the trigger, alias or timer you were using (see Copying XML)
  • The output from the MUD that caused the problem
  • The error message, if any, that you got (or other relevant output)


Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


Template:codetag To make your code more readable please use [code] tags as described here.


Template:scripting Scripting tutorial

There is extensive information about scripting in MUSHclient at http://mushclient.com/scripting. This includes screen shots and examples.



Template:saveplugin=ConsiderMobs To save and install the ConsiderMobs plugin do this:
  1. Copy between the lines below (to the Clipboard)
  2. Open a text editor (such as Notepad) and paste the plugin into it
  3. Save to disk on your PC, preferably in your plugins directory, as ConsiderMobs.xml
  4. Go to the MUSHclient File menu -> Plugins
  5. Click "Add"
  6. Choose the file ConsiderMobs.xml (which you just saved in step 3) as a plugin
  7. Click "Close"


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #1 on Wed 19 Aug 2009 03:09 AM (UTC)
Message
Looks great!

Just a few thoughts on the [saveplugin] template though.

1. Plugins don't NEED to be in the plugin directory, they can be loaded from anywhere you select them from the plugins dialog.
2. The default plugin directory can change, which is what GetInfo(60) is for.
3. Writing userdata to the program files directory has been Bad Form for a very long time, and I'll continue to nag about it so that it changes and "the developer stops having bull#$%& problems with Vista" (and Windows 7). :D

I'd remove step 3, and insert a step between the present steps 5. and 6. to "Navigate to where you saved the [whatever].xml file."
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #2 on Wed 19 Aug 2009 03:38 AM (UTC)
Message
What do you suggest the suggested directory be, then?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 19 Aug 2009 03:39 AM (UTC)
Message
These templates are in the database, BTW, so it is easy to change them or add more.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #4 on Wed 19 Aug 2009 03:44 AM (UTC)

Amended on Wed 19 Aug 2009 04:04 AM (UTC) by Nick Gammon

Message
Template:regexp Regular expressions
  • Regular expressions (as used in triggers and aliases) are documented on the Regular expression tips forum page.
  • Also see how Lua string matching patterns work, as documented on the Lua string.find page.
SmaugFUSS (Fixed Up Smaug Source)

The SmaugFUSS reference site is http://www.smaugmuds.org/.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #5 on Wed 19 Aug 2009 04:06 AM (UTC)
Message
If you wanted to parallel how web browsers, and Office applications handle plugins, The Application Data directory is the place for plugins and the globalpreferences.sqlitedb. Although I rather like that MC looks for the db in the startup directory.

Worlds, Scripts, and Logs should be under My Documents.

I posted the CSIDLs in another thread the last time I nagged about this :)

I'd suggest having the installer create a MyDocuments\MushClient directory, with the worlds and logs directory made under that. The shortcut could point to that dir as the startup.


Another thought would be to add an "Install from Clipboard" button to the "Plugins..." dialog that is analogous to the Paste button in the alias, timers, and Triggers dialogs. You've already done the logic to check the clipboard contents for valid xml. Adding a check for <plugin> tags should be minimal.






Nit picky point... Lua's official terminology is that the string library has "Patterns", as it's not a full RegExp implementation (lacking "or" i.e. "|", look aheads/behinds and atoms)
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #6 on Wed 19 Aug 2009 04:18 AM (UTC)
Message
Amended both of them slightly.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Blainer   (191 posts)  Bio
Date Reply #7 on Wed 19 Aug 2009 04:25 AM (UTC)
Message
They look great!
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #8 on Wed 19 Aug 2009 04:33 AM (UTC)

Amended on Wed 19 Aug 2009 05:16 AM (UTC) by Nick Gammon

Message
Thanks! I am pretty happy with them. And another one:

Please try searching this forum.


Please try searching this forum for the phrase "stat roller".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #9 on Wed 19 Aug 2009 05:09 AM (UTC)
Message
Can the [search=FOO] ones forward to http://www.lmgtfy.com/?q=site%3agammon.com.au+FOO ? ;)
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #10 on Wed 19 Aug 2009 05:18 AM (UTC)
Message
Well I would rather keep it onsite, but I have changed the search to do a forum search of the requested word(s).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #11 on Wed 19 Aug 2009 06:22 AM (UTC)
Message
Let Me Google That For You is a rather snarky response anyway.

The [search] tags are going to cause problems eventually, since threads that are answered with the template start showing up in the search results, since all those keywords are in the template. The signal to noise ratio will drop heavily.

The other thing is a matter of perception and community... The problem with searches is that you have to know what you're searching for. A newer user may not have the terminology down to search effectively. There's also the human aspect too, someone asking for help on something and getting someone-else's answer, how ever pertinent, feels like a blow off. Won't replies with just [search] in them come across as "don't waste my time"?

Which, hey, Mushclient has been made freely available and open source, so any expectations about your time is rude; but appreciation doesn't work when it's demanded...

I dunno... perhaps I'm reading too much 'metadata' and subtext into things... Must be because of working with the help file's index for the past week... ;)
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #12 on Wed 19 Aug 2009 06:57 AM (UTC)
Message
You have a point about how posts which merely request information on (say) a stat roller will show up in a search for stat rollers. Not quite sure how you can distinguish, in a search, between wanting to know something, and providing the answer. Maybe, do what Google does, and rank the results based on the number of views (I know Google doesn't do that exactly). That might work.

I know what you mean about not "blowing people off" with a stock response, but sometimes it is hard to keep calm when someone posts a question in a section where they are clearly asked for the MUSHclient version number, a copy of what they did, and a copy of the error message, and they come up with this:

Quote:

I tried to get xxx to work today and got an error message. Why is that?


No version, no detailed description about what they did, no copy of the error message. I try to be civil, but I'm afraid that really terse postings like that are likely to get a [version] response from now on.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #13 on Wed 19 Aug 2009 07:06 AM (UTC)
Message
Terse requests call for terse responses, eh?

On the topic of search and the [ search] template, I was thinking the search could ignore matched terms within double-brackets, but that would only be easy if the search system used regex...

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #14 on Wed 19 Aug 2009 07:21 AM (UTC)
Message
Yes that might work, but probably sorting into most-viewed order would tend to put the pages with the answer ahead of the pages with the question.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


214,279 views.

This is page 1, subject is 5 pages long: 1 2  3  4  5  [Next page]

Posting of new messages is disabled at present.

Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.