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, 71 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 - Needing help with a 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
DragonsPerch
Nuke Soldier
Nuke Soldier


Joined: May 25, 2006
Posts: 19


PostPosted: Sat Nov 18, 2006 9:44 am Reply with quoteBack to top

I was trying to recreate a menu part in a new module that I am tring to work on. What I am tring to do is make 1 blook in the module and it has info in it Like a little menu then call another file into another block below the first one and keep the menu block. An example of what i am trying to do is here at www.dragonsperch.easywayhost.com/ddo/index.php click on GW_Skills and you will see the block that I am tring to recreate. Then click on the gw_armor and you can see what I am getting in result when I try it. any help with this would be greatfull.

Also I am having issues with changing the button below each picture. I am tring to change them to call a file but I can not get it to work it keeps telling me there is an error at that like when I change it to pull up another file.

I got the first part to workbut still have issues with one more the code is posted a little father down in here


Last edited by DragonsPerch on Mon Nov 20, 2006 5:07 pm; edited 1 time in total
Find all posts by DragonsPerchView user's profileSend private message
Endeavour
Corporal
Corporal


Joined: Oct 22, 2006
Posts: 59


PostPosted: Sun Nov 19, 2006 5:57 am Reply with quoteBack to top

I can't see what the problem is you're trying to describe. The only difference I can see between GW Armour and GW Skills is that you forgot to add OpenTable() and CloseTable() in the Armour module...

_________________
Stand up for courtesy and decency in the Nuke community, don't support nukeforums.
Find all posts by EndeavourView user's profileSend private message
DragonsPerch
Nuke Soldier
Nuke Soldier


Joined: May 25, 2006
Posts: 19


PostPosted: Sun Nov 19, 2006 9:14 am Reply with quoteBack to top

Thanks I got that part to work, But how can I get the buttons to bring in a external file in to another block below that one with out having to use SQL data base. Everytiime I change it to link to a file it will cause an error.
Find all posts by DragonsPerchView user's profileSend private message
Endeavour
Corporal
Corporal


Joined: Oct 22, 2006
Posts: 59


PostPosted: Mon Nov 20, 2006 10:31 am Reply with quoteBack to top

I don't really understand what you're trying to do...

_________________
Stand up for courtesy and decency in the Nuke community, don't support nukeforums.
Find all posts by EndeavourView user's profileSend private message
DragonsPerch
Nuke Soldier
Nuke Soldier


Joined: May 25, 2006
Posts: 19


PostPosted: Mon Nov 20, 2006 1:30 pm Reply with quoteBack to top

So far here is the code I have:

<?php


if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

/**********************************/
/* Configuration */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 0;

include("header.php");
$cookie[0] = intval($cookie[0]);
Opentable();
$form_block = "
<center>
<FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
<TABLE border=\"0\">
<TR>
<TD>
<!-- Assassin Button -->
<IMG SRC=\"modules/gw_armor/Characters/Assassin.jpg\">

<TD>
<!-- Warrior Button -->
<IMG SRC=\"modules/gw_armor/Characters/Warrior.jpg\">

<TD>
<!-- Ranger Button -->
<IMG SRC=\"modules/gw_armor/Characters/Ranger.jpg\">

<TD>
<!-- Monk Button -->
<IMG SRC=\"modules/gw_armor/Characters/Monk.jpg\">

<TD>
<!-- Necromancer Button -->
<IMG SRC=\"modules/gw_armor/Characters/Necromancer.jpg\">

<TR>
<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Assassin\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Warrior\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Ranger\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Monk\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Necromancer\">

<TR>
<TD colspan=\"5\">
<TR>
<TD>
<!-- Mesmer Button -->
<IMG SRC=\"modules/gw_armor/Characters/Mesmer.jpg\">

<TD>
<!-- Elementalist Button -->
<IMG SRC=\"modules/gw_armor/Characters/Elementalist.jpg\">

<TD>
<!-- Ritualist Button -->
<IMG SRC=\"modules/gw_armor/Characters/Ritualist.jpg\">

<TD>
<!-- Dervish Button -->
<IMG SRC=\"modules/gw_armor/Characters/Dervish.jpg\">

<TD>
<!-- Paragon Button -->
<IMG SRC=\"modules/gw_armor/Characters/Paragon.jpg\">

<TR>
<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Mesmer\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Elementalist\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Ritualist\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Dervish\">

<TD align=\"center\">
<INPUT TYPE=\"submit\" NAME=\"Class_Choice\" VALUE=\"Paragon\">

</TABLE>
Click on a Class's name to view that Class's available armor.<br>
</FORM>
</center>


";
echo $form_block;
Closetable();

if ($Class_Choice != "") {
OpenTable();
echo "<center>";
/* Armor buttons for each expansion */
echo "Select which expansion you would like to see the armor for <u><strong>$Class_Choice</strong></u>";
echo "<TABLE border=\"0\">";
echo "<TR>";
echo "<TD align=\"center\">";
echo "<INPUT TYPE=\"submit\" NAME=\"Expansion_Choice\" VALUE=\"Prophecies\">";
echo "<TD align=\"center\">";
echo "<INPUT TYPE=\"submit\" NAME=\"Expansion_Choice\" VALUE=\"Factions\">";
echo "<TD align=\"center\">";
echo "<INPUT TYPE=\"submit\" NAME=\"Expansion_Choice\" VALUE=\"Nightfall\">";
echo "</table>";
echo "</center>";



CloseTable();
}

if ($Class_Choice == 'Elementalist') {
if ($Expansion_Choice == 'Prophecies') {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test";
echo "<TD>";
echo "test2";
echo "</table>";
CloseTable();
}


if ($Expansion_Choice == "Factions") {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test";
echo "<TD>";
echo "test2";
echo "</table>";
CloseTable();
}

if ($Expansion_Choice == "Nightfall") {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test5";
echo "<TD>";
echo "test6";
echo "</table>";
CloseTable();
}
}

if ($Class_Choice == "Assassin") {
if ($Expansion_Choice == 'Prophecies') {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test";
echo "<TD>";
echo "test2";
echo "</table>";
CloseTable();
}


if ($Expansion_Choice == "Factions") {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test";
echo "<TD>";
echo "test2";
echo "</table>";
CloseTable();
}

if ($Expansion_Choice == "Nightfall") {
OpenTable();
echo "<center>";
echo "<TABLE width=\"600\" border=\"1\">";
echo "<TR>";
echo "<TD>";
echo "test5";
echo "<TD>";
echo "test6";
echo "</table>";
CloseTable();
}
}
$Class_Choice = "0";
?>


What I am tring to do is this for example:

got 4 buttons each one assigned a value

button 1 = value of "elementalist"
Button 2 = value of "warrior"
button 3 = value of "Necro"
Button 4 = value of "Rit"

now when button 1 is pressed it bring up a (sub)menu below
(each button in the 1st menu has the same (sub)menu buttons)

button 5 = value of "prophecies"
Button 6 = value of "factions"
button 7 = value of "nightfall"

(now this is were I am having problems)

Then when the (sub)menu button 5 is pressed it brings up related info for the 1st and 2nd button that was pressed

so in the short if I want info on Elementalist armor in prophecies i would click the button for elementalist then click the sub menu button for prophecies and get a list armor for that particular class. then say I wanted to see another one I would click on Warrior button then click the submenu button of prophecies and it would display armor for a warrior in prophecies.
Find all posts by DragonsPerchView user's profileSend private message
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.723 Seconds - 286 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::