Zen Cart Logo
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,202

Results 901 to 920 of 1,242
5 Nov 2009, 5:50 PM
#901
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

Oh, I see what you mean. @superuser is a mysql variable. You need to assign it an integer value and then that will be used to create the table entries for the admin with that integer ID (look for the line higher up that by default is> SET @superuser = 1;

5 Nov 2009, 7:32 PM
#902
fision avatar

fision

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

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

Yes this worked. Look like I didn't follow install instructions right.

Thank you very much.

13 Nov 2009, 3:11 AM
#903
bbsbcastle avatar

bbsbcastle

New Zenner

Join Date:
Aug 2009
Location:
Greeneville, TN USA
Posts:
55
Plugin Contributions:
0

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

I have a fairly new install of Zencart v1.3.8, which has been patches, the admin folder, moved, etc. I have installed Admin Profiles, and aisde from as few minor stumbles (my fault), it works great! Very handy.

I've looked and looked, but I can't find a thread on this. How do I create new box files for add ons that don't come with their own?

I'm trying to make one for edit_orders.php. I finally monkeyed around some and just made a new one based on the procedure for modifying an existing one. It works ok, except it added an unneeded "FILENAME EDIT ORDERS" checkbox in the permissions screen, and it's made a "BOX EDIT ORDERS" item on the Admin menu, which doesn't work since Edit Orders is called from a button.

I'm not sure whether this is much simpler or more complicated than I'm making it, but one way or another, I'd appreciate any help. Thanks

23 Nov 2009, 11:31 PM
#904
rays5150 avatar

rays5150

New Zenner

Join Date:
Jan 2009
Location:
Melbourne
Posts:
3
Plugin Contributions:
0

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

i had sucessfully installed the add-in and could edit permissions. But for some reason when i tried to edit permissions again today, i could not get in and was presented with the acccess denied page. Can i run some SQL to correct this issue so i can edit my superuser profile?

25 Nov 2009, 12:03 AM
#905
rays5150 avatar

rays5150

New Zenner

Join Date:
Jan 2009
Location:
Melbourne
Posts:
3
Plugin Contributions:
0

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

rays5150:

i had sucessfully installed the add-in and could edit permissions. But for some reason when i tried to edit permissions again today, i could not get in and was presented with the acccess denied page. Can i run some SQL to correct this issue so i can edit my superuser profile?
Fixed it. Accidentally unselected admin_control and had to reinsert it using SQL Query.

25 Nov 2009, 7:03 AM
#906
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

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

Can you please tell me which SQL commands you used to fix it ?

25 Nov 2009, 11:21 AM
#907
bbsbcastle avatar

bbsbcastle

New Zenner

Join Date:
Aug 2009
Location:
Greeneville, TN USA
Posts:
55
Plugin Contributions:
0

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

Another way to make database repairs like this is to go into your SQL server console, if you have one. A common one for MySQL is phpMyAdmin. As part of that, there is an ability to browse a database and perform hand edits. There are different ways to get there, but many site will have it under the "CPanel" web site control console.

The first time I installed Profiles, I knew I needed the user with ID = 1 to be an Admin level user, and I was ready for that. What I didn't know was, they'd changed the password on that account! Everything was locked out! I went into phpMyAdmin and rearranged the user IDs to change the user ID on my account to 1. Problem solved!

29 Nov 2009, 7:12 AM
#908
rays5150 avatar

rays5150

New Zenner

Join Date:
Jan 2009
Location:
Melbourne
Posts:
3
Plugin Contributions:
0

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

alhakeem2001:

Can you please tell me which SQL commands you used to fix it ?

i used my providers control panel to re insert values back into the admin_allowed_pages table. So basically the query would be something like
insert into admin_allowed_pages (page_id,admin_id) values (76,1)

1 Dec 2009, 5:12 AM
#909
odlweb avatar

odlweb

New Zenner

Join Date:
Oct 2008
Posts:
3
Plugin Contributions:
0

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

I have installed profiles before and it works. However now I have an issue where the interface comes up, I can tick the boxes and save but next time I visit the user's permissions nothing is ticked.

Logging on as the user, nothing shows up in the menus either.

I did enact the security recommendations some time back to change the admin folder name. So, I renamed it back to admin (with the app cfg changes) but profiles still does not work.

Any ideas?

1 Dec 2009, 5:35 AM
#910
demiurgia avatar

demiurgia

New Zenner

Join Date:
Jul 2007
Posts:
88
Plugin Contributions:
0

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

odlweb:

I have installed profiles before and it works. However now I have an issue where the interface comes up, I can tick the boxes and save but next time I visit the user's permissions nothing is ticked.

Logging on as the user, nothing shows up in the menus either.

I did enact the security recommendations some time back to change the admin folder name. So, I renamed it back to admin (with the app cfg changes) but profiles still does not work.

Any ideas?

You also need to install the security patch for admin profiles. See post 865 on page 87. That should fix your problem.

6 Dec 2009, 6:07 PM
#911
mitdrissia avatar

mitdrissia

New Zenner

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

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

hey you guys.I could not find a new thread button so i will put my store here.

I uploaded the adminprofile package and now i get this error:

Parse error: syntax error, unexpected '}' in /admin/includes/boxes/modules_dhtml.php on line 46.

my line 46 is totally blank.

Can anybody help me out.?
thanks

6 Dec 2009, 7:55 PM
#912
odlweb avatar

odlweb

New Zenner

Join Date:
Oct 2008
Posts:
3
Plugin Contributions:
0

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

demiurgia:

You also need to install the security patch for admin profiles. See post 865 on page 87. That should fix your problem.

Thanks, fixed the problem.

15 Dec 2009, 1:28 PM
#913
rayspike avatar

rayspike

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

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

kuroi:

There are no switches to turn this off (though they are on the TO DO list for a future version of Admin Profiles.

For the time being you would have to make code changes. These would be done in in the admin/index.php file as follows:

  1. Find out what your admin ID is (you can see it to the left of your name on the Admin Settings page

  2. Open admin index.php and fin the following lines ```php

<div id="coltwo"> <div class="reportBox"> ``` > > 3) Insert the following between them```php <?php if ($_SESSION['admin_id'] == <your admin ID>) { ?> ``` > > 4) Go down 12 lines and insert the following immediately after the </div> line```php <?php } ?> ``` > > 5) Now do the same between the following lines```php <div id="colthree"> <div class="reportBox"> ``` and after the first </div> line a further 12 lines down.

This works great. But how can I do this with the orders, to prevent the users from deleting orders, go to packing slip and invoice.

It is about this code in orders.php

        $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
        $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
        $contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . zen_date_short($oInfo->date_purchased));
        $contents[] = array('text' => '<br />' . $oInfo->customers_email_address);
        $contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $oInfo->ip_address);
        if (zen_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . zen_date_short($oInfo->last_modified));
        $contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' '  . $oInfo->payment_method);
        $contents[] = array('text' => '<br />' . ENTRY_SHIPPING . ' '  . $oInfo->shipping_method);

The red code I want to secure

23 Dec 2009, 2:05 AM
#914
reubin avatar

reubin

New Zenner

Join Date:
Oct 2009
Posts:
2
Plugin Contributions:
0

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

I have a zencart 1.38a .it have be set admin profiles, install ok. I can enter admin control home,but i can'nt set any .enter :tool/ admin setting.(there is one user of admin)/permission, all item have be select.but i can'nt change it. why ,how to get admin permission ,pl help!

30 Dec 2009, 11:03 PM
#915
russell_sprout avatar

russell_sprout

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

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

Hi all :-) This is my first post here :-) I'am trying to install this mod and it all go's well if I leave the admin folder name as admin, but if i try to change the name of the admin folder either before I install or after I install the mod, I cant log in to the admin page as it redirects me to a Url with admin as the name of the folder and not the name I have made up for the admin folder ? this is after I have put my login detals in and press submit. Not to sure where I am going wrong here ? But any help or input would be great :-) Thanks for the help guys :-)

30 Dec 2009, 11:37 PM
#916
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

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

Although I havent tried this with any other than "admin" as the folder name, but my 1st question would be,
Did you change the config files to reflect the new name of the admin folder? :smile:

31 Dec 2009, 11:21 AM
#917
russell_sprout avatar

russell_sprout

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

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

Thanks for the reply :-) Yes i have tryed it with the names changed in the config files, but no change :-( My only worry is that the install info says that you should change the admin folder name, but it seems that some ppl dont change the name of the admin folder.

31 Dec 2009, 8:32 PM
#918
tilopa avatar

tilopa

New Zenner

Join Date:
Dec 2009
Posts:
1
Plugin Contributions:
0

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

:lamo:Hi all,
I have tried to install admin profiles in a German version of Zen Cart 1.3.8A, but this has failed. Indeed, the users page comes well, but the updates cannot be saved. The superadministrator can thereby open also no more folders. My Zen Cart version is completely reinstalled, without some updates and installed plug-ins. I have done a complete code comparison and have summarized all code paragraphs into a PDF file to find out whether I myself can find the cause. But I am too new in Zen Cart and know not enough in his API. Nevertheless, I would like to run with pleasure your Admin tool in the German version of Zen Cart. I hope, you can help me there. You can download the PDF file with the comparative code paragraphs under:
http://downloads.ateliershop.de/codeCompare.pdf (7,1 MB)
http://downloads.ateliershop.de/codeCompare.pdf.zip (6,1 MB)
With regards and Happy New Year
Tilopa

6 Jan 2010, 8:08 PM
#919
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

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

Hi everyone,

I ve installed the module on an new fresh zen cart installation ,following the instructions , and I ve got this error

1146 Table 'user-mysite.admin_allowed_categories' doesn't exist
in:
[select admin_id from admin_allowed_categories where categories_id = '0']
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.

Does anyone know what i do wrong?

Best wishes for the 2010 to everyone!

Thanks in advance.

6 Jan 2010, 8:25 PM
#920
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

@Russell Sprout

This mod doesn't care what you admin is called. i have it installed on multiple client sites, all of which have their Admins renamed (and all to different things).

Provided that you renamed the files in the release package to reflect your new Admin name, then your problem must lie elsewhere.