codeblock

I had made a page previously working where I had some text and added CodeBlock through admin.

<?php printAlbumMenu( "list", "true", "", "", "", "","", "true",""); ?>

now after upgrading to latest it does not work.
Any help how to reactivate it ?

Comments

  • in admin under pages I am getting this.
    "Codeblock 0 is deprecated."
    when i put same code in 1 instead 0 after sometime it resets and go in 0 and shows same error.
  • acrylian Administrator, Developer
    You need to make sure that the theme used (which you didn't tell) has calls for the codeblock you are trying to use.
  • I use zpSkeleton
  • acrylian Administrator, Developer
    Sorry, no official theme, I am not that familiar with the theme. Probably it has not been updated regarding that. Best you look for the codeblock calls yourself.
  • Be sure to delete the code from codeblock 0 after you have moved it to codeblock 1.
  • Thanks sbillard.
    I've did it tried but still no luck to appear the listing.
  • acrylian Administrator, Developer
    If you use codeblock 0 on the backend you need to make sure that there is a call to `printCodeblock(0)` on the theme where you want it, too.
  • gjr Member
    I believe zpSkeleton is using the default:
    `

    printCodeblock();

    `

    which I believe is codeblock 1 now. As they say above "0" use to be the default but it is now "1".
  • acrylian Administrator, Developer
    Of course, there is no codeblock 0 anymore. How you confuse yourself :-)
  • To set the record straight:

    Codeblock 0 is deprecated (not non existent) If there are data stored in codeblock 0 it will be available (there will be a tab for it) and editable. You will also get the codeblock 0 deprecated message.

    The only way to clear this is to remove any content from codeblock 0. If this is not working you need to examine your error logs to find what is failing.
  • so what can be trick to appear old way listing in frontend ? as currently I see </P> at end of source code of page which is I think some way the code is breaking and not completing the html rendering.

    Sorry but am no programmer so dont understand just had this functionality working on previous version theme and zenphoto both.

    Please guide.
  • Seeing the `` is an indication that the text has been html encoded (a normal procedure for handling arbitrary text.) If this is still about the codeblock text you quote originally, the `` did not come from the codeblock.

    Regrettably, if you wish to use a feature you have to acquire the need knowledge. At any rate, save for the deprecation of codeblock zero there has not been changes in codeblock handling.
Sign In or Register to comment.