Member
Member
atomicmak   2013-08-14, 06:38
#1

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

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

Member
Member
atomicmak   2013-08-14, 12:08
#2

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.

Administrator
Administrator
acrylian   2013-08-14, 12:54
#3

You need to make sure that the theme used (which you didn't tell) has calls for the codeblock you are trying to use.

Member
Member
atomicmak   2013-08-14, 14:09
#4

I use zpSkeleton

Administrator
Administrator
acrylian   2013-08-14, 16:00
#5

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.

Member
Member
sbillard   2013-08-14, 17:52
#6

Be sure to delete the code from codeblock 0 after you have moved it to codeblock 1.

Member
Member
atomicmak   2013-08-23, 11:21
#7

Thanks sbillard.
I've did it tried but still no luck to appear the listing.

Administrator
Administrator
acrylian   2013-08-23, 11:34
#8

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.

Member
Member
gjr   2013-08-23, 13:52
#9

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".

Administrator
Administrator
acrylian   2013-08-23, 14:52
#10

Of course, there is no codeblock 0 anymore. How you confuse yourself :-)

Member
Member
sbillard   2013-08-23, 17:04
#11

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.

Member
Member
atomicmak   2013-08-27, 16:23
#12

so what can be trick to appear old way listing in frontend ? as currently I see 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.

Member
Member
sbillard   2013-08-27, 16:54
#13

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.