Jump to content

olsonsp4c

Members
  • Content count

    545
  • Joined

  • Last visited

Posts posted by olsonsp4c


  1. Hi all! I have been working on this problem and still can't get this to work properly. The transaction goes through, but I get this error (and so does the client)

     

    Fatal error: Cannot redeclare class ot_subtotal in /home/.../includes/modules/order_total/ot_subtotal.php on line 13

     

    Subsequently they do not get notified & get that error. Has anyone else run into this? Its driving me nuts!

     

    OK, I don't know if anybody (besides me) is getting the above error AFTER changing:

     

    include(DIR_WS_CLASSES . 'order_total.php');

     

    to

     

    require_once(DIR_WS_CLASSES . 'order_total.php');

     

    to avoid the "Fatal error: Cannot redeclare class ot_subtotal in /home/.../includes/classes/order_total.php" in PayPal IPN v1.4

     

    However, I tracked down the problem... it is in catalog/includes/classes/order_total.php

     

    Find this:

     

    		  include(DIR_WS_LANGUAGES . $language . '/modules/order_total/' . $value);
    	  include(DIR_WS_MODULES . 'order_total/' . $value);

     

    Change to:

     

    		  require_once(DIR_WS_LANGUAGES . $language . '/modules/order_total/' . $value);
    	  require_once(DIR_WS_MODULES . 'order_total/' . $value);

     

    Now, the emails send, the order is recorded, etc... HOWEVER, the order status will not change from "Preparing [Paypal IPN]" to "Pending" anymore...

     

    Any thoughts out there in the community?

     

    Scott


  2. I must say I love this contribution! Excellent work.

     

    Now having said that, I have a couple of questions/requests that I think can make it even better.

     

    1. If on the ring tones selector in the admin if there was a way to press play to preveiw each one before selecting it (other wise I have to test it from the user side each time, or from my computer (good for the staff as well).

     

    2. Is there a way to set the window size of the popup on the users end so that it is just slightly larger than the border (like the admin is) currently mine comes up short of a full page with lots of wasted white space.

     

    3. Is there a way to make the admin window turn orange in the bottom (start menu) when the window is minimized when there is someone waiting (many other programs do this for various reasons i.e. yahoo IM)

     

    I would start looking into it but I am not a programmer and I have so many other things on my plate, but I thought I would throw it out there.

     

    Thanks again,

     

    Thanks... 2 of those suggestion could just go directly to dynahost that wrote the actual software at http://www.dayanahost.com/forum2/index.php...SF&f=8& (I just ported it to osCommerce and customized it a bit)

     

    The popup in the catalog and admin can be changed in size. Just look at the javascript in the infobox file and in the admin/includes/header.php and look for the height width settings which are large numbers like 500, 450 or something like that...

     

    Scott


  3. Here is the fix in catalog/product_info.php

     

    replace this:

    				<td align="center" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_blank"><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle">' . TEXT_PDF_DOWNLOAD1 . ' <td><td valign="middle">' . tep_image('images/pdf.png',TEXT_PDF_DOWNLOAD2) .'</td></tr></table></a>'; ?></td>

     

    with this:

    				<td align="center" valign="middle" class="main"><?php echo '<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle"><a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_blank">' . TEXT_PDF_DOWNLOAD1 . '</a> <td><td valign="middle"><a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_blank">' . tep_image('images/pdf.png',TEXT_PDF_DOWNLOAD2) .'</a></td></tr></table>'; ?></td>

     

    Scott


  4. I have a new version out 1.7: http://addons.oscommerce.com/info/1077

     

    Since v1.6.4

    ------------

    * Added most available options to the admin

    * Added a few options to the Admin that didn't exist

    * Eliminated unnecessary options from config file

    * Multi-lingual ready

    * Patched the "Divide by Zero" error when no image exists and "Keep Image Proportions" is set to "Yes"

    * Further streamlined product_info link

    * Streamlined and updated the code

    * Removed the previously integrated code for the "options as images" addon; placed it in a separate folder

    * Cleaned up the installation doc

    * Added update doc

    * Added screenshots

     

    Scott


  5. I have a new version out 1.7: http://addons.oscommerce.com/info/1077

     

    Since v1.6.4

    ------------

    * Added most available options to the admin

    * Added a few options to the Admin that didn't exist

    * Eliminated unnecessary options from config file

    * Multi-lingual ready

    * Patched the "Divide by Zero" error when no image exists and "Keep Image Proportions" is set to "Yes"

    * Further streamlined product_info link

    * Streamlined and updated the code

    * Removed the previously integrated code for the "options as images" addon; placed it in a separate folder

    * Cleaned up the installation doc

    * Added update doc

    * Added screenshots

     

    Scott


  6. I re-uploaded the entire fileset and drop the supertracker table and re-created the table.

     

    Still no luck.

     

    my guess is that something must not be compatible.

     

    Steven

     

    Steven, my last guess is that there is some sort of server software requirement that your server has not installed... you might look into that and inquire with your hosting support team... often they can install packages for you for free...

     

    Scott


  7. I have went through all of the post on this forum and a few others, and I still have not been able to solve my problem.

    I am still getting a black index.php page when i add:

     

    // Supertracker

    require(DIR_WS_CLASSES . 'supertracker.php');

    $tracker = new supertracker;

    $tracker->update();

     

    to the application_top.php. I have even added the agent field and that did not do anything either.

     

    If anyone has any other suggestions they would be much appreciated!

     

    Thanks!

     

    sacunnin

     

    The only suggestion I have is to verify that you actually uploaded the files to the correct directories because it sounds like it is trying to find a file that isn't there...

     

    Scott


  8. I have the next ten button working on 3 different sites, so I'm not sure why it doesn't for others - possibly it requires something installed on your server? it is an easy fix though - just revert the button code to the old code and you'll be fine:

     

    in catalog/admin/supertracker.php

     

    Find this:

     

    <br><strong><a href="supertracker.php?special=last_ten&offset=<?php echo $offset + 10;?>&filter=<?php echo $filter;?>&refer_match=<?php echo $refer_match;?>"><input type="submit" value="<?php echo TABLE_TEXT_NEXT_TEN_RESULTS; ?>"></a></strong>

     

    Replace with this:

     

    <br><strong><a href="supertracker.php?special=last_ten&offset=<?php echo $offset + 10;?>&filter=<?php echo $filter;?>&refer_match=<?php echo $refer_match;?>"><?php echo TABLE_TEXT_NEXT_TEN_RESULTS; ?></a></strong>

     

    Scott


  9. Ok, I also followed the directions and have been over every part of them and I have the problem of the blank screen. I cannot even get to the admin it is just completely blank.

     

    Now I am curious though I did not see and .sql files there was nothing to upload to the database?

     

    Am I missing something here. I have been looking on the daymb forums for answers as well, not much luck so far.

     

    I don't understand what you mean by blank screen. please post screenshots.

     

    The sql is automatically added. there is no sql to upload.

     

    Scott


  10. I got it working now, by moving the form as you suggested. Thank you!!

    Very good contribution.

    Lollo

     

    I'm glad - I apologize for not getting back with you yesterday... however, I remember when I first started with osC and the learning curve with the code was quite large and a real learning experience! Now you've helped someone else who might have the same problem...

     

    Just in case someone else is reading this and has a similar issue - any mods to the customers_testimonials_write.php file will require you to make sure that the "<form...>" and "</form>" tags are in their proper place (started and ended next to the same <table>, <tr>, or <td> AND </table>, </tr>, or </td> tags respectively) in the code logic to make sure the reCaptcha is included in the submission...

     

    Scott


  11. Thanks for the reply Scott.

     

    I looked through the code of the contrib before I tried installing it on the admin side and didn't notice anything that points towards the catalog side. That's why I gave it a try. But I quess there's something pointing it towards the admin, but I can't spot it.

     

    Thanks anyway. ;)

     

    your welcome...


  12. Hi again,

     

    I have tried to re install this part (it works on create account and contact_us), with the same result. I do not understand, due to my limited skill here. Have tried with both

     

    "<td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td>"

     

    and

     

    "<td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, null, ($request_type == 'SSL')); ?></td>"

     

    This is the present code:

     

    "<?php

    /*

    $Id: customer_testimonials.php 10/20/2008 Exp $

    Released under the GNU General Public License

    */

     

    require('includes/application_top.php');

     

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CUSTOMER_TESTIMONIALS);

     

    // start modification for reCaptcha

    require_once('includes/classes/recaptchalib.php');

    // end modification for reCaptcha

     

    $testimonials_error = false;

    if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'insert')) {

    $testimonials_id = tep_db_prepare_input($HTTP_POST_VARS['testimonials_id']);

    $testimonials_title = tep_db_prepare_input($HTTP_POST_VARS['testimonials_title']);

    $testimonials_name = tep_db_prepare_input($HTTP_POST_VARS['testimonials_name']);

    $testimonials_email = tep_db_prepare_input($HTTP_POST_VARS['testimonials_email']);

    $testimonials_location = tep_db_prepare_input($HTTP_POST_VARS['testimonials_location']);

    $html_text = tep_db_prepare_input($HTTP_POST_VARS['html_text']);

     

    if (empty($testimonials_title)) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ERROR_TESTIMONIALS_TITLE_REQUIRED);

    }

    if (empty($testimonials_name)) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ERROR_TESTIMONIALS_NAME_REQUIRED);

    }

    if (empty($testimonials_email)) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ERROR_TESTIMONIALS_EMAIL_REQUIRED);

    }

    if (!tep_validate_email($testimonials_email)) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

    }

    if (empty($html_text)) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED);

    }

     

    // start modification for reCaptcha

    // the response from reCAPTCHA

    $resp = null;

     

    // was there a reCAPTCHA response?

    $resp = recaptcha_check_answer (RECAPTCHA_PRIVATE_KEY,

    $_SERVER["REMOTE_ADDR"],

    $_POST["recaptcha_challenge_field"],

    $_POST["recaptcha_response_field"]);

     

    if (!$resp->is_valid) {

    $testimonials_error = true;

    $messageStack->add('testimonials', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA output: " . $resp->error . ")");

    }

    // end modification for reCaptcha

     

    if (!$testimonials_error) {

    $sql_data_array = array('testimonials_title' => $testimonials_title,

    'testimonials_location' => $testimonials_location,

    'testimonials_name' => $testimonials_name,

    'testimonials_email' => $testimonials_email,

    'testimonials_html_text' => $html_text);

     

    if ($HTTP_GET_VARS['action'] == 'insert') {

    $insert_sql_data = array('date_added' => 'now()',

    'status' => '0');

    $sql_data_array = array_merge($sql_data_array, $insert_sql_data);

    tep_db_perform(TABLE_CUSTOMER_TESTIMONIALS, $sql_data_array);

    $testimonials_id = tep_db_insert_id();

    // email notification added by maestro

    $email_text = TESTIMONIAL_NOTIFICATION_TEXT . $testimonials_name . TESTIMONIAL_CONJ . $testimonials_location . '.' . "\n\n" .

    TESTIMONIAL_NOTIFICATION_TITLE . $testimonials_title . "\n\n" .

    TESTIMONIAL_NOTIFICATION_HTML_TEXT . $html_text . "\n\n" .

    TESTIMONIAL_NOTIFICATION_APPROVE;

    tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, TESTIMONIAL_NOTIFICATION_SUBJECT, $email_text, $testimonials_name, $testimonials_email);

    }

    $testimonials_id = '';

    $testimonials_title = '';

    $testimonials_location = '';

    $testimonials_name = '';

    $testimonials_email = '';

    $html_text = '';

    tep_redirect(tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=success'));

    } else {

    $testimonials_id = tep_db_prepare_input($HTTP_POST_VARS['testimonials_id']);

    $testimonials_title = tep_db_prepare_input($HTTP_POST_VARS['testimonials_title']);

    $testimonials_location = tep_db_prepare_input($HTTP_POST_VARS['testimonials_location']);

    $testimonials_name = tep_db_prepare_input($HTTP_POST_VARS['testimonials_name']);

    $testimonials_email = tep_db_prepare_input($HTTP_POST_VARS['testimonials_email']);

    $html_text = tep_db_prepare_input($HTTP_POST_VARS['html_text']);

    }

    }

     

    $breadcrumb->add(NAVBAR_TITLE2, tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE));

    ?>

    <!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>

    <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

    <link rel="stylesheet" type="text/css" href="stylesheet.css">

    </head>

    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

     

    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

     

     

    <table width="100%">

    <tr>

    <td width="2%" class="col_left"><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?></td>

    <td width="96%"><table border="0" width="100%" cellspacing="3" cellpadding="3">

    <tr>

    <td width="100%" valign="top">

     

    <form name="customer_testimonial" method="post" action="<?php echo tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=insert', 'SSL'); ?>">

    <tr>

    <td width="100%" class="col_center">

    <table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading" colspan="2"><?php echo HEADING_TITLE2; ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <?php

    if ($messageStack->size('testimonials') > 0) {

    ?>

    <tr>

    <td><?php echo $messageStack->output('testimonials'); ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <?php

    }

    if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {

    ?>

    <tr>

    <td class="main" align="center"><?php echo TEXT_TESTIMONIALS_SUCCESSFUL; ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <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 '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <?php

    } else {

    if (tep_session_is_registered('customer_id')) {

    $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");

    $account = tep_db_fetch_array($account_query);

     

    $testimonials_name = $account['customers_firstname'] . ' ' . $account['customers_lastname'];

    $testimonials_email = $account['customers_email_address'];

    }

    ?>

    <tr>

    <td>

    <table width="100%" border="0" cellspacing="0" cellpadding="2">

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo TEXT_TESTIMONIALS_INTRO; ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td><table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td class="main"><b><?php echo TEXT_TESTIMONIALS_WRITE; ?></b></td>

    <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td class="infoBox"><table width="100%" border="0" cellspacing="0" cellpadding="7" class="infoBoxContents">

    <tr>

    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

    <td class="main"><?php echo TEXT_TESTIMONIALS_TITLE; ?><br>

    <?php echo tep_draw_input_field('testimonials_title', $testimonials_title, '', true); ?> <span class="inputRequirement">*</span></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo TEXT_TESTIMONIALS_NAME; ?><br>

    <?php echo tep_draw_input_field('testimonials_name', $testimonials_name, '', true); ?> <span class="inputRequirement">*</span></td>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo TEXT_TESTIMONIALS_EMAIL; ?><br>

    <?php echo tep_draw_input_field('testimonials_email'); ?> <span class="inputRequirement">*</span></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo TEXT_TESTIMONIALS_LOCATION; ?><br>

    <?php echo tep_draw_input_field('testimonials_location', $testimonials_location); ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

    </tr>

    <tr>

    <td valign="top" class="main"><?php echo TEXT_BANNERS_HTML_TEXT; ?> <span class="inputRequirement">*</span><br>

    <?php echo tep_draw_textarea_field('html_text', 'soft', '130', '10', $html_text); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr></table>

    <table cellpadding="0" cellspacing="0" border="0">

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr><td class="main"><b><?php echo ENTRY_SECURITY_CHECK1; ?></b></td></tr></table>

    <?php echo tep_draw_infoBox_top(); ?>

     

    <table border="0" width="100%" cellspacing="0" cellpadding="2">

     

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <?php

    $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'");

    $language_id = tep_db_fetch_array($languages_query);

    ?>

    <script>

    var RecaptchaOptions = {

    theme : 'clean',

    tabindex : 3,

    lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>',

    };

    </script>

    <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

     

    </table>

     

    <?php echo tep_draw_infoBox_bottom(); ?>

    <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">

    <tr>

    <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 class="main" align="left" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

    <td class="main" align="right" valign="middle"><?php echo tep_image_submit('button_submit.gif', IMAGE_BUTTON_SUBMIT); ?></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>

    </tr>

    <?php

    }

    ?>

    </table>

     

     

    </td>

    <td width="2%" class="col_right"><?php require(DIR_WS_INCLUDES . 'column_right.php'); ?></td>

    </tr>

    </table>

     

     

     

     

    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

     

    <br>

    </body>

    </html>

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>"

     

    If I do not use this tool on this page, will the

     

    "function ct_sanitise($vartosanitise) {

    $vartosanitise = preg_replace("/[^0-9]/i", "", $vartosanitise);

    return $vartosanitise;

    }"

     

    which is implemented on the customer_testimonials protect the page?

     

    Maybe it has something to do with the "SSL" function. Has tried to switch on and off in OsCommerce, but same result.

     

    Maybe you see what is wrong right away.

     

     

    Thanks

     

    Lollo

     

    It could be that the form tag has not been moved into proper placement, that is my guess - i looked at the rest of the code and it looks good - I have it working on three different sites currently for customer_testimonials and have installed for many other clients and it dropped in just fine... wish I could help more.

     

    Scott


  13. Hi Scott

     

    Can the categories be split across 2 or more lines?

     

    My categories are

    Women's Basques | Women's Bras | Women's Bustiers | Women's Camisoles | Women's G Strings | Women's Panties | Women's Thongs | Men's Boxers | Men's Briefs | Men's T-shirts | Gift Vouchers | Specials

     

    I'm sure that this can be done...

     

    It would mean creating a new line using the counter in the loop... if you know you have 9 categories and you want the line break to be after the 4th category then it would be something like:

     

     <!-- BOF: Simple Categories Menu //-->
    <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">  
      <tr>
     <td height="0">
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	 <tr>
    <?php
    $temp = count($cat_name);
    for ($t=0; $t<$temp; $t++) {
    ?>   
    	   <td align="center"><?php echo '<a href="index.php?cPath=' . $cat_id[$t] . '">' . $cat_name[$t] . '</a>' ?></td>
    <?php
      if ($temp == "4") {
     echo '
    ';
      } else {
    ?>
     if ($t == ($temp-1)) {
     } else {
    ?>
    	   <td align="center"> | </td>
    <?php
     }
      }
    }
    ?>
    	 </tr>
       </table>	
     </td>
      </tr>  
    </table>
    </body>
    </html>
    <!-- EOF: Simple Categories Menu //-->

     

    This is an idea for you to play around with...

     

    Scott


  14. Hi Scott

     

    Can the categories be split across 2 or more lines?

     

    My categories are

    Women's Basques | Women's Bras | Women's Bustiers | Women's Camisoles | Women's G Strings | Women's Panties | Women's Thongs | Men's Boxers | Men's Briefs | Men's T-shirts | Gift Vouchers | Specials

     

    I'm sure that this can be done...

     

    It would mean creating a new line using the counter in the loop... if you know you have 9 categories and you want the line break to be after the 4th category then it would be something like:

     

    <!-- BOF: Simple Categories Menu //-->
    <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">  
     <tr>
    <td height="0">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr>
    <?php
    $temp = count($cat_name);
    for ($t=0; $t<$temp; $t++) {
    ?>   
    	  <td align="center"><?php echo '<a href="index.php?cPath=' . $cat_id[$t] . '">' . $cat_name[$t] . '</a>' ?></td>
    <?php
     if ($temp == "4") {
    echo '<br>';
     } else {
    ?>
    if ($t == ($temp-1)) {
    } else {
    ?>
    	  <td align="center"> | </td>
    <?php
    }
     }
    }
    ?>
    	</tr>
      </table>	
    </td>
     </tr>  
    </table>
    </body>
    </html>
    <!-- EOF: Simple Categories Menu //-->

     

    This is an idea for you to play around with...

     

    Scott


  15. Jack,

     

    I am not familiar with SEO, and how it helps; however, I know it is useful. Could you just answer this question...

     

    Can, and should, this addon be used to compliment Ultimate SEO URLs or in place of it?

     

    Appreciate your time... Thanks so much!

     

    Scott


  16. I've installed your add on and got it working perfectly. I have added a stylesheet class to it which has set the font, size, background etc correctly but for some reason I cannot get the standard text colour to change in line with the CSS at all. Any ideas?

     

    Cheers,

     

    Luke

     

    Post the code for the menu AND the css so I can take a look please...

     

    Scott


  17. I have installed this, installed the database, made the changes in the config file, but all I get in admin side is a blank.

     

    On user side I get the dayana window, but nothing happens.

     

    I followed the installation to a "T".

     

    I have even uninstalled it, uninstalled the database 6 times and I always get the same results.

     

    Please help

     

    it would be impossible for me to suggest something without looking at it, having ftp access to your website, and to your osC admin.

     

    Scott

×