Jump to content

jeellison

Members
  • Content count

    38
  • Joined

  • Last visited

Profile Information

  • Real Name
    J
  • Gender
    Male
  1. Well I have a image that spans across the whole page with the heading for each category in it. So when it re-adds it it shifts the image across therefore messing up the page. I would rather just not have it. Is this possible. Thanks
  2. Its on each category page (where it lists the products) It put the name of the 'Header Tags Category Title' as a bold title and if left blank it fills it it as the category name. It doesnt matter though because I can just do the clear all tags for the categories. Cheers
  3. Yes, I have removed the code thanks. Back to my original query though, I am still getting the category title displaying which is messing up my pages. The only way to remove them is to do a clear all tags in the 'fill tags' section of your contribution. But as soon as I change the category page in catalog it re-appears again. How do I stop this please? Best Regards
  4. Just one more thing. I take it I am receiving this error because I am running this on a windows hosting environment? Permissions settings for the D:/********.co.uk/wwwroot/catalog/includes/header_tags.php file appear to be incorrect. Change to 777 Thanks Again.
  5. Jack, I knew I was being think. I just have the admin access error now and it seems your contribution is working nicely. Thanks alot for it and your help. Best Regards Music
  6. Yes, I am using the admin access contribution. Ive been through everything again and notice this one difference in your code for installing admin. This is in categories.php, where you say: Around line 877, find this code: $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 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and cd.categories_name like '%" . tep_db_input($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 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); and replace it with // HTC BOC $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, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and cd.categories_name like '%" . tep_db_input($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, cd.categories_htc_title_tag, cd.categories_htc_desc_tag, cd.categories_htc_keywords_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); // HTC EOC Im my original categories.php I think it had already been changed using OLISWISS code. I had: $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 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and cd.categories_name like '%" . tep_db_input($search) . "%' order by c.sort_order, cd.categories_name"); } else { // BOF: KategorienAdmin / OLISWISS if ($admin_cat_access == "ALL") { $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 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); } else if ($admin_cat_access == ""){ $categories_query = tep_db_query(""); } 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 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and (c.parent_id or c.categories_id in (" . $admin_cat_access . ")) and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.sort_order, cd.categories_name"); } // EOF: KategorienAdmin / OLISWISS I have replaced the one line of code with your two lines and am getting no errors now apart from not been able to access text cotrol and fill tags from admin. I was wandering if this could be causing the no access problem? I have checked the Header_tags_controller in the define groups section but should there be sub headers too for access text cotrol and fill tags? Hey, I appreciate your help on this. Thanks
  7. Ok so mayeb I dont have this quite working because when I log into the admin area. I get the main page titles Header Tags Controller (header_tags_controller.php) but when I click on the text control or fill tages, it directs me to the forbiden.php. Now i tried going into admin>member groups and editing the group to see if there are any extra tick boxes which need checking but I get Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\welovedeli.co.uk\wwwroot\catalog\admin\includes\functions\database.php on line 107 function tep_db_num_rows($db_query) { return mysql_num_rows($db_query); -----------------line 107. } Any ideas please Jack?
  8. Hi Jack, Yes, you were right, I put some of your code in the wrong file. Everything seems to be working now. This is great thanks. Just one thing, how do I remove the category heading from each page as they have now re-appeared? Im sure ill work it out. Thanks
  9. Ok so I have fixed the headings so it displays the correct text but when i click the links, i get the same error as above. Soo close. Thanks
  10. Hello Fellow oscommerce users. I have been working on this all day and after reading hundreds of posts I am still the none wiser. Seems no-one is having this problem. Everything seems to work with regards to adding new products but when Im in the admin area this is what I see: but if I click on the main heade: BOX_HEADING_HEADER_TAGS_CONTROLLER I get the error: Warning: require(includes/languages/english/FILENAME_HEADER_TAGS_CONTROLLER) [function.require.php]: failed to open stream: No such file or directory in D:\welovedeli.co.uk\wwwroot\catalog\admin\header_tags_controller.php on line 15 Fatal error: require() [function.require.php]: Failed opening required 'includes/languages/english/FILENAME_HEADER_TAGS_CONTROLLER' (include_path='.;C:\PHP5\php') in D:\welovedeli.co.uk\wwwroot\catalog\admin\header_tags_controller.php on line 15 I know I am close to getting this to work if anyone has any suggestions? Best Regards M
  11. Hi All, Ive had this problem for days now and still cannot solve it. I have messed with the code so much now I dont know what I have done. Everything works apart from I am getting this problem when logged in as any other user apart from admin and viewing the catalog pages: 1065 - Query was empty [TEP STOP] I have tried using your code Thomas but it just isnt going away. Is there are direct files I can upload? Best Regards Jim
×