pluck
pluck 4.7 out now, download it today!

pluck support forums

for all your questions about the easiest CMS on the planet

You are not logged in.

Announcement

New registrations are disabled for some spam problems. New registrations will be avaliable soon. If you want to help to keep forum away from spam - contact us.
Please post your bug reports on Launchpad.

#1 22-05-2009 17:07:59

tokr
Member
Registered: 22-05-2009
Posts: 6

I made a module - Global Content Blocks

I've created a module and I'd like to share it. Where can I post it?
Its a global content blocks module that allows you to make a little block of content (for example a copyright line) that you can edit through the interface and include in all (or some?) pages by adding a variable to the template.
I created it for this website (website no longer exists) and am using it for the hours of operation area. The site owner can edit it and it appears on every page.

Last edited by tokr (29-07-2011 11:38:19)

Offline

#2 22-05-2009 19:48:41

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: I made a module - Global Content Blocks

tokr wrote:

I've created a module and I'd like to share it. Where can I post it?
Its a global content blocks module that allows you to make a little block of content (for example a copyright line) that you can edit through the interface and include in all (or some?) pages by adding a variable to the template.
I created it for this website (http://www.beaverlodgelibrary.ab.ca) and am using it for the hours of operation area. The site owner can edit it and it appears on every page.

The best place is http://pluck-cms.org/docs/addons:modules smile

A_Bach

Offline

#3 23-05-2009 01:01:06

jellisontech
Member
From: Maine
Registered: 10-01-2009
Posts: 99

Re: I made a module - Global Content Blocks

Please, please add it to the modules!  This is something that I've been wanting.  So cool that you figured it out!  big_smile

Offline

#4 23-05-2009 20:29:36

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: I made a module - Global Content Blocks

That sounds like a great module, very useful!

Offline

#5 23-05-2009 20:46:48

tokr
Member
Registered: 22-05-2009
Posts: 6

Re: I made a module - Global Content Blocks

I've added it to the module page. I hope that it works for everyone.
I was looking for a "submit module" button, but I couldn't find one.:)

Offline

#6 24-05-2009 07:50:37

JGMetcalfe
Member
Registered: 12-07-2008
Posts: 29

Re: I made a module - Global Content Blocks

Question?, but is Blocks.php missing from the tar file?

Warning: include(data/settings/modules/contentblocks/blocks.php) [function.include]: failed to open stream: No such file or directory in /volume1/web/Pluck/t4pluck/data/modules/contentblocks/inc_site.php on line 3

Offline

#7 24-05-2009 21:11:24

tokr
Member
Registered: 22-05-2009
Posts: 6

Re: I made a module - Global Content Blocks

JGMetcalfe wrote:

Question?, but is Blocks.php missing from the tar file?

Warning: include(data/settings/modules/contentblocks/blocks.php) [function.include]: failed to open stream: No such file or directory in /volume1/web/Pluck/t4pluck/data/modules/contentblocks/inc_site.php on line 3

blocks.php is where the user data is stored. I guess that it doesn't get created automatically. Try creating an empty blocks.php file.

(I wrote this module some time ago and I didn't test it on a clean install, so I expect there will be some bugs to work out.)

Offline

#8 25-05-2009 20:01:56

tokr
Member
Registered: 22-05-2009
Posts: 6

Re: I made a module - Global Content Blocks

Ok. so I guess that I should have tested it better. I've gone back and fixed a few errors. Let me know if you find any other problems.

Offline

#9 01-07-2009 08:23:10

poosk
Member
Registered: 12-06-2008
Posts: 10

Re: I made a module - Global Content Blocks

I installed new pluck and admin says This module is not compatible with your version of pluck, and has been disabled.

Could some one help? I'm really in need of this...

Offline

#10 01-07-2009 11:58:44

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: I made a module - Global Content Blocks

Offline

#11 01-07-2009 17:03:05

tokr
Member
Registered: 22-05-2009
Posts: 6

Re: I made a module - Global Content Blocks

I've updated module_info.php, so if you download the module now it should work with pluck 4.6.3

Offline

#12 03-07-2009 08:55:42

poosk
Member
Registered: 12-06-2008
Posts: 10

Re: I made a module - Global Content Blocks

cheers... still some problems.. I think the package could be missing a file?

Warning: fopen(data/settings/modules/contentblocks/blocks.php) [function.fopen]: failed to open stream: No such file or directory in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 12

Warning: fputs(): supplied argument is not a valid stream resource in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 13

Warning: fputs(): supplied argument is not a valid stream resource in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 14

Warning: fputs(): supplied argument is not a valid stream resource in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 15

Warning: fputs(): supplied argument is not a valid stream resource in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 16

Warning: fclose(): supplied argument is not a valid stream resource in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 17

Warning: chmod() [function.chmod]: No such file or directory in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 18

Warning: include(data/settings/modules/contentblocks/blocks.php) [function.include]: failed to open stream: No such file or directory in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 19

Warning: include(data/settings/modules/contentblocks/blocks.php) [function.include]: failed to open stream: No such file or directory in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 19

Warning: include() [function.include]: Failed opening 'data/settings/modules/contentblocks/blocks.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/pluck/data/modules/contentblocks/functions.php on line 19

This module allows the creation of blocks of content that are included in the page templates. Useful for things such as addresses or hours of operation sections.

Offline

#13 03-07-2009 09:34:29

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: I made a module - Global Content Blocks

Can you check if the directory data/settings/modules/contentblocks exists?

Offline

#14 03-07-2009 09:46:39

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: I made a module - Global Content Blocks

Sander wrote:

Can you check if the directory data/settings/modules/contentblocks exists?

Rather file data/settings/modules/contentblocks/blocks.php

If not -> create empty.

Offline

Board footer

Powered by FluxBB