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,161 to 1,180 of 1,242
23 Jun 2011, 10:18 PM
#1161
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

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

Possible Bug

If a module's name contains punctuation like a period (.), then admin profiles will not work for that mod.

The fix is on line 41 of admin/includes/functions/admin_control.php, change to:

$field = $_POST[str_replace(array(' ', '.'), '_', $pages->fields['page'])];
30 Jun 2011, 12:51 AM
#1162
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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

I am having the hardest time getting this module to work. I have installed it 2 other times just fine, but am now trying to install it for a third time on a new site.

When I try and merge the header_navigation.php file it does not work and makes my header bar disspear. This is what I have for my original php coding:

<?php
/**
 * @package admin
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_navigation.php 3089 2006-03-01 18:32:25Z ajeh $
 */
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}
?>
<!-- Menu bar #2. -->
<div id="navbar">
<ul class="nde-menu-system" onmouseover="hide_dropdowns('in')" onmouseout="hide_dropdowns('out')">
<?php

  require(DIR_WS_BOXES . 'configuration_dhtml.php');
  require(DIR_WS_BOXES . 'catalog_dhtml.php');
  require(DIR_WS_BOXES . 'modules_dhtml.php');
  require(DIR_WS_BOXES . 'customers_dhtml.php');
  require(DIR_WS_BOXES . 'taxes_dhtml.php');
  require(DIR_WS_BOXES . 'localization_dhtml.php');
  require(DIR_WS_BOXES . 'reports_dhtml.php');
  require(DIR_WS_BOXES . 'tools_dhtml.php');
  require(DIR_WS_BOXES . 'gv_admin_dhtml.php');
  require(DIR_WS_BOXES . 'extras_dhtml.php');

?>
</ul>
</div>

How do I merge the new coding which is this:

  if (menu_header_visible('Configuration')) require(DIR_WS_BOXES . 'configuration_dhtml.php');
  if (menu_header_visible('Catalog')) require(DIR_WS_BOXES . 'catalog_dhtml.php');
  if (menu_header_visible('Modules')) require(DIR_WS_BOXES . 'modules_dhtml.php');
  if (menu_header_visible('Customers')) require(DIR_WS_BOXES . 'customers_dhtml.php');
  if (menu_header_visible('Taxes')) require(DIR_WS_BOXES . 'taxes_dhtml.php');
  if (menu_header_visible('Localization')) require(DIR_WS_BOXES . 'localization_dhtml.php');
  if (menu_header_visible('Reports')) require(DIR_WS_BOXES . 'reports_dhtml.php');
  if (menu_header_visible('Tools')) require(DIR_WS_BOXES . 'tools_dhtml.php');
  if (menu_header_visible('GV_Admin')) require(DIR_WS_BOXES . 'gv_admin_dhtml.php');
  if (menu_header_visible('Extras')) require(DIR_WS_BOXES . 'extras_dhtml.php');

Then when I try and add these 2 files, it crashes the admin screen all together to where I am not able to even view the log in screen: admin/includes/functions/DS.Store and admin/includes/functions/admin_profiles.php.

I have insatlled the SQL patch, I did that first. I then started adding each file individually so I could find out which files were causing the problems. I am now not able to view any of the menus when I click under the admin menu. I can't see the layout boxes controller or anything let alone the admin settings.

The site address is** http://www.scraps-n-pieces.com/store/**

Any help you could give me would be great!

30 Jun 2011, 3:10 PM
#1163
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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

Can anyone help me?

30 Jun 2011, 9:14 PM
#1164
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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

I could really use some suggestions on this one... can anyone help me out?

4 Aug 2011, 4:51 PM
#1165
ashleyng2 avatar

ashleyng2

New Zenner

Join Date:
Dec 2010
Posts:
27
Plugin Contributions:
0

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

Hi all,
After enabling this module I cannot use the AJAX search feature of another module --- Products by Attribute Stock.

If anybody has a solution please advise, will try putting some files in the override (products_with_attributes_stock.php, products_with_attributes_stock_ajax.php) to see if it solves anything and will post back with results.

Thanks.

EDIT: Not sure how to add these files to the overrides (line 23), any ideas?

5 Aug 2011, 12:12 PM
#1166
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

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

kuroi:

Yes that would be a bit worrying. What happens when you go back and look at the Admin Profile for that user, does it come up showing your restrictions? It's very unlikely that this will be the case, as a new user starts with no permissions, you have to deliberately add them in.

More likely IMO, is that this is a manifestation of the Zen Cart registers_globals bug. This means that although you log in as one user, Zen Cart switches you to be another. Here's an except from the archived support forum on this problem. Although your symptoms aren't quite the same, it would take something like this for the mod to break down so completely.

Later in that thread I suggested a way of testing whether Admin is properly recognising you as the user you logged on. Here's an extract ...

Knowing whether this does reveal a shift in your user identity would be useful to me for supporting Admin Profiles. If it doesn't, we'll have to try to think of some other possible causes.

I recently installed admin profiles on 1.3.9h , but it showing only the configuration tab in the admin area.

all other tabs are missing.

i do not know how can i get back all those tabs.

kindly help me.

5 Aug 2011, 12:56 PM
#1167
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

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

muteyaar:

I recently installed admin profiles on 1.3.9h , but it showing only the configuration tab in the admin area.

all other tabs are missing.

i do not know how can i get back all those tabs.

kindly help me.

kuroi:

Yes that would be a bit worrying. What happens when you go back and look at the Admin Profile for that user, does it come up showing your restrictions? It's very unlikely that this will be the case, as a new user starts with no permissions, you have to deliberately add them in.

More likely IMO, is that this is a manifestation of the Zen Cart registers_globals bug. This means that although you log in as one user, Zen Cart switches you to be another. Here's an except from the archived support forum on this problem. Although your symptoms aren't quite the same, it would take something like this for the mod to break down so completely.

Later in that thread I suggested a way of testing whether Admin is properly recognising you as the user you logged on. Here's an extract ...

Knowing whether this does reveal a shift in your user identity would be useful to me for supporting Admin Profiles. If it doesn't, we'll have to try to think of some other possible causes.

I reinstalled the admin profiles again now, and this time, all is well except for the admin settings tab.
when i click on the admin settings tab, then i get this error:

Parse error: syntax error, unexpected T_VARIABLE in /home/...../public_html/zc_admin/admin.php on line 1

can anyone help me please?

13 Aug 2011, 4:29 PM
#1168
kawikapoi avatar

kawikapoi

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

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

Hi Kuroi!
Ok, I went and made a BIG MISTAKE! I accidentally turned off the admin function on my own profile and I am unable to make any changes to mine or any other admins now! (I thought I was disabling another admin...but it was mine) :oops:

Is there a way to regain access to the admin functions?

Thank-you!!

(By the way, everything was working PERFECTLY until I messed up! The install was very simple and straight forward, functioned like a charm! KUDOS to you!!)

13 Aug 2011, 6:28 PM
#1169
kawikapoi avatar

kawikapoi

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

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

kawikapoi:

Hi Kuroi!
Ok, I went and made a BIG MISTAKE! I accidentally turned off the admin function on my own profile and I am unable to make any changes to mine or any other admins now! (I thought I was disabling another admin...but it was mine) :oops:

Is there a way to regain access to the admin functions?

Thank-you!!

(By the way, everything was working PERFECTLY until I messed up! The install was very simple and straight forward, functioned like a charm! KUDOS to you!!)

:clap:Hello again! Problem solved! Found the solution deep within the threads!
Thank-you!

27 Aug 2011, 3:38 AM
#1170
johhnyb avatar

johhnyb

New Zenner

Join Date:
Sep 2010
Posts:
9
Plugin Contributions:
0

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

Hi all.

I am using Zen Cart 1.3.7 and the v.1.0.7 version of Admin Profiles.

Recently for one reason or another when I try to make changes to a users permissions, it boots me back to the admin dashboard screen (the one you get when you first log in) and upon reentering the admin permissions error no changes have been saved.

Any ideas?

I have kind of traced the problem into my application top script (i.e in admin_controls.php I have php echo "here"; before and after the```php
include(application_top.php);


Regards, John.
27 Aug 2011, 3:49 AM
#1171
johhnyb avatar

johhnyb

New Zenner

Join Date:
Sep 2010
Posts:
9
Plugin Contributions:
0

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

Disregard that I jsut reinstalled the files and all is now well.

Thanks for a great mod!

27 Aug 2011, 10:02 AM
#1172
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 some of the security features from a later version of Zen Cart may have found their way into your site. But by reinstalling you kicked 'em out again.

But you really need to think about going the who hog and upgrading as 1.3.7 has known vulnerabilities fixed in later versions.

Kuroi Web Design and Development | Twitter

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

28 Sep 2011, 2:43 PM
#1173
irtech avatar

irtech

New Zenner

Join Date:
Jul 2010
Posts:
17
Plugin Contributions:
0

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

I just installed this mod in my store. When I click on edit permissions and check the boxes for the categories, so I can access my prducts, and click save changes it takes me back to the admin home page and I still cannot get into my categories.

Can you tell me what I've done wrong please?

28 Sep 2011, 3:19 PM
#1174
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

Please click on reply and answer the questions in the posting tips.

Kuroi Web Design and Development | Twitter

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

28 Sep 2011, 3:56 PM
#1175
irtech avatar

irtech

New Zenner

Join Date:
Jul 2010
Posts:
17
Plugin Contributions:
0

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

Sorry...

I'm using v1.3.9h it was updated from 1.3.9g back in June.
the add ons I have are image tiles, sale report, and free gifts

:blush:

28 Sep 2011, 4:47 PM
#1176
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're not telling us which versions of the add-on modules you're using. In particular for Admin Profiles. The problem you're describing was common when tried to use older versions with either 1.3.9 (or 1.3.8a with the security patch), but I've not heard of this happening with version 1.0.7 (released primarily for security patch compatibility) or 1.1.1.

Kuroi Web Design and Development | Twitter

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

28 Sep 2011, 5:05 PM
#1177
irtech avatar

irtech

New Zenner

Join Date:
Jul 2010
Posts:
17
Plugin Contributions:
0

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

I'm using the version 1.0.8

28 Sep 2011, 5:10 PM
#1178
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

Ah. That would explain it. You're actually using "Admin Users - Restrict Product Categories".

That was a fork of Admin Profiles, but alas it didn't really do what it claimed to. Sadly the author didn't update the readme file which is why you thought you had Admin Profiles. Worse, the add-on doesn't appear to be being supported or maintained.

I can only recommend that you uninstall it, and use the Admin Profiles instead.

Kuroi Web Design and Development | Twitter

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

29 Sep 2011, 8:02 PM
#1179
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

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

lavendersblue:

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

Do you have the fixes that you applied to accomplish hiding the admin home? Thanks.

1 Oct 2011, 12:19 PM
#1180
teochris avatar

teochris

New Zenner

Join Date:
Aug 2011
Posts:
7
Plugin Contributions:
0

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

I am using Zen Cart 1.3.9h

I have the english and greek languages installed

I have admin profiles 1.1.1 installed

until today everything worked properly with admin profiles

Today will I was in the admin session Configuration -> Email Options I changed the language from english to greek and instead of seeing the Configuration -> Email Options page I saw the usual - your clearance does not permit you... page from the admin profiles addon. As usual i visited the Tools -> Admin settings -> edit permissions in order to check the new box that jas appeared but after this box there is no description as usual. You can see the difference in the following source code:

<label class="permissionBox"><input name="additional_product_images_upload" class="Third Party Mods" type="checkbox" checked="on" value="on">additional product images upload</label>
<label class="permissionBox"><input name="" class="Third Party Mods" type="checkbox" value="off"></label>

and so even i check the empth box and click on save nothing changes and the box is still not checked.

Again today accidentaly while trying to figure out the above problem i tried to change the language while on the Tools -> Admin settings -> edit permissions page and i got the following page instead of returning me to the Tools -> Admin settings -> edit permissions page

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

I believe that the first problem i stated has something to do with the second problem but really i can not figure out what to do in order to fix these problems

Can somebody help me?