You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 85 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Designing a new Module [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
LunaFaye
Nuke Soldier
Nuke Soldier


Joined: Jun 12, 2005
Posts: 20

Location: Columbus OH

PostPosted: Fri Sep 23, 2005 10:05 pm Reply with quoteBack to top

I'm trying to design a Module for my web site. What I would like is to click on a "Moon Phases" link in my Modules list. Then be directed to a page that has one section at the top with a picture of the current moon phase displayed. Then beneath that a list of years. When you click on a year, in that same section appears a table with the moon phases for that whole year. (That sounds kind complicated, but it's really not. If it didn't make sence, let me know and I can provide images.)

What I did was create a "Moon_Phases" folder in my Modules section. Then I created the index.php file which contains the first section with the current moon phase picture and the secon section with the year links. I then created year files such as 2005.php and 2006.php which contain the tables for the moon phases.

Everything works fine independantly, however it doesn't play nice together. When I click on a year link, I get this error:
"You can't access this file directly."

Confused

Luna Faye

_________________
Oracle of Pæthieon
Find all posts by LunaFayeView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Fri Sep 23, 2005 11:01 pm Reply with quoteBack to top

The files must be accessed like the following template

modules.php?name=Moon_Phases&file=2005

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.176 Seconds - 192 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::