Member
Member
paolomig   2013-03-26, 19:05
#1
Hi,
I'm new in this forum. I installed zpArdoise theme on my site and i can't add some code in code block pages. All the code that i write in the block is not executed.
Can you help me?
Thanks
Member
Member
sbillard   2013-03-26, 19:09
#2
Two things are needed.

First your theme must support the particular codeblock by issuing a `printCodeblock(x)` function call where `x` is the number of the codeblock.

Second, if you mean PHP code, you have to inclose it in php tags.
Member
Member
paolomig   2013-03-26, 19:49
#3
Thanks for the quikly reply. I'm using zpArdoise theme and i don't know if it support the codeblock or if necessary enable it.
I'm trying to add this PHP code in the homepage but it doesn't execute:
<?php
if(function_exists(printGslideshow')) {
$albumobject = new Album($galleryobject, "album");
$imageobject = newImage($albumobject, "image.jpg");
printGslideshow($albumobject, $imageobject,true,false);
}
?>
Member
Member
sbillard   2013-03-26, 20:00
#4
You should always include the theme in the topic when using third party themes so its author can comment. I do not know this theme, so you would have to search to see if it uses `printCodeblock()` and if so what code blocks it supports.
Administrator
Administrator
acrylian   2013-03-26, 20:29
#5
Since it may be that you cannot edit the post afterwards, I changed the title.
Administrator
Administrator
fretzl   2013-03-26, 20:29
#6
zpArdoise does not use `printCodeblock()` on the homepage.

So, in `gallery.php` place `printCodeblock(#)` anywhere you want the code from your codeblock to appear. (`#` is the number of the codeblock used)
Member
Member
vincent3569   2013-03-26, 21:47
#7
hi
with zpArdoise, the home page is a unpublished page created with zenpage plugin, and pages support `printCodeblock(1)`.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.