solved Mogul Skin Side Menu Issue

Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
In the mobile view, I just noticed there is no signup or login options in the side menu.

That can't be right and I am using an unmodified version 1.3.8 of jrMogul/menu_side.tpl
updated by @ken-rich: 02/15/21 03:06:23PM
paul
@paul
6 years ago
4,335 posts
Am seeing this as well and will get it fixed up.
In the short term, add this code at line 12 of the menu_side.tpl template, between the 'User menu entries' and 'Cart' blocks.

            {if !jrUser_is_logged_in()}
                {jrCore_module_url module="jrUser" assign="uurl"}
                {if $_conf.jrCore_maintenance_mode != 'on' && $_conf.jrUser_signup_on == 'on'}
                    <li><a href="{$jamroom_url}/{$uurl}/signup">
                            {jrCore_lang skin="jrMogul" id="50" default="Sign Up"}
                        </a></li>
                {/if}
                <li><a href="{$jamroom_url}/{$uurl}/login">
                        {jrCore_lang skin="jrMogul" id="49" default="Login"}
                    </a></li>
            {/if}

Thanks for letting us know.


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
Hi Paul,

When I tried that I got this error:
There are syntax error(s) in your template - please fix and try again:
Syntax error in template "data/cache/jrCore/test_template_09asayh1.tpl" on line 18 "{if $_conf.jrCore_maintenance_mode != 'on' && $_conf.jrUser_signup_on == 'on'}" - Unexpected ";", expected one of: "}
paul
@paul
6 years ago
4,335 posts
Be sure that you have copied the code correctly and that you have put it in the right place - See below.

            {* User menu entries *}
            {if jrCore_module_is_active('jrSiteBuilder')}
                {jrSiteBuilder_menu}
            {/if}

            {*** Put login and signup code here ***}
            {if !jrUser_is_logged_in()}
                {jrCore_module_url module="jrUser" assign="uurl"}
                {if $_conf.jrCore_maintenance_mode != 'on' && $_conf.jrUser_signup_on == 'on'}
                    <li><a href="{$jamroom_url}/{$uurl}/signup">
                            {jrCore_lang skin="jrMogul" id="50" default="Sign Up"}
                        </a></li>
                {/if}
                <li><a href="{$jamroom_url}/{$uurl}/login">
                        {jrCore_lang skin="jrMogul" id="49" default="Login"}
                    </a></li>
            {/if}
            {*** /Put login and signup code here ***}

            {* Cart *}
            {if jrCore_module_is_active('jrPayment')}
                <!-- jrPayment_cart_html -->
            {elseif jrCore_module_is_active('jrFoxyCart') && strlen($_conf.jrFoxyCart_api_key) > 0}
                <li>
                    {jrCore_lang skin="jrMogul" id=35 default="Cart" assign="ct"}
                    <a href="{$_conf.jrFoxyCart_store_domain}/cart?cart=view">{$ct}</a>
                    <span id="fc_minicart" style="display:none"><span id="fc_quantity"></span></span>
                </li>
            {/if}



--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
Hi Paul,

I made sure of it but still got the same error.
paul
@paul
6 years ago
4,335 posts
Let me know in a ticket what site this is on, and its admin login so that I can check it out.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
Great - but I can't post that in the forum. What is the safest way to send the credentials for admin?
paul
@paul
6 years ago
4,335 posts
Just email it to support[at]jamroom[dot]net


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
OK - doing that now.
paul
@paul
6 years ago
4,335 posts
Received the login.
I've just done what I detailed above and it worked straight away.
I've left the menu_side.tpl template modified so that you can check it out.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
6 years ago
926 posts
Hi Paul,

Thank you very much. I am at a loss to explain why I got an error and you didn't. I copied and pasted what you posted without any edits or typing, so it is not making sense to me.

At any rate, all is well that ends well. Thanks again.

Tags