Thread: New Module Help

Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default New Module Help

    Hi

    I have almost finished a module but would like to know how to configure the file to work in the admin and so it doesn't have the
    • $host = 'localhost';
    • $user = 'username';
    • $pass = 'password';
    • $db = 'database_name';

    in the file. I would like to be able to add an box to the admin for this module too, can you tell me how to do that also? It is just a one page file that allows users to download their customers details to a csv file, so nothing too complicated.

    Thanks,

    Phil

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: New Module Help

    Hi Phil, this is how I would approach it:

    admin/customers_csv.php (this is the main file which will display your data)
    admin/includes/boxes/extra_boxes/customers_csv_tools_dhtml.php (the keyword 'tools' is important here, it instructs which menu the mod is shown under)
    admin/includes/extra_datafiles/customers_csv.php (define your database tables used by the main file)
    admin/includes/languages/english/customers_csv.php (define your language constants for the main file)
    admin/includes/languages/english/extra_definitions/customers_csv.php (define mod's title/filename)

    Look at my Zip Validator mod as it uses the same structure.

    In your main file, you want to put these at the top and bottom:

    PHP Code:
    require('includes/application_top.php'); 
    require(
    DIR_WS_INCLUDES 'application_bottom.php'); 

  3. #3
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: New Module Help

    Hi Steven

    Thanks for that, I will give it a try. I may have to come back to you if I get stuck.

    Phil

 

 

Similar Threads

  1. Help to add new module?
    By vedavyas govardhanam in forum General Questions
    Replies: 2
    Last Post: 28 Oct 2009, 06:25 AM
  2. New Module Help
    By UberBI in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Jun 2009, 06:45 PM
  3. Help in setting up a new payment module
    By TimBaloo in forum Addon Payment Modules
    Replies: 0
    Last Post: 28 May 2007, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg