06-16-2012, 12:00 PM
06-16-2012, 02:00 PM
That did it! Thanks.
Not sure how I lived before template conditionals ...
Not sure how I lived before template conditionals ...
06-21-2012, 02:36 AM
How to check current action in usercp, e.g. action=subscriptions? And to also check if it is usercp.php with NO action.
06-21-2012, 09:20 AM
Code:
|
Code:
|
If you're dealing a lot with conditionals, it may help to have some basic knowledge in PHP by the way.
06-21-2012, 10:25 AM
Great, thank you Zinga!
Yes, I'd really like to learn some PHP ... right now I am working full time and have to finish this project by July 1, so it's really a crunch for me. I didn't expect to use Template Conditionals so much, but it's very useful. Once the new version is out I can take some time to start learning PHP.
I'm sure my questions are becoming exasperating, which is why I went looking for a donation option at least haha
Yes, I'd really like to learn some PHP ... right now I am working full time and have to finish this project by July 1, so it's really a crunch for me. I didn't expect to use Template Conditionals so much, but it's very useful. Once the new version is out I can take some time to start learning PHP.
I'm sure my questions are becoming exasperating, which is why I went looking for a donation option at least haha
07-16-2012, 03:06 AM
Is there a way to check the character count of a message, or to check if there is any message at all, basically? I want to hide the div that contains the message if there was no message written.
07-16-2012, 04:17 AM
No sure if this will work:
PHP Code:
|
Or maybe:
PHP Code:
|
Or maybe setting up a variable with template conditionals, something I have never done.
07-17-2012, 01:37 AM
second one works, thanks! i assumed it wouldn't work but after reading you also suggest it i decided to try it haha