quote:
Originally posted by Mattike
quote:
Originally posted by CookieRevised
1) When you use tags in your countdown script as placeholders, use "n" as the shortcut for minutes, not "m". This may seem unlogic at first, but it is actually more consistant with many other tools and you wont have problems when you add a month abbrivation.
Err... strange, but ok, I can do that
At one point you will recieve requests to add months, years and weeks (just as every other countdown plugin/script has recieved), you will be thankfull that you used "n" for minutes.
(and "n" is also used in all the other big official programming lanuages for minutes btw, for the same reasons)
quote:
Originally posted by Mattike
Hmm... I don't know what anyone has to do with %d, but no problem.
hehe, me neither but people are strange beings sometimes
. Anyways, it is easy to implement and is another "feature" if you like. Anticipating such things can be good.
quote:
Originally posted by Mattike
quote:
Originally posted by CookieRevised
5) In reference to 4, make it possible that a user can use also use the countdown tag as a normal Plus! tag in text in a conversation (thus: (!COUNTDOWN) ) and thus that it will be replaced with that countdown string.
I tried it once, but that just got messed up. I can try again, ofcourse.
use the ChatWndReceiveMessage event. If the message contains the tag, replace the tag. It is actually extremely simple to make.
And the code/method to replace the tag is already present in your script anyways. Or it should be: a function which simply parses and returns the current %countdown% text.
Note that when you replace stuff in text messages you should be carefull in not replacing a text with a way longer text or the message might get too long, but actually that is the problem of the user and it's the user who should be aware of this though. You shouldn't worry about this.
quote:
Originally posted by Mattike
quote:
Originally posted by CookieRevised
- Make it possible that people can choose for both changing their nick and PSM.
That means checkboxes... well, why not?
But how would I set the Text then?
what text?
Using checkboxes is almost no different than what you have now. Only you check each option and perform the stuff you do already for each.
Instead of:
If (radiobutton == 1) ChangeNick() Else ChangePSM()
you do:
If (checkbox1 == true) ChangeNick()
If (checkbox2 == true) ChangePSM()
quote:
Originally posted by Mattike
quote:
Originally posted by CookieRevised
- Make it possible that people can save multiple countdown settings.
You mean, saving whole setting blocks? I don't think that'll be included very soon...
No, not whole setting blocks, simply the text strings they entered is enough, see the Holiday Counter Plugin for a very short system using editable comboboxes to do this.
Saving whole setting blocks can be nice too, but is not so much used and can actually be some troublesome to make them each time when the user only wants to change a text. A date/time is set to something else each time anyways in most cases. But a user might want to make some default strings like "xxx until newyear", "xx until the brithday of ...", "xx until my next exam", etc...