The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Code error.

View previous topic View next topic Go down

Code error.

Post by Zuke on December 9th 2014, 4:47 pm

Hello guys, on the top of topics I have this error coming up.


Code:
script type="text/javascript">//0){$('.post--' + id).toggle(0, function(){if( $(this).is(":visible") ){$('#hidden-title--' + id).html(hiddenMsgLabel.visible);}else{$('#hidden-title--' + id).html(hiddenMsgLabel.hidden);}});}}catch(e) { }return false;};//]]>

How do I fix this, please tell me what to do.

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: Code error.

Post by Zuke on December 9th 2014, 5:09 pm

Never mind it was some viewtopic_body glitch, just fixed it. Wink

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: Code error.

Post by JScript on December 9th 2014, 5:13 pm

Hello!

I tried to reassemble this fragment of code as follows:
Code:

<script type="text/javascript">
   //<![CDATA[
   jQuery(function() {
      try {
         $('.post--' + id).toggle(0, function() {
            if ($(this).is(":visible")) {
               $('#hidden-title--' + id).html(hiddenMsgLabel.visible);
            } else {
               $('#hidden-title--' + id).html(hiddenMsgLabel.hidden);
            }
         });
      } catch (e) {
         console.log(e);
      };
      return false;
   });
   //]]>
</script>
But I'm curious how this code became that way!

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: Code error.

Post by Zuke on December 9th 2014, 5:18 pm

The theme must of went that way with a code error, but it's fixed now because I updated it to the old one again, I request a topic lock.

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: Code error.

Post by SLGray on December 9th 2014, 9:37 pm

Locked as Requested


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36742
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum