Jump to content

[Resolved] Topbar Language & Currency Container displays since upgrade


CoderJim

Recommended Posts

Upgraded to 6.0.10 and now the Language & Currency Container displays the 'selects' which I do not want, however behind the display it defaults to US and US$ - yes.

I find the code for this in the main.php however, and within the Lingerie Skin, this specific page was not altered in the process so I'm not sure where this code snippet is coming from. No other pages in this skin were altered either.

Any help would be appreciated very much.

Lingerie Skin

Link to comment
Share on other sites

"In the Lingerie Skin, this specific page was not altered in the process."

The upgrade process? Had you made changes to the Lingerie skin to suppress the display of the currency and language selectors?

If so, please review for us the changes you made to the Lingerie template main.php.

Do you recall making any changes in /classes/gui.class.php?

 

Link to comment
Share on other sites

No changes made to gui.classes.php

The original build had this in the main.php

<div class="container" id="container">
         <div  class="row" id="topbar">
         {if isset($LANGUAGE)}<div class="u2">{$LANGUAGE}</div>{/if}
        {if isset($CURRENCY)}<div class="u1">{$CURRENCY}</div>{/if}
        <div id="topLeft">{$SESSION}</div>
         <div id="topRight">{$SITE_DOCS}</div> <-- missing in current, was working, page
         </div>

The only difference between that and before this occurred is the line noted below
      <div id="topRight">{$SITE_DOCS}</div> --> was deleted

Perhaps we can suppress display?

I did not do anything to change this container. That said, it's possible that somewhere else I might have effected it but I have no idea.

Thanks

Lingerie Skin

Link to comment
Share on other sites

There would have been a change needed to the Lingerie skin to have suppressed these indicators. Either in the main.php template, or in each of the box.language.php and box.currency.php files.

Regardless, to supress the entire box, find:

In main.php:
{if isset($LANGUAGE)}<div class="u2">{$LANGUAGE}</div>{/if}
{if isset($CURRENCY)}<div class="u1">{$CURRENCY}</div>{/if}

Change to:
{if false && isset($LANGUAGE)}<div class="u2">{$LANGUAGE}</div>{/if}
{if false && isset($CURRENCY)}<div class="u1">{$CURRENCY}</div>{/if}

This keeps the code in a state easily undone -- the false makes the expression to not show the HTML.

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.

Guest
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...