Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Admin Group - Login Issues


tim_ver

Recommended Posts

@LeeFoster

That is a PHP Warning, not an Error. As I've said before, newer versions of PHP are becoming more strict. You could just ignore the warning, but it would be better to update the code to the current PHP structure. Do a search here in the forum for foreach(). It's been discussed before.

M

Link to comment
Share on other sites

24 minutes ago, ArtcoInc said:

@LeeFoster

That is a PHP Warning, not an Error. As I've said before, newer versions of PHP are becoming more strict. You could just ignore the warning, but it would be better to update the code to the current PHP structure. Do a search here in the forum for foreach(). It's been discussed before.

M

No it's an error because it's also not showing the list of boxes that it should.

Link to comment
Share on other sites

22 minutes ago, LeeFoster said:

Yeah I'm not getting the list of boxes down the right.

did you  replaced  (admin/includes/column_left.php)

<?php
    foreach ($cl_box_groups as $groups) {
      echo '<h3><a href="#">' . $groups['heading'] . '</a></h3>' .
           '<div><ul>';

      foreach ($groups['apps'] as $app) {
        echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
      }

      echo '</ul></div>';
    }
?>

with this one

<?php
    foreach ($cl_box_groups as $groups) {
	 if(display_block_to_admin_group($groups['heading'])){
      echo '<h3><a href="#">' . $groups['heading'] . '</a></h3>' .
            '<div><ul>';

      foreach ($groups['apps'] as $app) {
		  if(check_admin_group($app['code']))echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
      }

      echo '</ul></div>';
	 }
    }
?>

 

Get the latest Responsive osCommerce CE (community edition) here .

Link to comment
Share on other sites

2 minutes ago, Omar_one said:

did you  replaced  (admin/includes/column_left.php)


<?php
    foreach ($cl_box_groups as $groups) {
      echo '<h3><a href="#">' . $groups['heading'] . '</a></h3>' .
           '<div><ul>';

      foreach ($groups['apps'] as $app) {
        echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
      }

      echo '</ul></div>';
    }
?>

with this one


<?php
    foreach ($cl_box_groups as $groups) {
	 if(display_block_to_admin_group($groups['heading'])){
      echo '<h3><a href="#">' . $groups['heading'] . '</a></h3>' .
            '<div><ul>';

      foreach ($groups['apps'] as $app) {
		  if(check_admin_group($app['code']))echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';
      }

      echo '</ul></div>';
	 }
    }
?>

 

Yeah I did.

If I add this from the top of the column_left.php file into the administrators_group.php file I get the list on the right but the left column doesn't show.

if (tep_session_is_registered('admin')) {
    $cl_box_groups = array();

    if ($dir = @dir(DIR_FS_ADMIN . 'includes/boxes')) {
      $files = array();

      while ($file = $dir->read()) {
        if (!is_dir($dir->path . '/' . $file)) {
          if (substr($file, strrpos($file, '.')) == '.php') {
            $files[] = $file;
          }
        }
      }

      $dir->close();

      natcasesort($files);

      foreach ( $files as $file ) {
        if ( file_exists(DIR_FS_ADMIN . 'includes/languages/' . $language . '/modules/boxes/' . $file) ) {
          include(DIR_FS_ADMIN . 'includes/languages/' . $language . '/modules/boxes/' . $file);
        }

        include($dir->path . '/' . $file);
      }
    }

    function tep_sort_admin_boxes($a, $b) {
      return strcasecmp($a['heading'], $b['heading']);
    }

    usort($cl_box_groups, 'tep_sort_admin_boxes');

    function tep_sort_admin_boxes_links($a, $b) {
      return strcasecmp($a['title'], $b['title']);
    }

    foreach ( $cl_box_groups as &$group ) {
      usort($group['apps'], 'tep_sort_admin_boxes_links');
    }

 

Link to comment
Share on other sites

  • 2 months later...
1 hour ago, moldbody said:

@LeeFoster I got exactly the same problem like yours, my version is os v2.3.4.1.  Even i reinstall it, the same problem happen (left column disappear) when  i replace the codes in column_left.php

I managed to fix it but can't remember how right now.

Link to comment
Share on other sites

  • 7 months later...

Has anyone tried this add-on for Phoenix?
I changed this for Phoenix, but the problem with the display of boxing remained.

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...