Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Admin Group - Login Issues


tim_ver

Recommended Posts

37 minutes ago, Fredi said:

I've narrowed it down to this code -

foreach($groups['apps'] as $app) {
			if(!in_array($app['code'], array('configuration.php', 'modules.php'))){
			$admin_group_access_inputs_string .= tep_draw_checkbox_field('admin_group_access[' . $cnt_access . ']', $app['code']) . '&nbsp;' . $app['title'] . '<br/>';
			}else{
		if($cnt_code > 1)continue;
		$admin_group_access_inputs_string .= tep_draw_checkbox_field('admin_group_access[' . $cnt_access . ']', $app['code']) . '&nbsp;All ' . $groups['heading'] . '<br/>';
		$cnt_code++;
				}

	$admin_group_access_inputs_string .= tep_draw_hidden_field('admin_group_access_block[' . $cnt_access . ']', $groups['heading']);

	$cnt_access++;
}

 

Link to comment
Share on other sites

I also got this warning

nvalid argument supplied for foreach() in /Library/WebServer/Documents/metro10/admin/administrator_groups.php on line 189

which is 

    foreach ($cl_box_groups as $groups) {

just above the code that u posted. 

Edited by hungryfrank

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
Share on other sites

1 hour ago, hungryfrank said:

I also got this warning

nvalid argument supplied for foreach() in /Library/WebServer/Documents/metro10/admin/administrator_groups.php on line 189

which is 

    foreach ($cl_box_groups as $groups) {

just above the code that u posted. 

Can you send a screenshot of it working?

Link to comment
Share on other sites

the problem is certainly here

   foreach ($cl_box_groups as $groups) {

I did a     print_r ($cl_box_groups ) right before it and it gave me nothing. 

on the one in 1.0.3.0 I got a whole lot of output

 

Edited by hungryfrank

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
Share on other sites

although  $cl_box_groups  has been used in column_left.php it can not be used in the main content of the page. I could not use it in administrators.php either.

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
Share on other sites

I do not understand why column_left is called. Column_left works differently. This is probably an outdated way. A lot has changed in the Phoenix core, so this function probably needs to be adjusted.

I don’t know how to do this. This has something to do with calling categories / files for visualization.
Maybe you need an analogy with a call to security_checks.php or similar?

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

Best regards,

Fredi

Link to comment
Share on other sites

12 minutes ago, LeeFoster said:

I wonder if it is down to where column_left is being called.

echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');

   echo $OSCOM_Hooks->call('siteWide', 'injectLeftColumn');

in template_top.php

I can comment out 

echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');

and nothing happens.

I found the column_left is being pulled out of a site wide hook called vMenu.php

 

 

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Link to comment
Share on other sites

2 minutes ago, hungryfrank said:

echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');

   echo $OSCOM_Hooks->call('siteWide', 'injectLeftColumn');

in template_top.php

I can comment out 

echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart');

and nothing happens.

I found the column_left is being pulled out of a site wide hook called vMenu.php

 

 

Yeah I found the same.

Link to comment
Share on other sites

nothing in column left is now available.

23 minutes ago, LeeFoster said:

Yeah I found the same.

I found a way.  in template_top.php replace 

   echo $OSCOM_Hooks->call('siteWide', 'injectLeftColumn');

with 

 include_once('includes/column_left.php');

this lets the checkboxes show. I haven't tried functionality

Edited by hungryfrank

you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

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...