• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

module_isloggedin code replacement

New Here ,
Jul 26, 2012 Jul 26, 2012

Copy link to clipboard

Copied

Hi Guys,

I used to have script in a page, based on this code sample:

var loggedin = "{module_isloggedin}";

if  (loggedin == 1)

document.getElementById('hiddenform').style.display = "block";

but the script changed to this::

<script type="text/javascript">

                        var loggedin = "<MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true"><MM:BeginLock translatorClass="BUSINESS_CATALYST_DYNAMIC" depFiles="" BC.Token.Module="true" orig="{module_isloggedin}"><MM:DECORATION outline="Module Is User Authenticated? (0/1)" outlineId="unique" outlineForSelection="outlineForSelection" hiliteChildrenOnSelect="true">{module_isloggedin}</MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock></MM:DECORATION><MM:EndLock>";

                              if  (loggedin == 1)

                              document.getElementById('registerbutton').style.display = "none";

                    </script>

The script still functions as it should, but (was wrong) Script is not working anymore do you have any idea what happed here and if I should be concerned?

Thanks

TOPICS
Newbie Corner

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2012 Jul 26, 2012

Copy link to clipboard

Copied

LATEST

Did you open where that code is in the editor of the BC admin? Do you have a translation addon in your browser of some sort?

If yes then that is what happened. The addon injected that into the edito as you saved. Best not to code in the editor, while you can view html it is not really design for coding

By the way, you do not need to do javascript at all for that. Your using javascript to perform CSS, why not just do it with css?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines