Hi
I made small changes in PS 1.7 files (I was working on 1.7.5.1) adding function that allows admin to define which group of users has acces to specific CMS page. It's NOT a module, just small changes. So, if you upgrade your shop you must provide changes in files again and check if function works properly. Please note, that I'm not a php programmer, so functions can be not fully optimized. If you are, you can share here with improvements.
How to implement.
1.extract files from zip file (files are in directory structure as should be on the server)
2. Copy CMSGroup.php as is - this is new file.
3. In rest of files there are two possibilities:
- simple: just overwrite rest of files BUT! remember about PS version and copy to proper directories.
- custom: open each file find mark /* added */ and copy this one line or several lines from /* added start */ to /*added stop */
4. Create table in database
CREATE TABLE `ps_cms_group` (
`id_cms` int(10) UNSIGNED NOT NULL,
`id_group` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `ps_cms_group`
ADD KEY `id_cms` (`id_cms`) USING BTREE;
Simple but functional. Maybe PS Team add such function to official release? Would be nice...:)
Please note, that you are making all changes for your onwn risk. I do not take any responsibility! No support to other versions.
TomekZ.