Member
Member
TheTraderBoss   26-02-2012, 20:40
#1

Hi,

I want to add additonal codeblocks to ZenPage. The current theme that I am using. I went zp-core, and extensions and searched for codeblocks copied copied and pasted the lines that added another for codeblock 4 and 5. it did not work.

If you could please what files and code needs to be changed to add additional code blocks in all the sections that have them in them. gallery, pages, alblums, images etc. would be greatly appreciated.

Best to you,
Bruce

Member
Member
sbillard   26-02-2012, 22:17
#2

[list]
[]admin-edit.php
[
]admin-functions.php
[]zenpage/admin-edit.php
[
]zenpage/admin-functions.php
[]admin-options.php
[
]class-gallery.php
[]classes.php
[
]template-functions.php
[/list]

Administrator
Administrator
acrylian   27-02-2012, 11:06
#3

Items have max. 3 codeblocks. As sbillard indicated you need to modify the script to get more. Of course you need also to change the database for that and do a bit of coding. Needless to say that you will get problems with updates as your changes will be overriden.

Member
Member
sbillard   27-02-2012, 22:20
#4

Seem like this is a good extension. There is now an implementation in the development stream for an unlimited number of codeblocks.

You can try it after tonight's nightly build: just use the Development files.

Administrator
Administrator
acrylian   28-02-2012, 11:11
#5

Great, agreed, maybe an idea to do have that option for custom fields as well.

Administrator
Administrator
fretzl   28-02-2012, 12:30
#6

Both would be great additions :-)

Administrator
Administrator
acrylian   28-02-2012, 12:55
#7

It is actually possible to do that via a filter already. There is even an example plugin somewhere. I meant to write a plugin for that sometime but well, there is a list with things (two themes I didn't get to finish as well yet). Too less time...:-)

Member
Member
sbillard   28-02-2012, 18:01
#8

I do not think we will change the custom field. Really, at this point it would make more sense to just use a codeblock field for general storage. And such a change will most likely break existing uses of the custom field.

Member
Member
TheTraderBoss   22-03-2012, 01:09
#9

Please forgive my manners, thank you very much for your response, I have yet to doing any modifications. I do very much appreciate your work.

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