[Help] Why my mu Web 0.8 can't post a new download link ?

Results 1 to 4 of 4
  1. #1
    Member rocerao is offline
    MemberRank
    Nov 2007 Join Date
    51Posts

    [Help] Why my mu Web 0.8 can't post a new download link ?

    Hi all , sorrny for my mistake, I've posted mu web 8.0 :sweatdrop, but I needed mu web 0.8 help, my downlinks can't be put, everytime show that message of error[Fatal error: Call to undefined function add_novo_link() in C:\AppServ\www\administrator\downloads.php on line 12], how can I solve this ?


  2. #2
    Account Upgraded | Title Enabled! Lisko is offline
    MemberRank
    Dec 2007 Join Date
    BulgariaLocation
    440Posts

    Re: [Help] Why my mu Web 0.8 can't post a new download link ?

    Change: modules/Download.php
    :sweatdrop

  3. #3
    Member rocerao is offline
    MemberRank
    Nov 2007 Join Date
    51Posts

    Re: [Help] Why my mu Web 0.8 can't post a new download link ?

    thanks man, but how can I do this ?
    can you explain me ?

  4. #4
    Account Upgraded | Title Enabled! RayOfLight is offline
    MemberRank
    Jun 2006 Join Date
    EverywhereLocation
    1,301Posts

    Re: [Help] Why my mu Web 0.8 can't post a new download link ?

    Open download.php and delete everything in it. Replace with the code below


    Code:
    <? require("config.php"); ?>
    <title>Administrator</title>
    <table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="394">&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center">
            <? 
    if (isset($_POST["edit_link_done"])){edit_link($_POST['link_name'],$_POST['link_address'],$_POST['link_description'],$_POST['link_id']);}
    if (isset($_POST["delete_link"])){delete_link($_POST['link_id']);}
    if (isset($_POST["add_new_link"])){add_new_link($_POST['link_name'],$_POST['link_address'],$_POST['link_description']);} ?>
        </div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">
            <?php 
    if (isset($_POST["edit_link"]))
    {$link_id = stripslashes($_POST['link_id']);
    $link_id = clean_Var($link_id);
    $get_edit_link = $db->Execute("Select link_name,link_address,link_description from MuWeb_links where link_id='$link_id'");
    $get_edit_link_ = $get_edit_link->fetchrow();
    
    echo ('<fieldset><legend>Edit Link</legend><table width="295" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <th width="275" class="sort-table" scope="row"> Edit Link </th>
      </tr>
    </table>
    <table width="295" border="1" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <th width="291" scope="row"><form action="" method="post" name="new_link_form" id="new_link_form">
            <table width="277" border="0" cellpadding="0" cellspacing="4">
              <tr>
                <td width="96" scope="row"><div align="right"  class="text_administrator">Link Name</div></td>
                <td width="169" scope="row"><input name="link_name" type="text" id="link_name" size="20" maxlength="100" value="'.$get_edit_link_[0].'"></td>
              </tr>
              <tr>
                <td width="96" scope="row"><div align="right" class="text_administrator">Link Address</div></td>
                <td scope="row"><input name="link_address" type="text" id="link_address" size="20" maxlength="100" value="'.$get_edit_link_[1].'">
                    <input name="edit_link_done" type="hidden" id="edit_link_done" value="edit_link_done">
                    <input name="link_id" type="hidden" id="link_id" value="'.$link_id.'">
                </td>
              </tr>
              <tr>
                <td width="96" scope="row"><div align="right" class="text_administrator">Description</div></td>
                <td scope="row"><textarea name="link_description" id="link_description">'.$get_edit_link_[2].'</textarea></td>
              </tr>
            </table>
            <table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
              <tr>
                <td width="111" scope="row"><div align="right">
                    <input type="submit" name="Submit" value="Edit Link" class="button">
                </div></td>
                <td width="77" scope="row"><div align="left">
                    <input type="reset" name="Reset" value="Reset" class="button">
                </div></td>
              </tr>
            </table>
        </form></th>
      </tr>
    </table></fieldset>
    ');
    									  ;}
    else {
    echo ('<fieldset><legend>New Link</legend><table width="295" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <th class="sort-table" scope="row">New Link</th>
      </tr>
    </table>
    <table width="295" border="1" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <th width="291" scope="row"><form action="" method="post" name="new_link_form" id="new_link_form">
            <table width="277" border="0" cellpadding="0" cellspacing="4">
              <tr>
                <td width="96" scope="row"><div align="right"  class="text_administrator">Link Name</div></td>
                <td width="169" scope="row"><input name="link_name" type="text" id="link_name" size="20" maxlength="100"></td>
              </tr>
              <tr>
                <td width="96" scope="row"><div align="right" class="text_administrator">Link Address</div></td>
                <td scope="row"><input name="link_address" type="text" id="link_address" size="20" maxlength="100">
                    <input name="add_new_link" type="hidden" id="add_new_link" value="add_new_link"></td>
              </tr>
              <tr>
                <td width="96" scope="row"><div align="right" class="text_administrator">Description</div></td>
                <td scope="row"><textarea name="link_description" id="link_description">Link Description</textarea></td>
              </tr>
            </table>
            <table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
              <tr>
                <td width="111" scope="row"><div align="right">
                    <input type="submit" name="Submit" value="Add Link" class="button">
                </div></td>
                <td width="77" scope="row"><div align="left">
                    <input type="reset" name="Reset" value="Reset" class="button">
                </div></td>
              </tr>
            </table>
        </form></th>
      </tr>
    </table></fieldset>');
    ;}
    ?>
        </div></td>
      </tr>
    </table>
    <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td scope="row"><div align="center">
            <? include_once("includes/links_manager.php"); ?>
        </div></td>
      </tr>
    </table>



Advertisement