Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

nexius2

Members
  • Content count

    9
  • Joined

  • Last visited

Profile Information

  • Real Name
    Grosset Sylvain
  1. nexius2

    NewsDesk v1.48 Support

    I seem to have a probleme with the search box... when the news are not in a categorie folder, the search box doesn't look through them. and when I don't type anything in the search box, a blank page whis an error apears. Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp\www\****\includes\languages\french\newsdesk_search_result.php:19) in c:\easyphp\www\****\includes\functions\general.php on line 33 could someone check if it does the same thing on there newsdesk! thanks
  2. nexius2

    NewsDesk v1.48 Support

    if you want the news to be only in the bank categorie, I would be looking to do something like this if $categories = 'bank' { require (FILENAME_NEWSDESK); } else { }
  3. nexius2

    NewsDesk v1.48 Support

    nop, didn't say nothing....juste needed to open up my eyes !
  4. nexius2

    NewsDesk v1.48 Support

    hum...could you be a bit clearer, because FILENAME_SEARCH_RESULT and FILENAME_NEWSDESK_SEARCH_RESULT don't exist in oscommerce nor in newsdesk.... but there is a FILENAME_ADVANCED_SEARCH_RESULT ...
  5. nexius2

    NewsDesk v1.48 Support

    with this code it looks in descritpion and shorttext but will only work if there is 1 word in the text... $categories_query = tep_db_query("select cd.newsdesk_id, cd.language_id, cd.newsdesk_article_name, cd.newsdesk_article_description, cd.newsdesk_article_shorttext from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_DESCRIPTION . " cd where cd.language_id = '" . $languages_id . "' and cd.newsdesk_article_description or cd.newsdesk_article_shorttext like '%" . $HTTP_GET_VARS['search'] . "%' order by cd.newsdesk_article_name");
  6. nexius2

    NewsDesk v1.48 Support

    for the admin search I'm stuck I guess the part that needs to be moded is: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.catagory_status from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' and cd.categories_name like '%" . $HTTP_GET_VARS['search'] . "%' order by c.sort_order, cd.categories_name"); } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.catagory_status from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by c.sort_order, cd.categories_name");} I have tried this: $categories_query = tep_db_query("select c.newsdesk_id, cd.categories_name, c.language_id, c.newsdesk_article_name, c.newsdesk_article_description, c.newsdesk_article_shorttext from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_DESCRIPTION . " cd where cd.language_id = '" . $languages_id . "' and cd.categories_name like '%" . $HTTP_GET_VARS['search'] . "%' or cd.newsdesk_article_name like '%" . $HTTP_GET_VARS['search'] . "%' or cd.newsdesk_article_description like '%" . $HTTP_GET_VARS['search'] . "%' or cd.newsdesk_article_shorttext like '%" . $HTTP_GET_VARS['search'] . "% order by c.sort_order, cd.categories_name"); I'm not far I think but can't get it yet... if anyone has allready worked on it...
  7. nexius2

    NewsDesk v1.48 Support

    if you want to add an image in the news, juste add <IMG SRC="../image.gif" WIDTH="30" HEIGHT="20" BORDER=0 ALT=""> where ever you want in the news text... if you want it above the news...same thing in the code were you want it
  8. nexius2

    NewsDesk v1.48 Support

    If you only want 1 banner on your site, you should put <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?> were ever you want in your newsdesk section... that would make it useable throught the admin section...
  9. nexius2

    NewsDesk v1.48 Support

    hello, I have 2 litlle things I would like to do but can't really figure out how to do it... in the admin section, when you try to search a news, it only looks throught the titles... how can I search also in the summary and text section...looks like I have to use newsdesk_article_shorttext but i can't figure it out.... almost the same thing. in catalogue section, when I do a search, it doesn't look out in the news... an idea?
×