Jump to content
tim_ver

Easy Admin Group - Login Issues

Recommended Posts

Thank You Lee!

 


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

Best regards,

Fredi

Share this post


Link to post
Share on other sites

In english:

2020-02-07_203550.jpg.bcc7759e344532cec29893cf14871aef.jpg

I send to You all files thise modul.


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

Best regards,

Fredi

Share this post


Link to post
Share on other sites
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++;
}

 

Share this post


Link to post
Share on other sites

In which file to add the code?


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

Best regards,

Fredi

Share this post


Link to post
Share on other sites
3 minutes ago, Fredi said:

In which file to add the code?

That's the code that's not working in administrator_group.php still working on the fix.

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

How to solve this problem?
Need to adjust the function? Or replace with a new one?


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

Best regards,

Fredi

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
3 minutes ago, hungryfrank said:

nothing in column left is now available.

I found a way.  in template_top.php replace 

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

with 

 include_once('includes/column_left.php');

And it works?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×