Thank you, Wayne!
This actually looks a lot easier and better than the old system, and seems more logical, too. :) |
vB4 as come a long way with coding. Much appreciated Wayne! :)
|
I think it became more complicated ! :(
|
Not all that different. Very helpful. I do like the comment options though very much.
TY |
Thank you :up:
|
Quote:
|
have anybody try to use
PHP Code:
|
It isn't $is_member_of, it's simply is_member_of (no $ in front).
|
Something to be aware of with the conditional tag.
Whereas in vb3.x, fetch_template was typically eval()'d in the scope of the function that created the template output, in vb4, the template is eval()'d inside another function. Since the conditional test refers to standard php variables rather than the vb registered template variables, this can create a situation where the variable you are testing is not in scope, so the test will always fail. For example: PHP Code:
PHP Code:
You can get round this by explicitly referring to the registered variable in the vb:if condition as follows: PHP Code:
|
Thanks for posting that, Andrew. I haven't run into that problem yet, but I know I will and I'll be pulling my hair out and then I'll remember this post of yours and the world will be right again. :)
|
All times are GMT. The time now is 03:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|