It looks like you're new here. If you want to get involved, click one of these buttons!
Can anyone shed some light? If you know the answer to anyone one of these - please reply.
items like this
{if $User.CountNotifications}
is this referencing the $Session object, $Sender object, or getting info directly from User table? Can anybody shed light on this?
{if CheckPermission('Garden.Settings.Manage')}
Can I use all functions like this, if not where are the available functions read from?
{if !$User.SignedIn}
once again - what is the $User referencing exactly?
{event name="BeforeSignInLink"}
how are these references used and integrated into app.
where would call this event and what would be the procedure?
if I wanted to pick up info from a particular table or a unique object how would the call be made in Smarty or would you have to write a function?
is this file actually called somewhere. it is located in library/vendors/SmartyPlugins.
block.permission.php
modifier.date.php
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
Answers
Time to file this one in the unanswered questions. My batting average for answered questions - approaching 0.
either the question
- doesn't make sense
- nobody knows
- nobody cares
- somebody knows but hasn't provided any info.
other variables found
{$BodyID}
{$BodyClass}
{$User.Name}
{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •how to make a comment in smarty {* the comment *}
more tags:
to display photo
{photo_link}
to display logo
{logo}
others
{user_link}
{drafts_link}
{nomobile_link}
{category_link}
if anyone wants to add these to http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla
feel free.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •solved @underdog.
question 1 somewhat - it is an associative array of 4 items retrieved through the ether - if you find out where the array is created.
to print values for $User array.
{foreach key=key item=item from=$User}
{$key} - {$item}
{/foreach}
results
Name - Peregrine
CountNotifications - 0
CountUnreadConversations - 1
SignedIn - 1
so you can use
{$User.Name} {$User.CountNotifications} {$User.CountUnreadConversations} {$User.SignedIn}
How to find all Smarty variables known to vanilla-kind.
also see http://vanillaforums.org/discussion/comment/162608/#Comment_162608
http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •