» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 71
0 members and 71 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on creating module within the Nuke 7.x - General forums, part of the PHP-Nuke 7.x category; 1st hello to all @ nuke mods. I need some guide with creating module. Im trying to create simple module for ...



Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2006, 09:08 PM
Junior Member
 
Join Date: Nov 2006
Posts: 3
creating module
1st hello to all @ nuke mods.
I need some guide with creating module. Im trying to create simple module for generating scripts for one game (something like this). Now, as Im not so good with php :roll: , i dont know where to start. I do understand the simple code from example, so all I need is one simple module witch will have following:
one drop-down box with 2 options
one check-box
generate button
maybe text-box in witch the selected options will be displayed (it doesnt have to be text-box, but I think its the easiest way to do it).

Is anyone willing to help?

Thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-27-2006, 01:33 AM
Junior Member
 
Join Date: Nov 2006
Posts: 3
I know html, dont worry..

I can create drop-downs, check-boxs, but thing thats boughter me is how to print that selected items.

I remember i used php variables to save selected options, but cant remember how did i get that because that was long time ago, and in meanwhile i lost my data, so im back in start.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-27-2006, 03:07 AM
Junior Member
 
Join Date: Nov 2006
Location: The Abyss.....
Posts: 56
Send a message via AIM to gamecharmer Send a message via MSN to gamecharmer Send a message via Yahoo to gamecharmer
Ok, so this "program" doesn't save anything at all? It just generates a page, correct?

in your <option> thing, you're goanna want something like this

echo <select>;
.<option>AK-47</option>
.<option>M-16</option>
.</select>;

Then just dump the variables in the function includes section

function Page1($Weapon) {
THE GENERATE CODE
}

like that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-27-2006, 05:08 PM
Junior Member
 
Join Date: Nov 2006
Location: The Abyss.....
Posts: 56
Send a message via AIM to gamecharmer Send a message via MSN to gamecharmer Send a message via Yahoo to gamecharmer
that's odd, these posts are somehow out of order. it goes

You
You
Me

although it should read

You
Me
You

That's why I just edited my last post.

hmmmm...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-30-2006, 06:51 AM
Junior Member
 
Join Date: Nov 2006
Posts: 3
LOL, ye i noticed the bug..

I finnished module, its in testing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-30-2006, 02:08 PM
Junior Member
 
Join Date: Nov 2006
Location: The Abyss.....
Posts: 56
Send a message via AIM to gamecharmer Send a message via MSN to gamecharmer Send a message via Yahoo to gamecharmer
Wow, I just re-read what I posted and it removed the Value thigns within the select statement

let me try it this way... without the <and>
select name = NAME
option value = VALUE
within the \ s and the "s

Oh well. so long as it works for you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Module - Can I use php when creating the pages? RandomBoy Nuke 7.x - General 0 03-29-2006 02:38 AM
Having a minor issue creating a module kabilos Nuke 7.x - Modules 11 01-05-2006 10:52 PM
Creating a New Module WaRRioR2050 Nuke 7.x - Modules 0 11-25-2005 09:04 PM
Creating module with java applet MurphDog Nuke 7.x - Modules 7 07-12-2004 10:26 PM
Creating a database driven Module paycheck Purged Topics 0 06-18-2003 03:09 AM


All times are GMT -5. The time now is 12:02 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31