Ok I give up... where is the documentation that WORKS?

TheGorf

Joined: 2005-08-15
Posts: 17
Posted: Fri, 2006-07-21 02:28

Gallery version (not just "2"): 2.1.1
PHP version (e.g. 4.3.11): 4.3.11
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.0.54
Database (e.g. MySql 4.0.11): MySQL 4.0.20
Activated toolkits (e.g. NetPbm, GD): NetPbm
Operating system (e.g. Linux): FreeBSD 4.10
Browser (e.g. Firefox 1.0): various
Link: http://gallery.pnwhs.org

The documentation CLEARLY says that after I have followed creating the tutorial1 modules that:
http://codex.gallery2.org/index.php/Gallery2:Module_Development_Tutorial

Quote:
Using your Module

It's hard to use something with no functionality, but provided everything went smoothly you'll be able to login to your Site Admin intefaces, click Modules, scroll down to the Extra Data section and install, activate, deactivate and uninstall your module. Fun, isn't it?

NO It is NOT fun. Nothing I do can make this stupid module show up. I've created the tutorial directory and modules.inc file:

Quote:
bash$ pwd
/var/www/gallery.pnwhs.org/modules/tutorial1
bash$ ll
total 2
-rw-r--r-- 1 pnhs pnhs 1575 Jul 20 19:13 modules.inc

But I get nothing in the administrative interface.

I've been trying for over a week now to get answers to a permissions problem. But my requests have been answered with silence. So now I am relegated to writing my own module. But... what a shocker, the documentation doesn't do what it says.

So can someone help me please? How do you make a module appear and work???????

For reference here is my problem that I am now writing a module for:
http://gallery.menalto.com/node/51663
http://gallery.menalto.com/node/51693

 
HorsePunchKid
HorsePunchKid's picture

Joined: 2005-05-04
Posts: 89
Posted: Sat, 2006-07-22 17:27

I had some frustration when starting to develop the two modules I've contributed (Updates and Google Maps). What worked for me was to take an existing module that I knew worked and modify it to do what I wanted instead. If you're interested, the Updates module is quite simple (or at least my last version was), and it even hooks into the permissions system to make sure you only see updates that you're allowed to see.

Beyond that, all I can say is that I've had good success using all of the standard debugging tricks. Turn debug logging on, watch the logs, print out things in places where you should expect them, throw some assertions in, and so on.

--
http://severinghaus.org/gallery/

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-08-06 21:22

try module.inc