Announcement

Collapse
No announcement yet.

PHP Coding Errors Limiting Description

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP Coding Errors Limiting Description

    OK i hope someone here will have an idea on how to resolve this one

    i am using the hack for the mini best seller layout out that reduces the text to 10 words, i have imported a site in v9 to mess with and i get errors when uploading, it is the hack but i dont know how to fix it my knowledge of php is ermmm limited to say the least.

    the actual hack works without any problems but when i click on the error it takes me to the block statement <actinic:block php="true" >

    Thanks in advance
    D

    #2
    Have you hard coded it into the design layout Daz or are you using it inside !!<<ACTINIC>>!! content?

    (When will they listen and stop making us use !!<<>>!! with HTML
    Affordable solutions for busy professionals.
    Website Maintenance | UK Web Hosting

    Comment


      #3
      Nope hardcoded into the minibest sellers layout

      D

      Comment


        #4
        Course you have....what was I thinking

        Give me sometime and I will replicate a similar set up here and report back mate.

        How goes it BTW...
        Affordable solutions for busy professionals.
        Website Maintenance | UK Web Hosting

        Comment


          #5
          it gos ok

          it annoys me that this works fine in V8, but actinic insists there is an error when there is not, the improved error handling is ermm better identification but incorrect results

          D

          Comment


            #6
            Originally posted by Darren B
            it gos ok

            it annoys me that this works fine in V8, but actinic insists there is an error when there is not, the improved error handling is ermm better identification but incorrect results

            D
            Jury still out here mate on v9, seems bloated and sluggish when dealing with high volume stores...seems to have been made to look pretty rather than effective with some serious ommissions from the wishlist/dev requests (erg cost price).

            Anyho, BOT, been working a lot with PHP lately and have it running smooth as you say in V8 but will pop this in for you and hopefully spot something, can you PM me the code segment you are using mate please so I can compare (if that is OK).

            Regards
            Affordable solutions for busy professionals.
            Website Maintenance | UK Web Hosting

            Comment


              #7
              not had any problems with mine.
              I use the php hack, to limit the text, in my homepage marketing lists and V9 is not reporting any coding errors for me.

              errrrrrrrr....you broke it?

              *runs and hides*
              Tracey

              Comment


                #8
                dont you bloody start Bill had a pop yesterday

                D

                Comment


                  #9
                  Originally posted by Darren B
                  dont you bloody start Bill had a pop yesterday

                  D
                  pmsl
                  you saw that then?
                  Made me chuckle, that did!
                  Tracey

                  Comment


                    #10
                    Working OK here Dazza

                    Can you send me that code so I can see what differs mate please.

                    Wotcha Trace....how ya doin?
                    Affordable solutions for busy professionals.
                    Website Maintenance | UK Web Hosting

                    Comment


                      #11
                      This is the code im using

                      Code:
                      <p class="text_product_small_info"><actinic:block php="true" >
                      $sShort = "";
                      $nCount = 0;
                      $sOriginal = "<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />"; 
                      foreach(explode(" ", $sOriginal) as $sWord)
                          {
                         if ($nCount > 10)
                             {
                             $sShort .= "...";
                             break;
                             }
                         $sShort .= $sWord . " ";
                         $nCount++;
                         }
                         
                      echo $sShort;
                      </actinic:block><br>
                      Probably all wrong
                      D

                      Comment


                        #12
                        Try
                        Code:
                        $sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
                        If you use encoding="perl" you should be using single quotes around the variable.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          and I can confirm that mine IS in single quotes which could account for why I don't have the error
                          Tracey

                          Comment


                            #14
                            Norman your a star

                            Thank you, well thats something for me to remember in the future, bloody double quotes

                            D

                            Comment


                              #15
                              Dazza....

                              remember actinic has always been awkward.

                              Remember the db image fiasco of 2005 \ or / you decided LOL.

                              Alls well that ends well.
                              Affordable solutions for busy professionals.
                              Website Maintenance | UK Web Hosting

                              Comment

                              Working...
                              X