That was so helpful. It is working now; thanks a lot!
I used $user instead of $post.
Quote:
You should also aways look at the code in the php files that is parsed prior to the template being rendered so you can see what variables are available for use
|
Would you please explain more. How can I know which php file is being parsed before an X template? I tried to search in the php files (the ones in the include folder) for the phrase "postbit_onlinestatus" but I could find any.
Another question please, I made a new template to do a similar job as the "postbit_onlinestatus" template but to handle smaller status icons. However, I do not know ho to refer to this new template in the "postbit" template or any other template. Would please explain to me how to call a custom template from others.
I am not sure though if calling the template is the proper way or is the way how it works because in the case of postbit_onlinestatus template we are not calling the template name. The call from the postbit template is $post[onlinestatus]. So does "onlinestatus" refer to the a variable or a template?
Sorry for bothering you with all of my questions. I am a new user and I need your help.
Thanks