We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26435
    • 1,193 Posts
    Quote from: MotSmart at May 23, 2008, 11:55 PM

    I suggest using Active@ File Recovery which helped me recover once!

    Looks like a windows product.

    -sD-
    Dr. Scotty Delicious, DFPA.
      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
      All of the above... in no specific order.


      I send pointless little messages
      • 20289
      • 958 Posts
      Yes, Normally bad things happen to HDD’s because of win laugh, you can even generate a recovery process on damaged or deleted raids and have them relocate the sectors.
        [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
        [td][Wiki] [Persian support forum]
        [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
        [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
        • 18592
        • 19 Posts
        Hi Guys,

        Sorry I’ve followed all the instructions and I’ve got stumped.

        I get an error in my preview and nothing seems to work...

        I get the following:

        Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/matd/public_html/assets/snippets/treasure_chest/treasurechest.class.php on line 679

        Any ideas?

        Cheers

        Mat-d
          • 26435
          • 1,193 Posts
          Quote from: mat-d at Jun 05, 2008, 12:38 PM

          Hi Guys,

          Sorry I’ve followed all the instructions and I’ve got stumped.

          I get an error in my preview and nothing seems to work...

          I get the following:

          Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/matd/public_html/assets/snippets/treasure_chest/treasurechest.class.php on line 679

          Any ideas?

          Cheers

          Mat-d
          PHP5
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 18756
            • 4 Posts
            I have the same error message as "mat-d":
            /public_html/assets/snippets/treasure_chest/treasurechest.class.php on line 679

            I guess an easy solution would be to use PHP5, but what if you don’t have PHP5...

            Is there a work around for PHP4?

            I would be a drag to have to change servers just because of a single short-coming. Any advice would be helpful, thanks.
              • 26435
              • 1,193 Posts
              Quote from: maxfaction at Aug 16, 2008, 01:08 PM

              I would be a drag to have to change servers just because of a single short-coming. Any advice would be helpful, thanks.

              That single shortcoming is that your server runs PHP4. Zend has officially ended support for PHP 4 (except for security updates).
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                There are a number of functions for implementing this in php 4 in the user comments here.

                http://us2.php.net/htmlspecialchars_decode

                Just because Zend is dropping support doesn’t mean a lot of people still won’t be stuck with it.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 26435
                  • 1,193 Posts
                  Quote from: sottwell at Aug 18, 2008, 01:53 AM

                  There are a number of functions for implementing this in php 4 in the user comments here.

                  http://us2.php.net/htmlspecialchars_decode

                  Just because Zend is dropping support doesn’t mean a lot of people still won’t be stuck with it.
                  Ok?

                  You know, Susan, PHP 6 is right around the corner (you can download the source and compile a snapshot here http://snaps.php.net/ if you are so inclined), yet look at the shared hosting market. Many providers are still offering PHP 4 as the default. PHP 5 is in a very mature part of it’s life cycle, and PHP 6 is rapidly progressing.

                  The reason PHP 4 is still so prominent is because of developers and administrators who share your attitude, insisting that it was better to support an older version rather than upgrade our servers.

                  You can code however you want. I don’t care, but just because it is possible to implement htmlspecialchars_decode in PHP 4 doesn’t mean that I necessarily want to do that. I, and many other developers, are actively trying to GET RID of PHP 4.
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Wasn’t suggesting you should. But anybody who needs it can add one of the functions from the PHP documentation comments.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 24531
                      • 213 Posts
                      i’ve managed to decode js for tc.
                      may be somebody need it.

                      function emptyCart() {
                          $.post(cart_doc, {
                              action: 'count'
                          },
                          function(a) {
                              cart_count = eval("(" + a + ")");
                              if (!cart_count.length) {
                                  tb_remove();
                                  $(cart_el).animate({
                                      opacity: '1.0'
                                  },
                                  'slow',
                                  function() {
                                      $(cart_el).html('')
                                  });
                                  return false
                              } else {
                                  if (confirm(cart_warn)) {
                                      $.post(cart_doc, {
                                          action: 'empty'
                                      });
                                      $(cart_el).animate({
                                          opacity: '1.0'
                                      },
                                      'slow',
                                      function() {
                                          $(cart_el).html('')
                                      })
                                  }
                              }
                          });
                          return false
                      }
                      function checkout(a) {
                          TB_remove();
                          jQuery('#treasureChestCheckout').remove();
                          jQuery('<div id="treasureChestCheckout">' + a + '</div>').appendTo('body').hide();
                          document.paypal.submit()
                      }
                      function cartCount() {
                          $.post(cart_doc, {
                              action: 'count'
                          },
                          function(a) {
                              cart_count = eval("(" + a + ")");
                              if (cart_count.length) {
                                  cart_string = '<a class="thickbox tc_view" title="' + cart_view + '" href="#" onclick="return false;">' + '<span class="tc_cart_view_text">' + cart_view + '</span><span class="tc_cart_count" class="tc_count">' + cart_count.length + '</span></a>' + '<a class="tc_cart_empty ' + class_empty + '" href="#" title="' + cart_empty + '">' + cart_empty + '</a>';
                                  $(cart_el).show().html(cart_string);
                                  $('.tc_view').click(function() {
                                      if (!cart_count.length) {
                                          emptyCart()
                                      }
                                      TB_show(cart_name, cart_doc + '&TB_iframe=true&height=350&width=500&action=view', false);
                                      return false
                                  })
                              } else {
                                  $(cart_el).hide();
                                  return false
                              }
                              $('a.' + class_empty).click(emptyCart);
                              return true
                          })
                      }
                      function addToCart(a, b, c) {
                          $.post(cart_doc, {
                              action: 'add',
                              selector: b,
                              item: c
                          },
                          cartCount);
                          $(cart_el).animate({
                              opacity: '0.9'
                          },
                          'fast').animate({
                              opacity: '1.0'
                          },
                          'normal');
                          $(a).animate({
                              opacity: '1.0'
                          },
                          'fast').animate({
                              opacity: '1.0'
                          },
                          'normal');
                          return false
                      }
                      function tcConfig(a) {
                          config = eval("(" + a + ")");
                          cart_name = config['business_name'];
                          cart_view = config['cart_view'];
                          cart_empty = config['cart_empty'];
                          cart_warn = config['cart_warn'];
                          cart_el = config['cart_el'];
                          class_add = config['class_add'];
                          class_empty = config['class_empty'];
                          $('.' + class_add).click(function() {
                              addToCart(this, this.rel, this.name);
                              return false
                          });
                          cartCount()
                      }
                      function paypalForm(a) {
                          $.post(cart_doc, {
                              action: 'item_opts',
                              name: a.name,
                              value: a.value
                          });
                          op_field = a.name;
                          $('.' + op_field).val(a.value)
                      }
                      emptyCartFunction = emptyCart;
                      checkoutFunction = checkout;
                      cartCountFunction = cartCount;
                      addToCartFunction = addToCart;
                      checkoutFunction = checkout;
                      prepPaypal = paypalForm;
                      $(document).ready(function() {
                          $.post(cart_doc, {
                              action: 'config'
                          },
                          tcConfig);
                          $('.hover-info').Tooltip({
                              track: true,
                              delay: 0,
                              showURL: false,
                              fixPNG: true,
                              showBody: ' - ',
                              extraClass: 'hover',
                              top: -15,
                              left: 5
                          });
                          $('<span style="display:none;" id="treasureChestCopyright">Powered By ©Treasure Chest 1.0 by Scotty Delicious</span>').appendTo('body').hide()
                      });
                      $(document).keypress(function(e) {
                          if (e.which == 27) {
                              tb_remove();
                              cartCount()
                          }
                      });