Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 73
9 members and 64 guests
haingrcolky3rao, han4esonsrmawin, howwe3accuratea, smaaopllbusines, smske2text2xfkm, sol6nar8ypezpan, tab9tqdcpr7h4le, twiia4ktter3tjc, wat9qser
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

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

Reply
 
LinkBack Thread Tools Display Modes
creating module
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Nov 2006
creating module - 11-25-2006, 10:08 PM

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
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Nov 2006
11-27-2006, 02:33 AM

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
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 57
Join Date: Nov 2006
Location: The Abyss.....
11-27-2006, 04:07 AM

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
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 57
Join Date: Nov 2006
Location: The Abyss.....
11-27-2006, 06:08 PM

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
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Nov 2006
11-30-2006, 07:51 AM

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
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 57
Join Date: Nov 2006
Location: The Abyss.....
11-30-2006, 03:08 PM

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 03:38 AM
Having a minor issue creating a module kabilos Nuke 7.x - Modules 11 01-05-2006 11:52 PM
Creating a New Module WaRRioR2050 Nuke 7.x - Modules 0 11-25-2005 10:04 PM
Creating module with java applet MurphDog Nuke 7.x - Modules 7 07-12-2004 11:26 PM
Creating a database driven Module paycheck Purged Topics 0 06-18-2003 04:09 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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