Jump to content

avatarium

Members
  • Content count

    44
  • Joined

  • Last visited

About avatarium

  • Birthday 04/01/1966

Profile Information

  1. avatarium

    Contribution Issue

    Hi beachdog, Why would you want to have the sessions id showing in the surf bar anyways? The only time you really want ro use it is to save things like orders. You dont really want to save on your server every page that someone just looks at do you?
  2. This is the Support thread for Robot Protection V1.0 Hope you enjoy it.
  3. avatarium

    News Blog V1.0

    Well bless my soul...lol... that worked! Although I had t change back to the original create_rss.php. Everything works great! I thank you!
  4. avatarium

    News Blog V1.0

    Well I found the problem but not sure how to fix it. When I create rss in admin with the new create_rss.php you gave me. It creates a file in the OSCommerce main folder where the catolog folder is and it names it catologrss.xml. instead of writing it to the rss.xml file in catolog folder. here is the code for the create_rss.php <?php require('includes/application_top.php'); //$filename = DIR_FS_DOCUMENT_ROOT . FILENAME_RSS; //if (is_writable($filename)) { // open a file pointer to an RSS file $fp = fopen (DIR_FS_DOCUMENT_ROOT . FILENAME_RSS, "w"); // Now write the header information fwrite ($fp, "<?xml version='1.0' ?><rss version='2.0'><channel>”); fwrite ($fp, “<title>Your Title</title>"); fwrite ($fp, "<link>" . HTTP_SERVER . "</link>"); fwrite ($fp, "<description>Your description</description>"); fwrite ($fp, "<language>en-us</language>"); fwrite ($fp, "<docs>" . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_RSS . "</docs>"); $news_query_raw = tep_db_query("select * from " . TABLE_NEWS . " order by id desc limit 10"); while ($content_rec = tep_db_fetch_array($news_query_raw)) { fwrite ($fp, "<item>"); $headline = $content_rec['name']; $date = 'Date: ' . tep_date_short($content_rec['date_created']); $content_1 = substr($content_rec['content'], 0, 250); $content = strip_tags($content_1); if (strlen($content_rec['content']) > 250) { $content = $content . "...."; } fwrite ($fp, "<title>$headline</title>"); fwrite ($fp, "<pubDate>$date</pubDate>"); fwrite ($fp, "<description>$content</description>"); $item_link = HTTP_SERVER . DIR_WS_CATALOG . FILENAME_NEWS . "?article=" . $content_rec['id']; fwrite ($fp, "<link>$item_link</link>"); fwrite ($fp, "</item>"); } fwrite ($fp, "</channel></rss>"); fclose ($fp); tep_redirect(tep_href_link(FILENAME_NEWS, 'update=true')); // } else { // tep_redirect(tep_href_link(FILENAME_NEWS, 'update=false')); // } ?> so I'm totaly confused
  5. avatarium

    News Blog V1.0

    gREAT that did the trick with the create rss. Thank you. However, It didn't fix the problem with the subscribe function. still get the same error The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- XML document must have a top level element. Error processing resource 'http://thedecoreshoppe.com/rss.xml'.
  6. avatarium

    News Blog V1.0

    Thank you that worked. next problem; when I hit create rss it tells me cant write to rss.xml cdmod needs to be777 it is 777 and on the page news.php the one everyone can read and write to if the hit the rss button I get: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- XML document must have a top level element. Error processing resource 'http://thedecoreshoppe.com/rss.xml'. But believe that is the problem it the rss,xml in admin that cant write to it even though it set to 777
  7. avatarium

    News Blog V1.0

    Oh. 1 more thing, you forgot to add instuction on how to add button for rss
  8. avatarium

    News Blog V1.0

    I'm not sure what to say but thank you. But it needs some tweeking. I'v instaled and rechecked everything several times but keep getting a premature end of headers script:news.php throught the admin. heres the code: <?php /* $Id: news.php,v 1.29 2003/06/29 22:50:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // create news article if ($HTTP_POST_VARS['new_news'] == 'new') { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $content = tep_db_prepare_input($HTTP_POST_VARS['content']); if ((empty($name)) || (empty($content))) { $error = 'You must enter a value into the name and content.'; } else { $date = date("Y-m-d G:i:s"); $month_date = date("F Y"); $sql_data_array = array('name' => $name, 'month_date' => $month_date, 'content' => $content, 'date_created' => $date); tep_db_perform(TABLE_NEWS, $sql_data_array); tep_redirect(tep_href_link(FILENAME_NEWS)); } } // edit news article if ($HTTP_POST_VARS['edit_news'] == 'edit') { $id = (int)tep_db_prepare_input($HTTP_POST_VARS['id']); $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $content = tep_db_prepare_input($HTTP_POST_VARS['content']); if ((empty($name)) || (empty($content))) { $error = 'You must enter a value into the name and content.'; } else { $sql_data_array = array('name' => $name, 'content' => $content); tep_db_perform(TABLE_NEWS, $sql_data_array, 'update', "id = '" . (int)$id . "'"); tep_redirect(tep_href_link(FILENAME_NEWS)); } } // edit reply if ($HTTP_GET_VARS['action'] == 'edit_reply') { $id = (int)tep_db_prepare_input($HTTP_POST_VARS['id']); $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $content = tep_db_prepare_input($HTTP_POST_VARS['content']); $username = tep_db_prepare_input($HTTP_POST_VARS['username']); if ((empty($name)) || (empty($content))) { $error = 'You must enter a value into the name and content.'; } else { $sql_data_array = array('name' => $name, 'username' => $username, 'content' => $content); tep_db_perform(TABLE_NEWS_REPLYS, $sql_data_array, 'update', "id = '" . (int)$id . "'"); tep_redirect(tep_href_link(FILENAME_NEWS, 'action=edit&id=' . $HTTP_GET_VARS['id'])); } } // delete news article if ($HTTP_POST_VARS['delete'] == '1') { $id = (int)tep_db_prepare_input($HTTP_POST_VARS['id']); tep_db_query("delete from " . TABLE_NEWS . " where id= $id"); tep_db_query("delete from " . TABLE_NEWS_REPLYS . " where news_id= $id"); tep_redirect(tep_href_link(FILENAME_NEWS)); } // delete reply if ($HTTP_GET_VARS['action'] == 'delete_reply') { $id = (int)tep_db_prepare_input($HTTP_POST_VARS['id']); tep_db_query("delete from " . TABLE_NEWS_REPLYS . " where id= $id"); tep_db_query('update ' . TABLE_NEWS . ' set replys = replys-1 where id = ' . (int)$HTTP_GET_VARS['id']); tep_redirect(tep_href_link(FILENAME_NEWS, 'action=edit&id=' . $HTTP_GET_VARS['id'])); } <?php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWS); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"> <form action="<?php echo tep_href_link(FILENAME_NEWS); ?>" method="get"> <select name="month"> <?php $date_query = tep_db_query("select distinct month_date from " . TABLE_NEWS . " order by month_date asc"); while ($date = tep_db_fetch_array($date_query)) { ?> <option value="<?php echo $date['month_date'] . '">' . $date['month_date']; ?></option> <?php } ?> </select> <input type="submit" value="Go"> </form></td> </tr> </table></td> </tr> <tr> <?php if ($HTTP_GET_VARS['action'] == 'new') { ?> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <form action="<?php echo tep_href_link(FILENAME_NEWS, 'action=new'); ?>" method="post"> <?php if ($error == true) { echo '<tr><td class="main" colspan="2"><font color="red">' . $error . '</font></td></tr>'; } ?> <tr> <td class="main"><?php echo HEADING_NAME; ?></td> <td class="main"><input type="text" name="name" size="70"></td> </tr> <tr valign="top"> <td class="main"><?php echo HEADING_CONTENT; ?></td> <td class="main"><TEXTAREA NAME="content" COLS=70 ROWS=30></TEXTAREA></td> </tr> <tr> <td align="right"><input type="submit" value="Submit"><input type="hidden" name= "new_news" value="new"></td> <td> </td> </tr></form> <?php } elseif ($HTTP_GET_VARS['action'] == 'edit') { $id = tep_db_prepare_input($HTTP_GET_VARS['id']); $news_query_raw = tep_db_query("select id, name, content from " . TABLE_NEWS . " where id = $id"); $news = tep_db_fetch_array($news_query_raw); ?> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <form action="<?php echo tep_href_link(FILENAME_NEWS, 'action=edit&id=' . $id); ?>" method="post"> <?php if ($error == true) { echo '<tr><td class="main" colspan="2"><font color="red">' . $error . '</font></td></tr>'; } ?> <tr> <td class="main"><?php echo NAME; ?></td> <td class="main"><input type="text" name="name" size="70" value="<?php echo $news['name']; ?>"></td> </tr> <tr valign="top"> <td class="main"><?php echo HEADING_CONTENT; ?></td> <td class="main"><TEXTAREA NAME="content" COLS=70 ROWS=30><?php echo $news['content']; ?></TEXTAREA></td> </tr> <tr> <input type="hidden" name="id" value="<?php echo $news['id']; ?>"> <input type="hidden" name="edit_news" value="edit"> <td> </td> <td align="left"><input type="submit" value="Edit"></form> <form action="<?php echo tep_href_link('news.php'); ?>" method="post"> <input type="hidden" name="id" value="<?php echo $news['id']; ?>"> <input type="hidden" name="delete" value="1"> <input type="submit" value="Delete"></form></td> </tr> <?php $reply_query = tep_db_query("select news_id from " . TABLE_NEWS_REPLYS . " where news_id = $id"); $reply = tep_db_fetch_array($reply_query); if ($reply == true) { ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $reply_query2 = tep_db_query("select * from " . TABLE_NEWS_REPLYS . " where news_id = $id"); while ($reply2 = tep_db_fetch_array($reply_query2)) { ?> <form action="<?php echo tep_href_link(FILENAME_NEWS, 'action=edit_reply&id=' . $id); ?>" method="post"> <tr> <td class="main"><?php echo HEADING_NAME; ?></td> <td class="main"><input type="text" name="name" size="70" value="<?php echo $reply2['name']; ?>"></td> </tr> <tr> <td class="main"><?php echo HEADING_USERNAME; ?></td> <td class="main"><input type="text" name="username" size="70" value="<?php echo $reply2['username']; ?>"></td> </tr> <tr> <td class="main"><?php echo HEADING_EMAIL; ?></td> <td class="main"><?php echo $reply2['email']; ?></td> </tr> <tr valign="top"> <td class="main"><?php echo HEADING_CONTENT; ?></td> <td class="main"><TEXTAREA NAME="content" COLS=70 ROWS=10><?php echo $reply2['content']; ?></TEXTAREA></td> </tr> <tr> <input type="hidden" name="id" value="<?php echo $reply2['id']; ?>"> <td> </td> <td align="left"><input type="submit" value="Edit"></form> <form action="<?php echo tep_href_link(FILENAME_NEWS, 'action=delete_reply&id=' . $id); ?>" method="post"> <input type="hidden" name="id" value="<?php echo $reply2['id']; ?>"> <input type="submit" value="Delete"></form></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } } } else { ?> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo HEADING_DATE_CREATED; ?></td> <td class="dataTableHeadingContent"><?php echo HEADING_NAME; ?></td> <td class="dataTableHeadingContent" align="right"></td> </tr> <?php if (isset($HTTP_GET_VARS['page']) && ($HTTP_GET_VARS['page'] > 1)) $rows = $HTTP_GET_VARS['page'] * MAX_DISPLAY_SEARCH_RESULTS - MAX_DISPLAY_SEARCH_RESULTS; $rows = 0; $products_query_raw = "select id, date_created, name, replys, content from " . TABLE_NEWS; if ($HTTP_GET_VARS['month'] == true) { $products_query_raw .= " where month_date = '" . $HTTP_GET_VARS['month'] . "'"; } $products_query_raw .= " order by date_created DESC"; $products_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $products_query_raw, $products_query_numrows); $products_query = tep_db_query($products_query_raw); while ($products = tep_db_fetch_array($products_query)) { $rows++; if (strlen($rows) < 2) { $rows = '0' . $rows; } ?> <tr class="dataTableRow"> <td class="dataTableContent"><?php echo tep_date_short($products['date_created']); ?></td> <td class="dataTableContent"><u><?php echo '<a href="' . tep_href_link(FILENAME_NEWS, 'action=edit&id=' . $products['id'] . '&page=' . $HTTP_GET_VARS['page'], 'NONSSL') . '">' . $products['name'] . '</a></u>'; ?></td> <td class="dataTableContent" align="center"><?php echo HEADING_REPLIES; ?> <?php echo $products['replys']; ?> </td> </tr> <?php } ?> </table></td> </tr> <tr> <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td> </tr> <tr> <td align="right" class="main"> <?php if ($HTTP_GET_VARS['update'] == 'true') { echo '<font color="green">' . HEADING_SUCCESS . '</font> '; } elseif ($HTTP_GET_VARS['update'] == 'false') { echo '<font color="red">' . HEADING_FAILED . '</font> '; } ?><a href="<?php echo tep_href_link('create_rss.php'); ?>"><u>Create RSS</u></a> <?php echo '<a href="' . tep_href_link(FILENAME_NEWS, 'action=new"><u>New Article</u></a>'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <?php } ?> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> would be nice if someone could tellme why
  9. avatarium

    Contribution Issue

    Hi all Thanks for the contrib. It works great. Except for 1small thin that drivesme buggy. I only use this for my index and the colum_right breaks frame and zips pass my header. you ca see it here: http://thedecorehoppe.com anyone?
  10. avatarium

    box headings for manufacturers

    Hi all. Ok...I got a template that I like but I cant figure out how to add the sts $'s to it or for that mater how to get to the template unless I go throught file manager. I must not understand the dir. also I think I need to change the code in the template but not sure what or where. I counld use a little help. Here is the template code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <title>Company Name Website</title> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#ffffff"> <map name="map01"> <area href="" alt="" coords="44,14,96,31"> <area href="" alt="" coords="100,14,166,31"> </map> <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"> <tr> <td width="50%" background="images/bg.gif" height="663"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td> <td valign="bottom" background="images/bg_left.gif" height="663"><img src="images/bg_left.gif" alt="" width="17" height="16" border="0"></td> <td height="663" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="780" align="center" background="images/fon_top.gif"> <tr> <td height="103"><p><img src="images/logo.gif" alt="" width="189" height="41" border="0"></p><br></td> <td valign="bottom" align="right"><img src="images/e_top.gif" width="369" height="61" alt="" border="0" usemap="#map01"></td> </tr> </table> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/main01.jpg" width="198" height="197"><img src="images/main02.jpg" width="582" height="197"></td> </tr> <tr> <td height="33" background="images/fon02.gif"> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><a href="index.php"><img src="images/but01.gif" width="97" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"><a href="#"><img src="images/but02.gif" width="101" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"><a href="#"><img src="images/but03.gif" width="91" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"><a href="#"><img src="images/but04.gif" width="98" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"><a href="#"><img src="images/but05.gif" width="88" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"><a href="#"><img src="images/but06.gif" width="89" height="33" border="0"></a><img src="images/separator.gif" width="2" height="33"></td> <td width="134"><img src="images/main03.jpg" width="134" height="33"></td> </tr> </table> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="780" align="center" background="images/fon_top.jpg"> <tr> <td><img src="images/top01.jpg" width="198" height="138" alt="" border="0"></td> <td width="288" height="138" valign="top"> <br> <p class="right"><img src="images/e01.gif" width="30" height="30" alt="" border="0" hspace="10" align="left"><b>WELCOME TO<br>OUR HI FI ONLINE COMPANY</b></p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci</p> </td> <form action="" method="post"> <td valign="bottom" background="images/top03.jpg" width="294" height="138"> <div style="margin-left: 100px; padding-bottom: 10px;"> <input type="Text" name="" value="USERNAME" size="15"><br> <input type="Text" name="" value="PASSWORD" size="10"><input type="Image" src="images/b_go.jpg" width="23" height="27" alt="" border="0" hspace="10" align="absbottom"> </div> <p class="bot" style="margin-bottom: -5px; margin-left: 40px;"><a href=""><img src="images/e_pass.gif" width="12" height="12" alt="" border="0" align="texttop"> <b>Password reminder</b></a></p> </td> </form></tr> </table> <p class="px"> <table border="0" cellspacing="0" cellpadding="0" width="780" align="center"> <tr bgcolor="#BCBCBC"> <td width="198"><img src="images/left01.gif" alt="" width="198" height="29" border="0"></td> <td width="288"><img src="images/fon01.gif" alt="" width="288" height="29" border="0"></td> <td align="right" width="294"><img src="images/right01.gif" alt="" width="294" height="29" border="0"></td> </tr> <tr valign="top"> <td width="198" bgcolor="#FF3C40" background="images/fon_left.jpg"> <div align="center"><img src="images/left_top.jpg" alt="" width="198" height="16" border="0"></div> <p class="left"><img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat.</p> <p class="left"><a href="#">Read more</a></p> <div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div> <p class="left"><img src="images/e_punct_w.gif" width="5" height="5" alt="" border="0" align="absmiddle"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat.</p> <p class="left"><a href="">Read more</a></p> <div align="center"><img src="images/hr01.jpg" width="198" height="26" alt="" border="0"></div> </td> <td width="288"> <p><img src="images/temp02.jpg" width="98" height="98" alt="" border="0" align="right"><b>Some New Product<br>Features List</b></p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetuer adipiscing.</p> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetuer adipiscing.</p> </td> <td width="294" background="images/e03.gif"> <div align="center"><img src="images/right01.jpg" width="294" height="15" alt="" border="0"></div> <table border="0" cellspacing="0" cellpadding="0" width="95%" background="" align="right"> <tr> <td> <a href=""><img src="images/temp01.jpg" width="96" height="65" alt="" border="0"></a><br> <a href=""><img src="images/b_buy.gif" width="89" height="29" alt="" border="0"></a><br> <a href=""><img src="images/b_add.gif" width="90" height="29" alt="" border="0"></a><br> </td> <td> <p class="right"><b>SOME PRODUCT NAME DESCRIPTION</b></p> <p class="right"><img src="images/e_punct_b.gif" width="5" height="5" alt="" border="0" align="absmiddle"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat.</p> <p class="right"><a href="">Read more</a></p> </td> </tr> <tr> <td colspan="2"><img src="images/e02.gif" width="271" height="12" alt="" border="0"></td> </tr> <tr> <td> <a href=""><img src="images/temp01.jpg" width="96" height="65" alt="" border="0"></a><br> <a href=""><img src="images/b_buy.gif" width="89" height="29" alt="" border="0"></a><br> <a href=""><img src="images/b_add.gif" width="90" height="29" alt="" border="0"></a><br> </td> <td> <p class="right"><b>SOME PRODUCT NAME DESCRIPTION</b></p> <p class="right"><img src="images/e_punct_b.gif" width="5" height="5" alt="" border="0" align="absmiddle"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh commodo consequat.</p> <p class="right"><a href="">Read more</a></p> </td> </tr> </table> </td> </tr> </table> <div class="px" align="center"><img src="images/bot01.jpg" width="780" height="9" alt="" border="0"></div> <table border="0" cellspacing="0" cellpadding="0" width="780" align="center"> <tr> <td><p>Copyright ® 2003 CompanyName.com</p></td> <td height="50"> <p class="bot"><b> <a href="">Home</a> <a href="">About us</a> <a href="">Support</a> <a href="">Services</a> <a href="">Contacts</a> <a href="">Help</a> <a href="">FAQ</a> </b></p> </td> </tr> </table> <p align="center">website templates from <a href="http://www.wyomingwebdesign.com/">wyomingwebdesign.com</a> </td> <td valign="bottom" background="images/bg_right.gif" height="663"><img src="images/bg_right.gif" alt="" width="17" height="16" border="0"></td> <td width="50%" background="images/bg.gif" height="663"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td> </tr> </table> </body> </html> Any help would b greatly apresiated.
  11. avatarium

    [Contribution] STS v4

    Hi all Love this version! thank you! I have played around with it several time and donot like what I create. lol was courious if anyone has a nice template that i could get with instrutions ? I would be willing to pay if I need to.
  12. look towards the bottom of admin It says link manager you should see another link in configuration
  13. I found it. link_submit.php in languages/english/ was empty lol thanks Jack
  14. hey all, I have installed link 1.4b. And I have a problem with the link_submit.php it displays like this: HEADING_TITLE TEXT_MAIN_RECIPROCAL CATEGORY_WEBSITE * Required information ENTRY_LINKS_TITLE ENTRY_LINKS_TITLE_TEXT ENTRY_LINKS_URL ENTRY_LINKS_URL_TEXT ENTRY_LINKS_CATEGORY Family Giftoutdoor cooking ENTRY_LINKS_CATEGORY_TEXT ENTRY_LINKS_SUGGESTION ENTRY_LINKS_DESCRIPTION ENTRY_LINKS_DESCRIPTION_TEXT ENTRY_LINKS_IMAGE ENTRY_LINKS_IMAGE_TEXTTEXT_LINKS_HELP_LINK Your Contact Information ENTRY_LINKS_CONTACT_NAME ENTRY_LINKS_CONTACT_NAME_TEXT E-Mail Address: * CATEGORY_RECIPROCAL ENTRY_LINKS_RECIPROCAL_URL ENTRY_LINKS_RECIPROCAL_URL_TEXTTEXT_LINKS_HELP_LINK and this is the code: <?php /* $Id: links_submit.php,v 1.00 2003/10/03 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // needs to be included earlier to set the success message in the messageStack require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS_SUBMIT); require(DIR_WS_FUNCTIONS . 'links.php'); $process = false; if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) { $process = true; $links_title = tep_db_prepare_input($HTTP_POST_VARS['links_title']); $links_url = tep_db_prepare_input($HTTP_POST_VARS['links_url']); $links_category = tep_db_prepare_input($HTTP_POST_VARS['links_category']); $links_category_suggest = tep_db_prepare_input($HTTP_POST_VARS['links_cat_suggest']); $links_description = tep_db_prepare_input($HTTP_POST_VARS['links_description']); $links_image = tep_db_prepare_input($HTTP_POST_VARS['links_image']); $links_contact_name = tep_db_prepare_input($HTTP_POST_VARS['links_contact_name']); $links_contact_email = tep_db_prepare_input($HTTP_POST_VARS['links_contact_email']); if (LINKS_RECIPROCAL_REQUIRED == 'True') $links_reciprocal_url = tep_db_prepare_input($HTTP_POST_VARS['links_reciprocal_url']); $error = false; if (strlen($links_title) < ENTRY_LINKS_TITLE_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_TITLE_ERROR); } if (strlen($links_url) < ENTRY_LINKS_URL_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_URL_ERROR); } if (strlen($links_description) < ENTRY_LINKS_DESCRIPTION_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_DESCRIPTION_ERROR); } if (strlen($links_contact_name) < ENTRY_LINKS_CONTACT_NAME_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_CONTACT_NAME_ERROR); } if (strlen($links_contact_email) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($links_contact_email) == false) { $error = true; $messageStack->add('submit_link', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } if (LINKS_RECIPROCAL_REQUIRED == 'True') { if (strlen($links_reciprocal_url) < ENTRY_LINKS_URL_MIN_LENGTH) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_RECIPROCAL_URL_ERROR); } else if (CheckURL($links_reciprocal_url) == 0) { $error = true; $messageStack->add('submit_link', sprintf(ENTRY_LINKS_RECIPROCAL_URL_MISSING_ERROR, $links_reciprocal_url)); } } else $links_reciprocal_url = ''; // CHECK FOR DUPLICAE ENTRIES if (LINKS_CHECK_DUPLICATE == 'True') { $duplink_query = tep_db_query("select l.links_id, l.links_url, l.links_reciprocal_url, ld.links_id, ld.links_title from " . TABLE_LINKS . " l, " . TABLE_LINKS_DESCRIPTION . " ld where l.links_id = ld.links_id AND (ld.links_title = '" . $links_title . "' OR l.links_url = '" . $links_url . "' OR l.links_reciprocal_url = '" . $links_reciprocal_url . "' ) AND language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($duplink_query) > 0) { $error = true; $messageStack->add('submit_link', ENTRY_LINKS_DUPLICATE_ERROR); } } if ($error == false) { if($links_image == 'http://') { $links_image = ''; } // default values $links_date_added = 'now()'; $links_status = '1'; // Pending approval $links_rating = '0'; $sql_data_array = array('links_url' => $links_url, 'links_image_url' => $links_image, 'links_contact_name' => $links_contact_name, 'links_contact_email' => $links_contact_email, 'links_reciprocal_url' => $links_reciprocal_url, 'links_category_suggest' => $links_category_suggest, 'links_date_added' => $links_date_added, 'links_status' => $links_status, 'links_rating' => $links_rating); tep_db_perform(TABLE_LINKS, $sql_data_array); $links_id = tep_db_insert_id(); $categories_query = tep_db_query("select link_categories_id from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_name = '" . $links_category . "' and language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); $link_categories_id = $categories['link_categories_id']; tep_db_query("insert into " . TABLE_LINKS_TO_LINK_CATEGORIES . " (links_id, link_categories_id) values ('" . (int)$links_id . "', '" . (int)$link_categories_id . "')"); $language_id = $languages_id; $sql_data_array = array('links_id' => $links_id, 'language_id' => $language_id, 'links_title' => $links_title, 'links_description' => $links_description); tep_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array); // build the message content $name = $links_contact_name; //send message to link partner $email_text = sprintf(EMAIL_GREET_NONE, $links_contact_name); $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //send message to store owner $RECIPROCAL = (LINKS_RECIPROCAL_REQUIRED == 'True') ? $links_reciprocal_url : 'Not Required'; $newlink_subject = sprintf(EMAIL_OWNER_TEXT, $name, $links_url, $RECIPROCAL); tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $newlink_subject, $name, $links_contact_email); tep_redirect(tep_href_link(FILENAME_LINKS_SUBMIT_SUCCESS, '', 'SSL')); } } // links breadcrumb $breadcrumb->add(NAvb script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_LINKS_HELP) . '\')">' . TEXT_LINKS_HELP_LINK . '</a>'; ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_CONTACT; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table width="60%" border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main" width="25%"><?php echo ENTRY_LINKS_CONTACT_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('links_contact_name') . ' ' . (tep_not_null(ENTRY_LINKS_CONTACT_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_CONTACT_NAME_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td> <td class="main"><?php echo tep_draw_input_field('links_contact_email') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php if (LINKS_RECIPROCAL_REQUIRED == 'True') { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_RECIPROCAL; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table width="60%" border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main" width="25%"><?php echo ENTRY_LINKS_RECIPROCAL_URL; ?></td> <td class="main"><?php echo tep_draw_input_field('links_reciprocal_url', 'http://') . ' ' . (tep_not_null(ENTRY_LINKS_RECIPROCAL_URL_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_RECIPROCAL_URL_TEXT . '</span>': ''); ?><?php echo '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_LINKS_HELP) . '\')">' . TEXT_LINKS_HELP_LINK . '</a>'; ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php include(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php include(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> If you want to look at the site it's at http://thedecoreshoppe.com
  15. hey Jack I'm trying to install all products but I get this error . /home/www/thedecoreshoppe.com/OSCommerce/catalog/allprods.sql: line 1: syntax error near unexpected token `(' /home/www/thedecoreshoppe.com/OSCommerce/catalog/allprods.sql: line 1: `insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('600', 'All Products Image Width', 'ALLPROD_IMAGE_WIDTH', '100', 'The pixel width of heading images', '4', '5', '2003-07-31 19:35:01', '2003-07-24 17:45:15', NULL, NULL); ' this is the line of the allprods.sql insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('600', 'All Products Image Width', 'ALLPROD_IMAGE_WIDTH', '100', 'The pixel width of heading images', '4', '5', '2003-07-31 19:35:01', '2003-07-24 17:45:15', NULL, NULL); I cant find what it is talking about.
×