Multisite module EZ-pages add-on

Zen-Cart Multisite EZ-Pages add-on module

I’ve written an enhancement to Multisite to allow user to choose with EZ-Pages are shown on which sites.

You can see it at work here:

http://www.exclusivebeautybrands.com and

http://www.exclusivebeautybrands.co.uk

It’s only 158k, and is easy to implement, I’ve documented it too!

Download from here multisite_ez-pages.zip

If you like it, the please donate, evenĀ  $5 is great!

Here’s the READ ME:

               +---------------------------------------+
               |                                       |
               |     Multi-Site EZ- Pages Module.      |
               |                                       |
               |     Created by Gordon Bunker          |
               |       gordon@gjbenterprises.com       |
               |      http://www.gjbenterprises.com    |
               |                                       |
               |           Couldn't have been          |
               |             done without:             |
               |   Based on the work by Gerome Romey   |
               |        of Medea International Ltd     |
               |        http://www.medea.co.uk/dev/    |
               |             and Jim Katz              |
               |                                       |
               +---------------------------------------+
This modification will allow you to choose which EZ-Pages
are shown on each site just like categories
The modifications were done on Zen-cart 1.3.8 and Multisite Version: 0.4.2
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=563
No warranty is implied or given
             ** IMPORTANT **
BEFORE YOU IMPLEMENT ANY OF THESE MODIFICATIONS
  CREATE A BACKUP OF YOU FILES AND DATABASE
This file contains 9 files, this READ_ME.txt
2 screenshots and 6 other Files
4 of these are modified files of the standard zen-cart installation
If you have already customised these, you will need to make the changes manually
#################################################
1 SQL File to add an extra field to the ezpages table - I tried using the HTML
content field however the ez-pages admin program didn't like the extra code
stored there as it checks the content length to avoid clashes with links etc!
So I added an extra field ezpages_description, here's the sql if you need to
run it via phpMyAdmin:
multisite_ezpages.sql
here's the code:
ALTER TABLE ezpages ADD ezpages_description TEXT;
#################################################
1 ADDITTIONAL File - A new filter function based on the cat filter function
in this case it filter the EZ-Pages based on the contents of the
ezpages_description field
\includes\functions\extra_functions\ezpages_filter.php
#################################################
3 MODIFIED files that filter out the pages, when displaying the EZ-Pages menus
on a site, it is a simple function modification to each of the Execute
statements
\includes\modules\ezpages_bar_footer.php
\includes\modules\ezpages_bar_header.php
\includes\modules\sideboxes\ezpages.php
#################################################
1 MODIFIED Admin file to enter the site filters
I had a challenge getting to grips with the code for the categories maintenance
function, so I modified the EZ-Pages maintenance routine (If anyone is up for
writing the enhancement/modification for \admin\multisite.php go for it!)
This displays the extra information on the summary block and adds the new field
in on the insert / edit page, see the 2 screenshots
Multisite_EZPages_ScreenShot_01.jpg
Multisite_EZPages_ScreenShot_02.jpg
\admin\ezpages.php
################################################################################
To use this additional module: In the new field on the EZ-Pages edit screen
(Admin / Tools / EZ-Pages , choose your page and select Edit)
enter text in the same manner as for the categories, i.e.
<!--Site Name 1-Site Name 2-->
Where Site Name 1 and Site Name 2 are the names of the sites store in the
 domainname_config.php file(s)
    where it says:
 define('SITE_NAME','Site Name 1');
If you have access to phpMyAdmin, you can run the following routine to quickly
populate all your EZ-Pages, and then edit them later
UPDATE ezpages
SET ezpages_description = "<!--Site Name 1-Site Name 2-->"
Enjoy!
Gordon Bunker
gordon@gjbenterprises.com
http://www.gjbenterprises.com


[caption id="attachment_15" align="alignnone" width="300" caption="multisite_ezpages_screenshot_01"]<a href="http://www.gjbenterprises.com/wp-content/uploads/2010/04/multisite_ezpages_screenshot_01.jpg" target="_blank"><img class="size-medium wp-image-15" title="multisite_ezpages_screenshot_01" src="http://www.gjbenterprises.com/wp-content/uploads/2010/04/multisite_ezpages_screenshot_01-300x164.jpg" alt="multisite_ezpages_screenshot_01" width="300" height="164" /></a>[/caption]

[caption id="attachment_16" align="alignnone" width="300" caption="multisite_ezpages_screenshot_02"]<a href="http://www.gjbenterprises.com/wp-content/uploads/2010/04/multisite_ezpages_screenshot_02.jpg" target="_blank"><img class="size-medium wp-image-16" title="multisite_ezpages_screenshot_02" src="http://www.gjbenterprises.com/wp-content/uploads/2010/04/multisite_ezpages_screenshot_02-300x101.jpg" alt="multisite_ezpages_screenshot_02" width="300" height="101" /></a>[/caption]

Page 1 of 3 | Next page