General ⇒ FAQ (Frequently Answered Questions) :: Archives ⇒ Module: blocks not showing up :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexFAQ (Frequently Answered Questions)

Archived ⇒ Module: blocks not showing up


Ok im new to dragonfly and php nuke in general. I am trying to install my own custom module. So i got the example provided and came up with the following just as a test:
<?php /********************************************* CPG Dragonfly™ CMS ******************************************** Copyright © 2004 - 2005 by CPG-Nuke Dev Team http://www.dragonflycms.com Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version $Source: /cvs/html/modules/Charter/index.php,v $ $Revision: 1 $ $Author: nanocaiordo $ $Date: 2006/08/16 16:51:32 $ **********************************************/ if (!defined('CPG_NUKE')) { exit; } $pagetitle .= 'Charter'; require_once('header.php'); OpenTable(); echo '<table>test</table>'; CloseTable();

I upload the file as index.php to the folder /modules/Charter
I to go admin->modules and activate it, set it to show both blocks etc.
well then i go check it out thelegionoflight.net/E...me=Charter

and dont you know it, while you can see the spot where blocks should be, there are no blocks!

So i go back to admin and i select one of my blocks that should be by default visable to all, scroll down the list thinking i can just select that module under the make it visible part for the blocks, but the module is no listed as an option.

A double check thelegionoflight.net/E.../index.php confirms the blocks are working on other modules and being new i dont know enough to figure out the problem.

I would greatly appreciate any help you guys could give me!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
9.1.2.1


admin.php?op=blocks to make sure that there are blocks assigned to the module.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Im having the same problem on this as well. I installed the blank home module, activated it, then went to the blocks admin to allocate them and alas the blank home module is not an option, it is not in the list to assign blocks to.
How can this be fixed to get the blank home module to appear in the list of modules inside the blocks menu?

here is the blank home module code

<?php /********************************************* Home Module Block created by pretzy with thanks to t31os Copyright ? 2006 by Ian Pertzel (pretzy) pretzy7 @ hotmail.com www.pretzy.dnsalias.com ******************************************** CPG-Dragonfly™ CMS Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version ********************************************** Allows HTML content to be installed as a module How to Use Simply insert the contents of your HTML <body> only between the <body> tags. Do not duplicate the tags You can then set this module as "Home" in your Dragonfly Admin > Modules section if you wish **********************************************/ if (!defined('CPG_NUKE')) { exit; } require_once("header.php"); echo' hello user <body> </body> ';

As you can see its the simple home module located here on the site, im no programmer so im lost.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/apache/4.1.21/4.4.2/9.1.2.1


dragonflycms.org/Forum...20866.html

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Well never mind, my problem went away, no idea why. It never showed up untill I added in that "hello user" message. Maybe it just needed the content for it to be seen? no clue.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/apache/4.1.21/4.4.2/9.1.2.1


by the way take the body tags off your module output Wink

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Well I am back to having this problem again. I put in my Job_module then went to blocks to assign it to blocks to the module and alas the module does not appear in the drop dopwn list.

I have selected to show both right and left blocks in the module itself so what can be wrong?

Module code:
<?php /********************************************* Home Module Block created by pretzy with thanks to t31os Copyright ? 2006 by Ian Pertzel (pretzy) pretzy7 @ hotmail.com www.pretzy.dnsalias.com ******************************************** CPG-Dragonfly™ CMS Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version ********************************************** Allows HTML content to be installed as a module How to Use Simply insert the contents of your HTML <body> only between the <body> tags. Do not duplicate the tags You can then set this module as "Home" in your Dragonfly Admin > Modules section if you wish **********************************************/ if (!defined('CPG_NUKE')) { exit; } require_once("header.php"); echo'<p align="center">We welcome all contractors who may have positions available and any persons seeking employment to email us at <a href="mailto:media@wildlandfirefighter.org">media@wildlandfirefighter.org</a> to be placed on our listings page. Job listings are free for both employers and those seeking employment. We will do our best to update this section regularly.<br>  </p> <p><table border="1" cellpadding="2" cellspacing="0"> <tbody> <tr> <td colspan="2" align="center" bgcolor="#800000"> <b><font color="#cc0000" size="5"><a name="help"></a> </font><font color="#FFFFFF" size="5">Contract Services </font></b></td> </tr> <tr> <td width="152"> <p align="center"> <img border="0" src="FirestormLogo.gif" width="122" height="80"><a href="http://www.firestormfire.com"><br> Firestorm Wildland Fire Suppression</a></p></td> <td width="82%"> <b>Firestorm Wildland Fire Suppression Inc</b>. will begin taking applications for the 2008 season starting January 1st. We will have seasonal and full time positions available for 20-person hand crews, Type 3 and Type 6 Engines as well as other Incident Support Personnel. We are also looking for qualified Engine Bosses, Crew Bosses, Crew Captains, Sawyers, and crewmember EMT positions.<p>We are looking for individuals who are hardworking, physically fit, self- motivated, willing to travel and are drug free. Our resources typically become available April 1st and work through December. Experience is not required; we provide all the necessary training. Benefits including 401k, insurance and vacation are available to those who qualify.<br> <br> For more information and an application you can visit our web site at <a target="_blank" href="http://www.firestormfire.com">www.firestormfire.com</a> or call 1-530-898-8153 M-F 0800-1630 PST. Please watch for our new website in mid-December for a more convenient online application process.<br>  </p></td> </tr> <tr> <td width="152"> <p align="center"> <img border="0" src="iar.gif" width="119" height="80"><br> <b> <a href="http://www.initialattackresources.com" style="text-decoration: none;"> <font color="#ff0000">Initial Attack<br> Resources</font></a></b></p></td> <td width="82%"> <b>Initial Attack Resources</b> is now hiring qualified experienced engine bosses and engine crew for company based in southern Oregon and northern California.  Please call 541-798-5959 or 541-891-9866, or email us at <a href="mailto:iar59@aol.com">iar59@aol.com</a> for more information.  Applications may be obtained online at <a target="_blank" href="http://www.initialattackresources.com">www.initialattackresources.com</a>.<br>  </td> </tr> <tr> <td align="center"> <img border="0" src="firestop.gif" width="150" height="79"><a href="http://fire-stop.com/careers.htm" name="firestop"><br> Fire Stop</a></td> <td width="82%"> <b>Fire Stop </b>is hiring Full Time or seasonal Engine Bosses for our fleet of Type 6 engines based in Northern California and Reno, NV.  Engines are available nationally and we have USFS contracts in regions 4 and 5.  Fire Stop is looking for professional individuals, who are hard working, motivated, and looking for a career with a dynamic and growing private company.  Send resumes to <a href="mailto:mdusa@fire-stop.com">mdusa@fire-stop.com</a> or fax to (530) 350-7068.<br>  <b><font size="2"><a href="http://www.nwsa.us/"></p> </table>';

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/apache/4.1.21/4.4.2/9.1.2.1


I've created a modules/folder and modules/folder/index.php, grabbed a copy of your file and pasted in index.php, then i went to modules admin page, enabled both sides, went to the module index and both blocks side are showing up.

Make sure that you do have blocks on both sides and at least one block each side is "active".

Also make sure to close properly close your <table> since its missing the final part </tr></table> (which could even be the cause). Use xhtml coding standards as well if possible.

If none of this works, delete cache/config_active_modules.php.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Actually, this problem has been reported before, where a newly added module does not show up in the list of modules where a block can be seen. I think the work-around was just clearing the cache, then going back into Admin - Blocks.

Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1


Yes, correct! A module without or a not valid cpg_inst.php.
Then just delete cache/config_active_modules.php.

Ive created, fixed and now even forgot this bug, then Phoenix is right I'm getting old Laughing

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Now I'm having this problem and I can't get the new module to display in Blocks admin. I've deleted config_active_modules.php multiple times and looked at the file to see that the new block is added/removed.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.22/5.0.5/9.1.2.1


Then right after I post I get it to work. I had to Save Changes to an existing block to get the new module to display in the list of available modules.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.22/5.0.5/9.1.2.1


Thanks a million, used both sets of advice
(1) deleted the config_active_modules.php
(2) saved settings on a block
(3) new module became visible to the blocks admin section

Learn new things every day Very Happy thanks guys

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/apache/4.1.21/4.4.2/9.1.2.1

All times are UTC