Jump to content

Scripting issue between V5 and v6

Recommended Posts

When I upgraded from v5 to v6 I've lost part of the skin template on my site and I'm not sure why.. It's the only thing I've seen thus far that isn't working so I'm confused as to why it's not working anymore.. Below is the script I was/am using. However the links are not even showing on the site anymore, it's not even in the script and from what I'm seeing it's pulling from a different file than the previous one? Any help could be great! 


<<< ----- main.php file ----- >>> 

            <div class="u3">
            <b> <font face="Open Sans Condensed" size="4">Additional Links </b></font><hr>

                {if !$CONFIG.disable_mobile_skin}
    <font color="#FFFFFF">&bull;&nbsp;</font><a href="https://tundravalley.com/index.php?_a=document&doc_id=3">Terms & Conditions</a><br />
    <font color="#FFFFFF">&bull;&nbsp;</font><a href="https://tundravalley.com/index.php?_a=document&doc_id=4">Privacy Statement</a><br />
    <font color="#FFFFFF">&bull;&nbsp;</font><a href="https://tundravalley.com/index.php?_a=document&doc_id=12">Tundra Valley Careers</a><br />
    <font color="#FFFFFF">&bull;&nbsp;</font><a href="https://tundravalley.com/index.php?_a=contact">Contact Us</a><br />

Edited by tvgadmin
Link to comment
Share on other sites

I think CC6 dropped the configuration setting for 'disable_mobile_skin'. I do not yet know how CC6 determines if it should switch from using a non-mobile skin (such as Kurouto) to the mobile skin (such as Mobile). Nor do I yet know if there is a way to prevent CC6 from allowing that automated or manual switching to the mobile skin -- if it's allowed at all.

The links are inside an {if} block, and the condition must be evaluating to false (or rather not-true).

At the bottom of this template file, add {debug}. Then, the browser will pop-up a list of all the template variables given to the template. In the CONFIG array, see if disable_mobile_skin is present and it's value.

But it looks like you are using a responsive skin anyway. So, I think there may be a way to suppress the display of these links under certain conditions using a class setting understood by the skin controller.

In the meantime, remove {if !$CONFIG.disable_mobile_skin} and {/if}.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...