Results 1 to 6 of 6

Thread: Administrative Forms for PHP-Nuke portal system

  1. #1
    Join Date
    Jul 2010
    Posts
    28

    Administrative Forms for PHP-Nuke portal system

    I would like to thanks all the members for yesterdays help. (How to create custom module for PHP-Nuke portal system) Now I am stuck at the administrative forms that has to be created for the PHP-Nuke portal system. I am begging for some more help from you members. Please provide same kind of information as you provided before. Once again I would like to greet all you members for being kind.

  2. #2
    Join Date
    Feb 2010
    Posts
    616

    Re: Administrative Forms for PHP-Nuke portal system

    Hi, welcome again,

    I am sure that you must have developed your own module that displays the horoscopes. But if we want to change, what do we do? Recourse to an administrative form. But it is not documented in the documentation shows how to realize it, but with a little 'reverse engineering' (ie reading the code) is pretty easy to see how. Herein is not guaranteed correct. In fact this is done by examining how deductions are made of standard modules. But the author of the website may change coding standards and maybe the next version of the mechanism reported here may no longer work. But take the risk. Also because if you do not have the skills to read the code of PHPNuke is difficult to attain our own administrative forms. From what I could deduce, to implement an administration module, you must follow three steps. The first step is to create a link in the administration menu, the second step is to implement a switch that allows you to choose which operation to perform administration, and the third step is to carry out the administrative functions themselves.

  3. #3
    Join Date
    Feb 2010
    Posts
    531

    Re: Administrative Forms for PHP-Nuke portal system

    To accomplish the first step is to write a file located in the admin / links / links.horoscope.php. To realize the second step was to write a file located in admin / case / case.horoscope.php. Finally, the code administration module itself will be found in the file admin / modules / horoscope first two pieces of code are used only to attach the module that we are writing to the administration menu and selecting operations.

  4. #4
    Join Date
    Feb 2010
    Posts
    530

    Re: Administrative Forms for PHP-Nuke portal system

    To achieve this capability we should write a file admin / links / links.horoscope.php as follows:
    Code:
    if (($ radminsuper == 1)) { 
    adminmenu ("admin.php? horoscope op =", "Horoscope", "horoscope.gif"); 
    }
    Let's take a couple of observations: the variable $ radminsuper will check if the operation is requested by a user administrator, and the value is set in the body of the admin.php file, which takes care of calling the various links. The icon should be installed in the directory images / admin. The $ op is always used by the module that selects which admin.php administrative function call. It is therefore appropriate to choose values for $ op going as little as possible in conflict with any other $ op run by admin.php. A convention is to use the module name in the name of the operation.The next step is to create the file admin / case / case.horoscope.php that takes care of selecting the operation to follow. The code is as follows:
    Code:
    if (eregi ("admin.php", $ PHP_SELF)) {die ("Access Denied");} 
    switch ($ op) { 
    case "horoscope": include ("admin / modules / horoscope.php") break; 
    case "horoscopesave: include (" admin / modules / horoscope.php ") break; 
    }

  5. #5
    Join Date
    Aug 2008
    Posts
    129

    Re: Administrative Forms for PHP-Nuke portal system

    The file admin / modules / horoscope.php contains code to manage the administrative module. This code is to display the entire page, including the menu for access to administrative functions, and call other functions. The functions involved in a case to display the form, and in the case to save the horoscope changed.
    Code:
    global $ hlpfile, $ admin, $ prefix, $ language, $ multilingual; 
    include ("header.php"); 
    GraphicAdmin ("manual / horoscope.html"); 
    OpenTable (); 
    switch ($ op) { 
    case "savehoroscope": save (); break; 
    default: form (); break; 
    } 
    CloseTable (); 
    include ("footer.php"); 
    
    The function that displays the form is: 
    form function () { 
    $ Q = mysql_query ("select sign, horoscope forecasts from order by order"); 
    echo "<h1 align='center'> Weather </ h1> \ n"; 
    echo "<table border='1' width='100%'>"; 
    while (list ($ sign, $ forecast) = mysql_fetch_row ($ q)) { 
    echo "<form method='GET' action='admin.php'>"; 
    echo "<input type='hidden' name='op' value='savehoroscope'>"; 
    echo "<input type='hidden' name='sign' value='$sign'>"; 
    echo "<tr> <td valign='middle'> $ sign </ td>"; 
    echo "<td> <textarea name='forecast' rows='1' cols='60'> $ forecast </ textarea> </ td>"; 
    echo "<input <td> type='submit' value='Save'> </ td> \ n"; 
    echo "</ form> </ tr>"; 
    } 
    }
    As you can see, they are manufactured as varied as horoscopes, and each is composed of a URL with hidden fields. Thanks to this, by pressing the Save button invokes the administrative module set with the rescue operation and the necessary parameters. Finally, the function that saves a horoscope is amended:
    Code:
    function save () { 
    global $ sign, $ forecast; 
    if (mysql_query ( 
    "Update September horoscope forecasts = '$ forecast' where symbol = '$ sign'")) 
    { 
    echo "$ <h1> Horoscope for sign saved. </ h1>"; 
    Else {} 
    echo "Error saving <h1> </ h1>"; 
    } 
    }

  6. #6
    Join Date
    Feb 2010
    Posts
    149

    Re: Administrative Forms for PHP-Nuke portal system

    Many programs for Linux are developed in C / C++, complex language known to the management of which is reserved for "hacker" of great powers. This software is made from PHP in simple language, it requires no complex coding flips and also to be extended, but it seems that its implementation requires expertise and an overview of remarkable. We talk about killer apps, programs that era. In my view, the evolution of the Web from its static phase (the phase of the website "brochure", all big words and graphics) to dynamic (the part of the site "magazine") PHPNuke is the real killer application for Linux and the Web in recent years.

Similar Threads

  1. Replies: 7
    Last Post: 22-08-2011, 11:02 PM
  2. How to create custom module for PHP-Nuke portal system
    By Betelgeuse in forum Software Development
    Replies: 6
    Last Post: 11-01-2011, 03:28 PM
  3. Crysis Warhead C4 nuke while playing
    By Wampanoag in forum Video Games
    Replies: 4
    Last Post: 15-04-2010, 11:29 AM
  4. Installing PHP Nuke
    By Pyrotechnic in forum Software Development
    Replies: 4
    Last Post: 03-11-2008, 07:28 PM
  5. Re: Outlook MAPI32.DLL Error How to Fix It /Nuke C:\Windows\System
    By Owala in forum Vista Setup and Install
    Replies: 1
    Last Post: 19-03-2007, 03:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,820,485.98065 seconds with 16 queries