OK... this is likely incredibly simple... but I'm a total newb and simply don't know who to do it.
I need to extract a string from a custom user field, convert it to an integer, do some math on it, then write the modified integer back to the profile field as a string.
Also, I need it to check that the string is indeed just a number and not text, because some users will have text in that field rather than numbers.
The second question is a bit harder.
When an option in my vB is called, I want it to set one of the custom userfields with the current date and time...
And then... I need code that checks the timestamp in that field to see whether 30 days have passed or not. If they have, then it performs another function.
The reason behind this is that many custom titles in my forum are temporary in nature and only last 30 days. I'm looking for a way to automatically make them expire and reset to default.
Can anyone post some code that would do these things?
I need to extract a string from a custom user field, convert it to an integer, do some math on it, then write the modified integer back to the profile field as a string.
Also, I need it to check that the string is indeed just a number and not text, because some users will have text in that field rather than numbers.
The second question is a bit harder.
When an option in my vB is called, I want it to set one of the custom userfields with the current date and time...
And then... I need code that checks the timestamp in that field to see whether 30 days have passed or not. If they have, then it performs another function.
The reason behind this is that many custom titles in my forum are temporary in nature and only last 30 days. I'm looking for a way to automatically make them expire and reset to default.
Can anyone post some code that would do these things?
Comment