Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
CodyG
Life Cycles Becoming CPU Cycles


Joined: Jan 02, 2003
Posts: 712
Location: Vancouver Island

PostPosted: Fri May 11, 2007 7:40 am Reply with quote

I've just cloned the Content module as a Minutes module for my computer club.

That was an interesting experience. :/ ... especially when I finally figured out that add_category, edit_category and save_category functions and cases had to be renamed to minutes_add_category, minutes_edit_category, etc or else I was editing categories in the old content module.

Anyways, I've got it all working except for the link in the administration menu. It still says _MINUTES and I'm sure I've defined it correctly in the /modules/Minutes/admin/links.php file.

The language define works if I'm looking at the Minutes Admin page, but not when I'm looking at the Main Administration page, where the link to admin the Minutes module still says _MINUTES.

What have I missed?

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri May 11, 2007 8:12 am Reply with quote

You mean you put a language constant _MINUTES in the adminmenu() call in your links.php file?

I believe that for your main admin page, _MINUTES must be defined in a language file under admin/language/. See admin/language/lang-english.php, I think that is where you will find _CONTENT.

If this module is just for yourself I would just replace _MINUTES with 'Minutes'. Smile

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
CodyG
PostPosted: Fri May 11, 2007 8:57 am Reply with quote

Thanks Gremmie! I thought adding _MINUTES to the admin/language/ file would be the solution. So I'll do that. This isn't required for adding other modules, like gcalendar. ... <duh!> but it's the clone of the Content module! so, of course, I need to clone *all* the bits and not make up new bits. <I am blonde.>


Might be nuke-planet interest in such a module?
When I code for my domains, I try to keep in mind that sharing is all good... but, one can loose track of that goal quickly; 'for the planet' becomes another version with too few resources, like time.

And, besides cloning Content to Minutes, because Content was used for categorizing courses and sigs, there are a few other modules I need... Picture of the Week and Member of the Month.... There is already php code for these functions in the old code. Smile Finding that, rewriting in a new db on rn (presently one has no table, the other does) is high on the 'do/find by next week' wishlist.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©