Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
ashkon
Client


Joined: Jan 15, 2006
Posts: 22

PostPosted: Tue Jan 31, 2006 2:18 pm Reply with quote

Hello,

I'm trying to create a phpnuke module that is a collection of HTML documents. Because the HTML documents contain links to other HTML documents, the "include('file.html');" method is not enough for what I am trying to do.

Instead, the index.php file for the module must contain a go-to address that creates an i-frame in a php table. Here is an example:



Code:


<?
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "[title]";
$go_to_address1="modules/[module]/[file].html";
$go_to_address=rawurldecode($go_to_address1);



The two "$go_to_address..." lines are where you specify the destination of the html file you are embedding into the php table. This is what it looks like when you actually call on the HTML file in the form of an i-frame:

Code:


OpenTable();
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"1000\" framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
CloseTable();


I am using this method to operate a menu item called "Literary Art" with three sub-items: fiction, poetry, and haiku/tanka:

Literary Art
+ Fiction
+ Poetry
+ Haiku and Tanka

The most basic way to use the HTML pages I have is to create three modules, one for each of the sub-items, and have each one of those modules contain an HTML file that is a list of author names. The module would be accompanied by an index.php file that specifies the go-to address as the index HTML file. For example, you click on Fiction under Literary Art. A module loads that displays an i-frame that is an HTML document with a list of names.

However, creating a module for every sub-item seems a bit excessive, so I want to try to create a single module for all three. I dont know how to do this.

The only way I can imagine is for the index.php file for the entire module to include 3 go-to addresses, one for each sub-item. In that case, the menu item would not include a drop down, but just be Literary Art. The Literary Art menu item would link to its respective module, which would load 3 i-frames in one (or more) php tables, each one being a separate HTML document.

I would prefer to keep the dropdown and make it so I could load each sub-item individually. Is there a way to have a php file for each section (fiction.php, poetry.php, etc.) that contains the go-to address for their respective author indexes?

Sorry for the long post, I would really appreciate any info on this.

Ashkon
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Jan 31, 2006 3:40 pm Reply with quote

You may want to check out NukeWrap: Only registered users can see links on this board! Get registered or login!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©