Can someone please help me with -

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Windameer_Farm2
    Staff Sergeant

    • Dec 2007
    • 41

    Can someone please help me with -

    Hello,

    This is Jolen i'm at my slow time for the farm so I'm updateing and improvveing my web sites.

    I have found a script that is to exstange links. and I have installed it but can not find
    How to customize your link details
    Here is how you can customize the link title, url, & description that the software gives to your link partners to add to their site.

    Open the submit_url.php file in a text editor such as Notepad. Find the following text:
    Title: your title here<BR>
    URL: http://www.yoursite.com<BR>
    Description: Your description here<p>

    Replace the text that is in italics above with your website info. Save the file & upload it to your server.

    Can some one please help me find it in the submit_url.php?

    <?
    require("libs/library.php");

    $cate_list = '';

    $cfg = new Config('config/settings.cfg');
    $config = $cfg->Get_Vars();

    ##------------------------
    ## INITIALIZE DATABASE
    ##------------------------
    $conn = mysql_connect($config['DB_HOST'],$config['DB_USER'],$config['DB_PWD']) or die('Cannot open database connection');
    $db = mysql_select_db($config['DB_NAME'],$conn) or die('Cannot open database');

    $query = 'SELECT set_metatags,set_header,set_footer,set_leftsection ,set_rightsection FROM '.$config['DB_PREFIX'].'_link_settings';
    $template = mysql_query($query);
    list($meta_tags,$header,$footer,$left_section,$rig ht_section) = mysql_fetch_row($template);
    $meta_tags = stripslashes($meta_tags);
    $header = stripslashes($header);
    $footer = stripslashes($footer);
    $left_section = stripslashes($left_section);
    $right_section = stripslashes($right_section);

    $query = 'SELECT cate_id, cate_name FROM '.$config['DB_PREFIX'].'_link_categories WHERE cate_edge = \'y\' ORDER BY cate_name';
    $rs = mysql_query($query) or die ('Cannot execute query');

    if (mysql_num_rows($rs) > 0)
    {
    $cate_list = "<select name=\"category\">\n".
    " <option value=\"0\" selected>---Category---</option>\n";
    while (list($id,$name) = mysql_fetch_row($rs))
    {
    $cate_list .= " <option value=\"$id\">$name</option>\n";
    }
    $cate_list .= "</select>";
    }
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Submit URL</title>
    <?=$meta_tags?>
    <link href="styles.css" rel="stylesheet" type="text/css">
    <script language="javascript">
    function check_form(name)
    {
    if ((document.forms[name].elements['url'].value == '') ||
    (document.forms[name].elements['title'].value == '') ||
    (document.forms[name].elements['reciprocal'].value == '') ||
    (document.forms[name].elements['contact'].value == '') ||
    (document.forms[name].elements['email'].value == '') ||
    (document.forms[name].elements['category'].value == 0))
    {
    alert("Please fill all entries with asterisk (*)");

    setFocus(name,'email');
    setFocus(name,'contact');
    setFocus(name,'reciprocal');
    setFocus(name,'title');
    setFocus(name,'url');
    document.forms[name].elements['category'].focus();

    return false;
    }
    }
    function setFocus(formName,objName) {
    if (document.forms[formName].elements[objName].value == '')
    {
    document.forms[formName].elements[objName].focus();
    }
    }
    </script>
    </head>
    <body onLoad="javascript:document.forms['submitForm'].elements['category'].focus();">
    <table>
    <tr>
    <td><?=$header?></td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    <td>
    <table width="100%" height="100%" cellpadding="5">
    <tr>
    <td><?=$left_section?></td>
    <td width="80%" valign="top">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="80%" align="center" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="25">
    <tr align="left">
    <td colspan="3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="2" class="font11"><strong><a class='category' href='index.php'>Links Directory</a> - Link Submission</strong></td>
    </tr>
    <tr>
    <td colspan="2"><img src="images/p_2.gif" width="100%" height="1"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr align="left">
    <td colspan="3">
    <form enctype="multipart/form-data" name="submitForm" method="post" action="submission.php" onSubmit="return check_form('submitForm');">
    <input type="hidden" name="MAX_FILE_SIZE" value="100000">
    <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr bgcolor="#CE9E8E">
    <td bgcolor="#CE9E8E">
    <table width="100%" border="0" cellspacing="1" cellpadding="5">
    <tr>
    <td colspan="2" class="font12"><b>Please fill this form to submit your url</b></td>
    </tr>
    <tr bgcolor="#EBDDD8">
    <td align="right" width="23%" class="font11"><b>Category *</b></td>
    <td width="77%"><?=$cate_list?></td>
    </tr>
    <tr bgcolor="#F8F3F1">
    <td align="right" width="23%" class="font11"><b>Website url *</b></td>
    <td width="77%"><input type="text" name="url" size="50" maxlength="255" value="<A href="http://"></td">http://"></td>
    </tr>
    <tr bgcolor="#EBDDD8">
    <td align="right" class="font11"><b>Title *</b></td>
    <td><input type="text" name="title" size="70" maxlength="60"></td>
    </tr>
    <tr bgcolor="#F8F3F1">
    <td align="right" class="font11"><b>Description</b><br>( Max 255 characters )</td>
    <td><textarea name="description" cols="80" rows="8"></textarea></td>
    </tr>
    <tr bgcolor="#EBDDD8">
    <td align="right" class="font11"><b>Reciprocal link location *</b></td>
    <td><input type="text" name="reciprocal" size="70" maxlength="255" value="<A href="http://"></td">http://"></td>
    </tr>
    <tr bgcolor="#F8F3F1">
    <td align="right" class="font11"><b>Image</b></td>
    <td><input name="image" type="file" size="50"></td>
    </tr>
    <tr bgcolor="#EBDDD8">
    <td align="right" class="font11"><b>Contact name *</b></td>
    <td><input type="text" name="contact" size="40" maxlength="30"></td>
    </tr>
    <tr bgcolor="#F8F3F1">
    <td align="right" class="font11"><b>Email *</b></td>
    <td><input type="text" name="email" size="40" maxlength="50"></td>
    </tr>
    <tr bgcolor="#EBDDD8">
    <td>&nbsp;</td>
    <td><input type="submit" name="submit" value="Submit"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr align="left">
    <td colspan="3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="2"><img src="images/p_2.gif" width="100%" height="1"></td>
    </tr>
    <tr>
    <td colspan="2" class="font11"><b>step 1</b> - please fill this form ( <b>CAUTION</b> : You must provide reciprocal link first )</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>


    </td>
    </tr>
    </table>
    </td>
    <td><?=$right_section?></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table>
    <tr>
    <td><?=$footer?></td>
    </tr>
    </table>
    </body>
    </html>

    Thank you
    Jolen
    sigpic
    www.windameer.com - Angora goats & Sheep

    www.windameersfleamarket4u.com - An online Flea Market - frist year free !!

    www.advertise.windameer.com - Free banner advertiseing for everyone.
Working...
X