Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

deltabiri

Members
  • Content count

    94
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    deltabiri got a reaction from Pronux in Tab Menu Section (TMS) and Pronux TMS For Admin Support Thread   
    yes, work tab and ask question....
    my product installed tab: link product tab
    work ask question: link ask question to work
     
    I found site web installed ask question into tab menu: link site working
     
    no errors, I do not know how to call contribution .....$TMS->tab[3]['content'] = $askTabContent; ?? no work
  2. Like
    deltabiri got a reaction from Pronux in Tab Menu Section (TMS) and Pronux TMS For Admin Support Thread   
    Identic problem ask question, my code:

    <?php //PRONUX TMS START include DIR_WS_INCLUDES.'TMS/Conf.php'; $TMS->tab[1]['content'] = $product_info['products_description']; $TMS->tab[2]['content'] = $reviewTabContent = ''; $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$product_info['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and r.reviews_status = 1 order by r.reviews_id desc"; $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); if ($reviews_split->number_of_rows > 0) { if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) { $reviewTabContent = ' <div class="contentText"> <p style="float: right;">'. TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))) .'</p> <p>'. $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS) .'</p> </div> <br />'; } $reviews_query = tep_db_query($reviews_split->sql_query); while ($reviews = tep_db_fetch_array($reviews_query)) { $reviewTabContent .= ' <div> <span style="float: right;">'.sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added'])) .'</span> <h2><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $product_info['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</a> </h2> </div> <div class="contentText"> '. tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br />') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i> </div>'; } } else { $reviewTabContent = ' <div class="contentText"> <?php echo TEXT_NO_REVIEWS; ?> </div>'; } $TMS->tab[2]['content'] = $reviewTabContent; $TMS->tab[3]['content'] = $askTabContent; $TMS->setLanguage('', $_SESSION['language']); $TMS->generateTabMenuSection(true); //PRONUX TMS END ?>
     
    ask question works out tab, contribution for 2.3 is ask question
  3. Like
    deltabiri got a reaction from Pronux in Tab Menu Section (TMS) and Pronux TMS For Admin Support Thread   
    hello pronux, im two problem validator.w3.org
    <a class="pronuxLink" hidefocus="true";
    and
    (z=1;z<100;z++)
    code to TabMenuSection.php
     
    is possible validation this code?
    thanks
×