Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Help with variables
achan070
New
http://vanillaforums.org/discussion/22954/smarty-if-statement-variables-list
The following is variables for certain parts of the forum.
vanilla_categories_index vanilla_discussions_index vanilla_discussion_index vanilla_discussions_mine vanilla_drafts_index vanilla_post_edit discussion vanilla_post_discussion conversations_messages_all conversations_messages_index dashboard_activity_index dashboard_profile_notifications dashboard_profile_discussions dashboard_profile_comments dashboard_profile_edit dashboard_search_index dashboard_entry_register dashboard_entry_signin
What is the variable for the default page of the forum? (http://vanillaforums.org/discussions if we were to use this website as an example).
0
Comments
add
{debug}
to your default.master.tpl of your theme and you can find all the smarty variables
go to the page on your forum that you want to research what variables are, and then scan the variables with your eyes.
then you tell us what the $BodyID is?
you should see something like this in another window on your browser if you add {debug}
BTW, it is already explained in the link that you provided. you got the fishing rod, use it for a change.
http://vanillaforums.org/discussion/22954/smarty-if-statement-variables-list
then when you are finished debugging (finding the variable you need.
you can comment the smarty debug variable so it is not active by changing it from
actively debugging
{debug}
to commented out smarty variable
{*debug*}
you could have also just added
{$BodyID}
in the head section of your default.master.tpl and it would display the bodyid at the top of your page to find out as well.
and the link you provided explained it was the $BodyID variable, is what you were looking for.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.