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,207

Results 861 to 880 of 1,242
26 Aug 2009, 6:48 AM
#861
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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

Hi,

I have installed the admin Module..

I am editing the box files as suggested in the instructions so 3rd party mods can work in the admin.

I was wondering about one file though: linkpoint_api_payment_module

Here is the box file edit I have edited so far:

<?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: product_music_extras_dhtml.php - amendment for Admin Profiles 2006-04-17 by kuroi */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $options = array( array('box' => BOX_CATALOG_AJAX_IMAGE_SWAPPER, 'page' => FILENAME_AJAX_IMAGE_SWAPPER), array('box' => BOX_TOOLS_IMAGE_HANDLER, 'page' => FILENAME_IMAGE_HANDLER), array('box' => BOX_CATALOG_PRODUCTS_WITH_ATTRIBUTES_STOCK, 'page' => FILENAME_PRODUCTS_WITH_ATTRIBUTES_STOCK), array('box' => BOX_CUSTOMERS_SUBSCRIPTION_MANAGER, 'page' => FILENAME_SUBSCRIPTION_MANAGER), array('box' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'page' => FILENAME_LINKPOINT_REVIEW) ); foreach ($options as $key => $value) if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL')); ?>

My concern is with this: array('box' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'page' => FILENAME_LINKPOINT_REVIEW

In the original file there is an If statement as I don't know if this is required or not or where to add it if it is:

?>

<?php if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS == 'True') $za_contents[] = array('text' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'link' => zen_href_link(FILENAME_LINKPOINT_REVIEW, '', 'NONSSL')); ?>

Any help is appreciated.

26 Aug 2009, 7:52 AM
#862
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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

After re-reading I realised these should all be in separate files not the one.

I;m still not certain how to add if statement though:

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

$options = array( array('box' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'page' => FILENAME_LINKPOINT_REVIEW)
);

foreach ($options as $key => $value)
if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
?>

THIS is what original file is:

<?php if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS == 'True') $za_contents[] = array('text' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'link' => zen_href_link(FILENAME_LINKPOINT_REVIEW, '', 'NONSSL')); ?>
26 Aug 2009, 10:19 AM
#863
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

Muzz:

After re-reading I realised these should all be in separate files not the one.

I;m still not certain how to add if statement though:

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

$options = array( array('box' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'page' => FILENAME_LINKPOINT_REVIEW)
);

foreach ($options as $key => $value)
if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
?>

THIS is what original file is:

<?php if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS == 'True') $za_contents[] = array('text' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'link' => zen_href_link(FILENAME_LINKPOINT_REVIEW, '', 'NONSSL')); ?>

@Muzz

It looks ot me as if you are basing your new box files on the wrong file. Please re-read the step-by-step guide.

27 Aug 2009, 1:20 AM
#864
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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

Hi Kuroi,

Thanks for getting back to me.

I ended up getting things working on the Local TEST site by creating an individual file for each 3rd party mod in extra boxes folder.

I then had tick box options available in the admin settings to allow user access to mods etc..

This one below works.. however, does it work in full.?. I'm not sure.

From the original file in extra boxes:

<?php if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS == 'True') $za_contents[] = array('text' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'link' => zen_href_link(FILENAME_LINKPOINT_REVIEW, '', 'NONSSL')); ?>

It states in the instructions that you add

BOX_CUSTOMERS_LINKPOINT_REVIEW

and

FILENAME_LINKPOINT_REVIEW

To bottom of page code and overrite original file etc.. Thats fine.

BUT with all my other additional boxes, IH2, AJAX image swapper etc.. There NO if statement in the original code. So the edit is simple.

My concern is that this part won't work:

if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS == 'True') <-- does this need to be included to work correctly?

Below is what I have in the file and yes I can select it in admin settings in option box to allow mod. It is that something else may not function if the if statement is not included? Is this case or am I worried about nothing?

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

$options = array( array('box' => BOX_CUSTOMERS_LINKPOINT_REVIEW, 'page' => FILENAME_LINKPOINT_REVIEW)
);

foreach ($options as $key => $value)
if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL'));
?>

27 Aug 2009, 1:33 AM
#865
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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

Hi again,

This is tragic!

Alright I installed the install_admin_profiles.sql to my live site.

205 statements processed successfully.

I renamed the mod admin folder to suit my admin folder name.

I used the extra boxes php files I already edited and tested on a local WAMP server and put them in the extra boxes folder of the admin Mod.

I uploaded the files overwriting files where req.

I have logged into my zen cart admin.

My mod boxes are missing which is fine as they should be available in admin settings to check.

However, there is no P (permissions icon) in the admin settings.

I have repeated the install process 2 times and still no P icon.

What step would be doing incorrectly?

I'm following same steps I did on WAMP server which worked. install.txt

Any input is appreciated!

27 Aug 2009, 1:51 AM
#866
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

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

Muzz:

Hi again,

This is tragic!

Alright I installed the install_admin_profiles.sql to my live site.

205 statements processed successfully.

I renamed the mod admin folder to suit my admin folder name.

I used the extra boxes php files I already edited and tested on a local WAMP server and put them in the extra boxes folder of the admin Mod.

I uploaded the files overwriting files where req.

I have logged into my zen cart admin.

My mod boxes are missing which is fine as they should be available in admin settings to check.

However, there is no P (permissions icon) in the admin settings.

I have repeated the install process 2 times and still no P icon.

What step would be doing incorrectly?

I'm following same steps I did on WAMP server which worked. install.txt

Any input is appreciated!

You can ignore above.. post regarding live installation... I think a while a go I had half installed admin profiles. So I had to apply the 3 manual patches.

All working now.

Great Mod.

29 Aug 2009, 10:28 PM
#867
maynorfolk avatar

maynorfolk

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

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

Sorry for probably missing the answer to this somewhere earlier in the thread but I am getting so that nothing seems to make sense anymore.....

Running version 1.3.8a with all the patches etc done and admin profiles installed and was working correctly.

I have installed the FAQ manager mod which says that it does not ovewrite any files etc and didn't seem to. Since this is installed I have been to permissions for my admin account and the new mod is showing there waiting to be ticked. The problem lays here.....

I can tick the box, save changes and then it sends me back to the index page. Have followed a few answers and basically re-installed the admin profiles mod fully and now have a few more third party mods which were ok without ticks in the boxes and even though I can tick the boxes, I just get returned to the index page when I click save changes. Going back into permissions shows me that nothing I have done has been saved.

Would appreciate any help available as my limit is usually to follow install instructions, which up to now has worked well, and I do not have the know how to start changing/looking/ editing files on my own initiative.

Thanks in advance for any suggestions or a point in the right direction for the answer...... and this is a really great mod, or was when it was working before I messed it up :smile:

29 Aug 2009, 10:49 PM
#868
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

maynorfolk:

Running version 1.3.8a with all the patches etc done and admin profiles installed and was working correctly.Which version of Admin Profiles are you using?

30 Aug 2009, 6:03 AM
#869
demiurgia avatar

demiurgia

New Zenner

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

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

You say you have all security patches for zencart but have you done the patch for admin profiles. It sounds like that is your problem. here is the info.

kuroi:

The recently-released Admin security patch adds a security token to most forms that update the database. More security is a good thing. However in this case the new security token prevents current versions of Admin Profiles from updating admin user profiles.

Attached is a patch that makes Admin Profiles files compatible with the Zen Cart patch. Simply replace your admin/admin_control.php file with the one in the zip archive below. The Admin Profiles patch will work whether or not you have the Zen Cart security patch installed, and so is recommended.

Attachment #5960

A full updated version of Admin Profiles will be submitted to the downloads area for approval within the next few minutes.

30 Aug 2009, 9:22 AM
#870
maynorfolk avatar

maynorfolk

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

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

Hi, Thanks for the quick responses and apologies for my delay.

The version is 1.0.7 according to the folder in which the mod files are found. I have just tried replacing the file from the zip in 'demiurgia' s post but it has had no effect, still get kicked back to index page and the permissions are not changed.

30 Aug 2009, 9:50 AM
#871
demiurgia avatar

demiurgia

New Zenner

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

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

OOh sorry that didn't fix your problem. It worked perfectly for me and many were having the same problem after the zen cart security updates. i am no expert so hopefully those that are more zencart intelligent then me can help. Only suggestions I would have are to make sure that file was overwritten properly - ie that permissions are set and that your ftp is overwriting not resuming [I apologise if this is obvious to you but some people aare novices like me lol]
You will need to make sure you know the login for the no 1 admin as when I installed the updated file I had to reset all my user permissions and could only get in with the main admin.

30 Aug 2009, 10:20 AM
#872
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

maynorfolk:

Hi, Thanks for the quick responses and apologies for my delay.

The version is 1.0.7 according to the folder in which the mod files are found. I have just tried replacing the file from the zip in 'demiurgia' s post but it has had no effect, still get kicked back to index page and the permissions are not changed.You have described perfectly the symptoms that occur when version 1.0.7 of the mod is run with the Zen Cart security patches in place. The solution is to replace the admin_control file with the one in the zip.

I recommend taking a close look at your process for replacing that file. Some FTP clients by default won't replace a file without an explicit confirmation, so are you sure the new one got there? Try deleting the file on your server before updating the new one to be sure that you are actually using the version that will solve your problem.

30 Aug 2009, 10:52 AM
#873
maynorfolk avatar

maynorfolk

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

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

Hi Kuroi,

Have now done as you suggested and deleted the file on the server then uploaded the one contained in the zip. Unfortunately, the problem is still there and can't change any of the permissions.

I am the only admin account on here at the moment with ID1 as I have removed the one other that was present. I presume the fact that I can access the panel with permissions boxes to change them that the password which can be reset is ok? I don't actually remember being asked for a password when re-installing so am also presuming that this is picked up from somewhere in the config files....

Is it possible that something which the admin profiles changes to assign new permissions does not have the correct settings to allow it to be changed? For instance, you have to change the config files permissions to 444 etc after install. I am stabbing in the dark here with an awful lot of presumption as I have no real idea how this all works but wonder if I may have simply changed something simple in error (although I fear that tracing this may be a big problem...)?

I hope that you may have further ideas as to a cure, it is not stopping the operation of the live site but will be a pain if anything needs adding or changing as a few of the things that did work don't know as no access is allowed, including image handler. Just to go back on a point, this was all working well up to the install of the FAQ mod and my attempt to allow myself access to the config panel for this mod.

I await your thoughts eagerly......

30 Aug 2009, 1:02 PM
#874
maynorfolk avatar

maynorfolk

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

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

A massive 'thank you' to Kuroi and also demiurgia for their help in sorting this problem. All is working fine again now.

As usual I think, it was not the mod at fault but either the ftp process or, much more likely, the guy at the operating end!!!!!

Excellent mod and like most everything I have found to do with Zen Cart, excellent, fast backup and assistance when needed. Thanks again, much appreciated.

31 Aug 2009, 9:49 AM
#875
cliffvt avatar

cliffvt

Zen Follower

Join Date:
Jul 2009
Posts:
100
Plugin Contributions:
0

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

Hi There

I am running version 1.0.7.1 but would really like to install the "Restrict product Categories" mod available here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1088

Problem is that this mod is based on 1.0.7 and I'm not sure what exactly changed in 1.0.7.1 so that I can make manual changes.

Can anyone at Kuroi help please?

Thanks

Cliff

31 Aug 2009, 12:42 PM
#876
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

cliffvt:

I am running version 1.0.7.1 but would really like to install the "Restrict product Categories" mod ... Problem is that this mod is based on 1.0.7 and I'm not sure what exactly changed in 1.0.7.1 so that I can make manual changes.Hi Cliff

Make sure that you have read the moderator's note on that mod's download page, and the commentary about it earlier in this thread.

If you're OK with its limitations and want to go ahead, then the key file is admin/admin_control.php.

You should really remove the existing Admin Profiles code and tables since the structure is a little different for that mod. Then edit the admin_control file to replace its line 109 with line 89 from Admin Profiles and for good measure line 62 with Admin Profiles line 42.

I think that this should work, but recommend trying it on a test system system first, since I haven't tested it (and don't plan to!)

8 Sep 2009, 11:01 AM
#877
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

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

well i had this mod running on my site for 2 years now and running fine... however for some reason it seems to have stopped working! i have just emplyed a freelance person to instert items for me so i went to make a admin profile for them. Created the new admin then click the P and all the setting came up. I selected the catogories tick box and the attributes names etc and catogoires/products etc just what they needed. Clicked saves settings and then i was sent back to the admin homepage.

logged out and logged in as new admin and lo and behold they had no options!

logged back in as myself admin1 an checked the provliges and nothing was selected. Ive tried 5 times now and tried a new admin but nothing is work! i cant even change my own setting... ie turn off or on something for my self :s

any ideas??

8 Sep 2009, 11:12 AM
#878
demiurgia avatar

demiurgia

New Zenner

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

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

Sounds like the prob I and lots others had. if you installed the zencart security updtaes it effects the admin profiles mod and you just need to install the update for it as well. The info you need is at post 751.[p76] or just go back a page to my previous reply to soemone else at post 865.

hope it fixes your problem. :smile:

8 Sep 2009, 12:36 PM
#879
beep avatar

beep

New Zenner

Join Date:
Nov 2008
Location:
London
Posts:
94
Plugin Contributions:
0

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

DrByte:

Did you re-run the "install_admin_profiles.sql" file via phpMyAdmin to reset all the admin permissions?
How do i do this? I have just installed the mod (on Zen cart 1.3.8a) and it is not giving me (admin ID1) access to admin settings or SQL patched panel. Ihave updated box file to no avail.
I know very little about using PHPMyAdmin.

Please help :dontgetit

8 Sep 2009, 2:05 PM
#880
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

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

demiurgia:

Sounds like the prob I and lots others had. if you installed the zencart security updtaes it effects the admin profiles mod and you just need to install the update for it as well. The info you need is at post 751.[p76] or just go back a page to my previous reply to soemone else at post 865.

hope it fixes your problem. :smile:

thanks ill look into that. Must be the security upgrade as thats the only thing ive changes in 2 years