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.
Editing Smarty plugins
Hi all,
I am trying to edit the {signinout_link} Smarty tag in my master file. I found the plugin that controls this signout link within the Smarty/plugins folder.
Is there a way to keep this within my theme folder rather than editing the existing Smarty plugin? Im just trying to keep all changes within my custom theme incase of errors updating Vanilla in the future?
Also, there is a class applied to the signinout link, 'SignInPopup'. Can somebody tell me where this class is applied when using the smarty tag: {signinout_link}?
Thanks
I am trying to edit the {signinout_link} Smarty tag in my master file. I found the plugin that controls this signout link within the Smarty/plugins folder.
Is there a way to keep this within my theme folder rather than editing the existing Smarty plugin? Im just trying to keep all changes within my custom theme incase of errors updating Vanilla in the future?
Also, there is a class applied to the signinout link, 'SignInPopup'. Can somebody tell me where this class is applied when using the smarty tag: {signinout_link}?
Thanks
Tagged:
0
Answers
Hm, over a year ago and still no response to the Smarty plugin modification question. Well, if I can find out (I'm trying to modify one of the main menu items, {home_link}) I'll come post the solution here as well.
@sottwell
the smarty stuff is a bit mysterious.
You could create your won smarty plugin, then you could call that plugin from the theme (that would isolate the function to your theme). Other themes would use the default. You could add your own class, or entirely replace %class. E.g. if you put a different class in it would prevent a signin popup from occurring and create a regular signin page.
This might also help people with the password fillin the blank problem that occurs with the signin popup on some browsers.
what are you trying to do
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
you can also create your own custom links
<a href="{link path="/entry/signin"}" class="SignInPopup">Have an account? <i class="icon-signin"> </i> <b>Sign in </b>
ala kaspersager's bootstrap theme.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
also here for an example and more docs...
http://vanillaforums.org/discussion/comment/167422/#Comment_167422
http://vanillaforums.org/discussion/comment/162608/#Comment_162608
http://vanillaforums.org/discussion/20533/solved-documentation-smarty-templates-default-master-tpl-usage-question#latest
http://vanillaforums.com/blog/help/vanilla-template-tags/
http://vanillaforums.org/docs/featuresaddons-pluginscustomtheme
http://vanillaforums.com/blog/help/how-to-use-custom-theme-part-1-edit-html/
http://www.smarty.net/docsv2/en/language.basic.syntax.tpl
http://www.smarty.net/docsv2/en/language.function.literal
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.