Jump to content

hungryfrank

Members
  • Content count

    427
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by hungryfrank

  1. hungryfrank

    Easy Admin Group - Login Issues

    ok thanks. I solved the PayPal issue also as you can see
  2. hungryfrank

    Easy Admin Group - Login Issues

    yes please do. I was working on my Ebay add-on also so my head is spinning. I might have erased some files by mistake.
  3. hungryfrank

    Easy Admin Group - Login Issues

    ok I have to add a language file for this. I thought I did
  4. hungryfrank

    Easy Admin Group - Login Issues

    yes this has its own add-on I did not add it to the old add-on so it can be found easier in this one I make two new file one for administrator.php and one for hMenu.php. ad use these instead of file modifications. there is no hook for adding a redirect now. so that is the only modification. I have to make a nice presentation to Burt for adding it.
  5. hungryfrank

    Easy Admin Group - Login Issues

    thanks Fredi. https://apps.oscommerce.com/QpPPm&easy-admin-group-for-phoenix1-0-6-0-easy. in this one??
  6. hungryfrank

    Easy Admin Group - Login Issues

    I uploaded the new version in its own add-on since it would be easer to find. I will add a link later
  7. hungryfrank

    Easy Admin Group - Login Issues

    https://apps.oscommerce.com/xvqqc&easy-admin-group-osc-2-3-xx. but I have made a new one that only has one file modificatiiion. just to add a hook I am testing it an will upload it in a couple of days
  8. excellent. any code that produces the desired result is fixed and working. the constants are to be defined at a different part of the shop. usually either in the language files or in the configuration table. they can be defined as ' ' to produce blank. THIS_CONSTANT_HAS_TO_BE_DEFINED define('THIS_CONSTANT_HAS_TO_BE_DEFINED',' ');
  9. hungryfrank

    Discount Add-On Coding Help (Third Attempt)

    you already had your answer from Reiner in your first attempt. he told you to do it in the admin section click on catalog and u should have a link discount code you set the discounts there.
  10. hungryfrank

    Initial Configuration

    did u try this?
  11. hungryfrank

    Initial Configuration

    which add-on do u have. at least, there are two different add ons that do this, that are written by very good community members. active helpful and knowledgeble. @raiwa has one of them.
  12. you can change wit and see what happens. I would do the same thing. if everything works then it is fine.
  13. hungryfrank

    Easy Admin Group - Login Issues

    uploaded for 1.0.6.0
  14. 12 because you want it to be full length 0 because it has to come first true because you want it if it doesn't work let me know ii will install it. it might not show the image because of its type
  15. check the path and use one of your images
  16. if you uninstall your categories box and reinstall it also module/conntent/header/messagestack
  17. hungryfrank

    Easy Admin Group - Login Issues

    ok in a few days. maybe @ecartz can help with fixing the login array and the redirect to be done with a hook or something. I have the code posted just above
  18. he defines them in the language file. both the image and the link. the images are .webp upload your images and change the name
  19. haven't used it just looking at the package there are some images in images/banners. you might have to upload them manually. and in the content module you can probably make the settings. and he says that you can define the text in the language files. I will install it if you can't figure it out
  20. hungryfrank

    Easy Admin Group - Login Issues

    I need some help. there are two modification to the core files that I was wondering if it is possible to do this with a hook or something ---------------------------------- admin/login.php ---------------------------------- FIND - $check_query = tep_db_query("select id, user_name, user_password from " . TABLE_ADMINISTRATORS . " where user_name = '" . tep_db_input($username) . "'"); REPLACE - $check_query = tep_db_query("select id, user_name, user_password, user_group_id from " . TABLE_ADMINISTRATORS . " where user_name = '" . tep_db_input($username) . "'"); --- FIND - $admin = array('id' => $check['id'], 'username' => $check['user_name']); REPLACE - $admin = array('id' => $check['id'], 'username' => $check['user_name'], 'user_group_id' => $check['user_group_id'] ); ---------------------------------- admin/includes/application_top.php ---------------------------------- Please add the code before ?> if(!check_admin_group($current_page)){ tep_redirect(tep_href_link('index.php')); }
  21. hungryfrank

    Easy Admin Group - Login Issues

    to make it work make all the changes as before. in includes/hooks/admin/siteWide/hMenu change foreach ($cl_box_groups as $groups) { $mr .= '<li class="nav-item dropdown">'; $mr .= '<a class="nav-link dropdown-toggle" href="#" id="navbar_' . $n . '" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' . $groups['heading'] . '</a>'; $al = ($n > 6) ? ' dropdown-menu-right' : ''; $mr .= '<div class="dropdown-menu' . $al . '" aria-labelledby="navbar_' . $n . '">'; foreach ($groups['apps'] as $app) { $mr .= '<a class="dropdown-item" href="' . $app['link'] . '">' . $app['title'] . '</a>'; } $mr .= '</div>'; $mr .= '</li>' . PHP_EOL; $n++; } to foreach ($cl_box_groups as $groups) { if(display_block_to_admin_group($groups['heading'])) { $mr .= '<li class="nav-item dropdown">'; $mr .= '<a class="nav-link dropdown-toggle" href="#" id="navbar_' . $n . '" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' . $groups['heading'] . '</a>'; $al = ($n > 6) ? ' dropdown-menu-right' : ''; $mr .= '<div class="dropdown-menu' . $al . '" aria-labelledby="navbar_' . $n . '">'; foreach ($groups['apps'] as $app) { if(check_admin_group($app['code'])) $mr .= '<a class="dropdown-item" href="' . $app['link'] . '">' . $app['title'] . '</a>'; } $mr .= '</div>'; $mr .= '</li>' . PHP_EOL; $n++; } } column_left.php iris not used
  22. hungryfrank

    Easy Admin Group - Login Issues

    ok I got it working. I had to change the database because the title its now more than 100 character. I don't think it can be done without core changes. I am thinking about it. unfortunately the nav bar is a hook and can not be turned off so it must be edited.
  23. hungryfrank

    Swedish date of birth

    there is some control in the language file English.php or Swedish.php const DATE_FORMAT_SHORT = '%m/%d/%Y'; // this is used for strftime() const DATE_FORMAT_LONG = '%A %d %B, %Y'; // this is used for strftime() const DATE_FORMAT = 'm/d/Y'; // this is used for date() const DATE_TIME_FORMAT = DATE_FORMAT_SHORT . ' %H:%M:%S'; const JQUERY_DATEPICKER_FORMAT = 'mm/dd/yy'; // see http://docs.jquery.com/UI/Datepicker/formatDate
  24. hungryfrank

    Easy Admin Group - Login Issues

    I have tried to investigate. i have an older style box insalled and that one works. for the old box I have the value of administrator_group_block set as <i class="fa fa-gavel" aria-hidden="true"></i> Ebay and for the new boxes i have <i title="Catalog" data-toggle="tooltip" data-placement="right" class="fas fa-cart-plus fa-fw mr-1"> and in the hMenue.php I have foreach ( $cl_box_groups as &$group ) { usort($group['apps'], 'tep_sort_h_boxes_links'); } $n = 1; $mr = null; foreach ($cl_box_groups as $groups) { $mr .= '<li class="nav-item dropdown">'; if(display_block_to_admin_group($groups['heading'])) $mr .= '<a class="nav-link dropdown-toggle" href="#" id="navbar_' . $n . '" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' . $groups['heading'] . '</a>'; $al = ($n > 6) ? ' dropdown-menu-right' : ''; $mr .= '<div class="dropdown-menu' . $al . '" aria-labelledby="navbar_' . $n . '">'; foreach ($groups['apps'] as $app) { if(check_admin_group($app['code'])) $mr .= '<a class="dropdown-item" href="' . $app['link'] . '">' . $app['title'] . '</a>'; } $mr .= '</div>'; $mr .= '</li>' . PHP_EOL; $n++; } I guess I need to change the sql below, but can't figure it out $check_file_access = tep_db_query("select ag.administrator_group_id from " . TABLE_ADMINISTRATOR_GROUPS . " ag, " . TABLE_ADMINISTRATOR_GROUP_ACCESS . " aga where aga.administrator_group_id = ag.administrator_group_id and ag.administrator_group_id = '" . (int)$administrator_group_id . "' and aga.administrator_group_block = '" . $administrator_group_block . "'"); if(tep_db_num_rows($check_file_access))$display_block_to_admin_group = true;
×