Forums / All Other Contributions/Addons / Admin Profiles (for v1.3.x only!) Support Thread

Admin Profiles (for v1.3.x only!) Support Thread

Views: 334,557

Results 1,141 to 1,160 of 1,242
11 May 2011, 11:48 PM
#1141
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Admin Profiles (for v1.3.x only!) Support Thread

Glad you found it. I find file comparisons from a good automated tool (I particularly like Beyond Compare) invaluable for getting a much more accurate assessment of changes (working or otherwise) than I could possibly achieve from a visible inspection alone.

Oh, and credit to you too. Often when us old hands keep telling people the same thing they get frustrated thinking that we're not getting it. Can happen, but usually it's the opposite. You though were listening and so got to the bottom of the issue, which is always good to see.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 May 2011, 2:55 PM
#1142
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

@autoace

The problem isn't with Admin Profiles. It's that Apsona launches itself in a non-standard way and the mini script that it uses to do so and which you're putting in your database is breaking SQL when used in a query.

You're already escaping the single quotes, e.g. putting "" before them in your admin_files entry for Apsona. You could try escaping the escapes (i.e. put two more backslashes before each single quote), but there's no guarantees for that, so please let us know whether or not it works.

@kuroi

Did as you suggested and no go :no:

Would you be able to suggest another possible work around so that both mods can live in harmonly :)

Thank you,
autoace

13 May 2011, 7:27 PM
#1143
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

You could try replacing the whole box_file with just the line> $za_contents[] = array('text' => "Apsona ShopAdmin", 'link' => 'apsona_index.php');and then right clicking to launch in a new tab/window when you want to use it.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

17 May 2011, 4:55 AM
#1144
anbt avatar

anbt

New Zenner

Join Date:
May 2011
Posts:
4
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Help me about multi languages in Admin Profile.

when i chose Edit Permission, then select a language Vietnamese in combobox Define Languages. ZenCart have a error such as:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[SELECT admin_name FROM admin WHERE admin_id = ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Please, help me how to fix this error? Thanks a lot

17 May 2011, 9:15 AM
#1145
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

anbt:

when i chose Edit Permission, then select a language Vietnamese in combobox Define Languages. ZenCart have a error ...Which version of Zen Cart? Which version of Admin Profiles? Does this happen if you change your language before starting to Edit Permissions?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2011, 10:29 AM
#1146
anbt avatar

anbt

New Zenner

Join Date:
May 2011
Posts:
4
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Zen Cart version 1.3.9h.
Admin Profile version 1.1.1.
No error when i change your language before starting Edit Permissions.

When i choose Edit Permission after I changes my language, have a error such as i said. But when i click button Go back on Web Browser, Admin Profile is still normal and my languages has changed.

It is small error. It does not affect to my app. but i want to known where is error.

Thanks

18 May 2011, 10:31 AM
#1147
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

It sounds as though the error isn't actually in Admin Profiles, but in the way that parameters are lost when the language is changed. That said Admin Profiles should handle the absence of key parameters better.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

26 May 2011, 1:39 AM
#1148
mollyolly avatar

mollyolly

New Zenner

Join Date:
Feb 2011
Posts:
5
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Kuroi

Please forgive me I am not all that well versed in Zen. I am trying to upload your admin mod and when I do I get:
500 Internal Server Error.

when I do this: https://www.yourstorename.com/admin/admin_control.php?adminID=1

I get page not found

(I have changed it to match my own site)

I have double checked to make sure all files were put in correct folders. Can you please help me. I know it must be a simple fix. I would like it for you to word it like you are talking to a child so I can understand it since this is all very new to me.

Thank you so much for taking the time to reply to me.

26 May 2011, 8:22 AM
#1149
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

MollyOlly:

I am trying to upload your admin mod and when I do I get:
500 Internal Server Error.

when I do this: https://www.yourstorename.com/admin/admin_control.php?adminID=1

I get page not found

(I have changed it to match my own site)This is most likely a problem with the permission levels on the files after uploading rather than with the mod itself.

There is a FAQ entry that helps with this.
For the page not found message, I can only suggest double checking that the path that you put in your address bar correctly reflects the location of the file.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

29 May 2011, 1:43 PM
#1150
learning1 avatar

learning1

New Zenner

Join Date:
Jul 2008
Posts:
24
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I am using 1.3.9h and when I install Admin Profiles. I am able to see all the menus however when ever I select one I get this error:

Sorry, your security clearance does not allow you to access this resource....

There is only one admin but I want to add more. The admin id = 1, admin_level=0

I have tried all combinations of admin_id = 0 and admin_level=0 all with the same results - the error shown above.

Please help. I have use Admin Profiles in older versions of Zen Cart without any issues. This is a new site using 1.3.9h.

1 Jun 2011, 4:54 PM
#1151
lavendersblue avatar

lavendersblue

New Zenner

Join Date:
Mar 2011
Posts:
22
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Is it possible for admin users to be redirected straight to the Catalogue page in admin? I am using Admin profiles but I don't want other administrators to see all the customer and webstats shown on the admin index page.

1 Jun 2011, 5:08 PM
#1152
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

lavendersblue:

Is it possible for admin users to be redirected straight to the Catalogue page in admin?Probably. You'd need to tinker with the login page code to detect your admin and where to send them. But that wouldn't stop them from clicking on home and going back to see them.

Probably better is to suppress them from the home page. There are posts giving the exact code needed for that earlier in this thread.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Jun 2011, 5:54 PM
#1153
lavendersblue avatar

lavendersblue

New Zenner

Join Date:
Mar 2011
Posts:
22
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Hi, thank you for getting back to me so quickly. I have found and followed the instructions for hiding the details on the admin index page, however it has hidden the customer order information but it is still possible to see the website stats, the number of customers the website has, the number of orders, etc. I don't want the other admin users to be able to see anything at all on this page, or I need to redirect them to another page, is this possible? I have tried searching for various possible threads relating to this but can't find anything appropriate, perhaps I am not using the correct search wording or should I be searching in the general section of the forum rather than on this thread? :cry:

2 Jun 2011, 12:15 AM
#1154
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I was wondering how to uninstall Admin profiles? It doesnt come with an uninstall sql :no:

2 Jun 2011, 7:17 AM
#1155
lavendersblue avatar

lavendersblue

New Zenner

Join Date:
Mar 2011
Posts:
22
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

sweetikins:

I was wondering how to uninstall Admin profiles? It doesnt come with an uninstall sql :no:

There is an uninstall sql in with the install file pack.

2 Jun 2011, 7:42 AM
#1156
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

lavendersblue:

I don't want the other admin users to be able to see anything at all on this page, or I need to redirect them to another page, is this possible?You can prevent them from seeing other boxes by extending the approach you've already implemented for your order information.

Redirecting them to another page on login (and keeping them from coming back the landing page) is a little more complex and, yes, beyond the scope of this mod's support thread.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2011, 7:47 AM
#1157
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

lavendersblue:

There is an uninstall sql in with the install file pack.This is true for the current version, but I suspect not for older versions.

I'm pretty sure that there are uninstall instructions in this thread, but just in case. You can see which tables need to be dropped from the install SQL for your version. But (and this is really important). Don't drop them until you have reversed and code changes made in the install and removed the files that were added.

Just as an aside though. I wouldn't bother to uninstall it. PCI requirements make mandatory some form of access control over and above a simple login. So I expect you'll find yourself dealing with something similar again in the future anyway.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2011, 8:11 AM
#1158
lavendersblue avatar

lavendersblue

New Zenner

Join Date:
Mar 2011
Posts:
22
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Thanks, I will continue preventing them seeing the other boxes, however I also cannot see the boxes when I log in as administrator now, despite having added my username to the code. I did get a code error when I added this code

<?php if ($_SESSION['admin_id'] == <myusername>) { ?>
  • this was solved by removing the <> from around my username, but I think this is stopping my being able to see the boxes when I log in. How can I solve this? Sorry I am not very good at php code :-(
2 Jun 2011, 8:25 AM
#1159
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

<?php if ($_SESSION['admin_id'] == <myusername>) { ?>

should use your admin user id rather than user name. The ID is numeric. If you were the first user and haven't been re-entered, that would be "1", in which case this would read

<?php if ($_SESSION['admin_id'] == 1) { ?>

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jun 2011, 8:46 AM
#1160
lavendersblue avatar

lavendersblue

New Zenner

Join Date:
Mar 2011
Posts:
22
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Thank you so much for your help, very much appreciated. Brilliant add-on and working perfectly :-)