Thread: Westminster New

Results 1 to 10 of 1865

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by RixStix View Post
    Fresh install of 1.5.1 doesn't play nice with php 5.4 or higher without tweaks, does it?
    I have no idea if that is the problem or not. If someone finds an incompatibility with php 5.4 or higher please let me know and post the fix if you know how to fix it.

    Thanks,

    Anne

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Westminster New

    What I meant was that if v1.5.1 did not play nice with php 5.4 +, maybe the issue is not template related.


    Quote Originally Posted by picaflor-azul View Post
    I have no idea if that is the problem or not. If someone finds an incompatibility with php 5.4 or higher please let me know and post the fix if you know how to fix it.

    Thanks,

    Anne

  3. #3
    Join Date
    Jun 2007
    Location
    Arkansas
    Posts
    71
    Plugin Contributions
    0

    Default Re: Westminster New

    In the middle of the home page there are three homeads. Is there a way to add more of these?
    Justin Kumpe

  4. #4
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by jakumpe View Post
    In the middle of the home page there are three homeads. Is there a way to add more of these?
    You can add more in includes/languages/english/html_includes/westminster_new/define_main_page.php. If you want them to be editable via the banner manager you will have to create new banner groups.

    Thanks,

    Anne

  5. #5
    Join Date
    Jun 2007
    Location
    Arkansas
    Posts
    71
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by picaflor-azul View Post
    You can add more in includes/languages/english/html_includes/westminster_new/define_main_page.php. If you want them to be editable via the banner manager you will have to create new banner groups.

    Thanks,

    Anne
    I must be missing a step. I added a banner via banner manager with group name homead4 then added the code below to define_main_page.php but nothing happened.

    Code:
    <div class="view view-tenth ad-right">
    <div class="hover">
     <?php
    if (SHOW_BANNERS_GROUP_SETHOMEAD4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD4)) 
        {
        if ($banner->RecordCount() > 0) 
            {
               echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
            }
        }?> 
                        </div>
                    </div>]
    If I add the below code it duplicates the homead3 banner so I think I may not be adding the banner group correctly.

    Code:
    <div class="view view-tenth ad-right">
    <div class="hover">
     <?php
    if (SHOW_BANNERS_GROUP_SETHOMEAD3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD3)) 
        {
        if ($banner->RecordCount() > 0) 
            {
               echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
            }
        }?> 
                        </div>
                    </div>
    Justin Kumpe

  6. #6
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by jakumpe View Post
    I must be missing a step. I added a banner via banner manager with group name homead4 then added the code below to define_main_page.php but nothing happened.

    Code:
    <div class="view view-tenth ad-right">
    <div class="hover">
     <?php
    if (SHOW_BANNERS_GROUP_SETHOMEAD4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD4)) 
        {
        if ($banner->RecordCount() > 0) 
            {
               echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
            }
        }?> 
                        </div>
                    </div>]
    If I add the below code it duplicates the homead3 banner so I think I may not be adding the banner group correctly.

    Code:
    <div class="view view-tenth ad-right">
    <div class="hover">
     <?php
    if (SHOW_BANNERS_GROUP_SETHOMEAD3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD3)) 
        {
        if ($banner->RecordCount() > 0) 
            {
               echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
            }
        }?> 
                        </div>
                    </div>
    You will need to add the new constant into the database configuration table. If you find the row for any of the other banner groups used in the template you can just duplicate it and add your changes.

    Thanks,

    Anne

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Westminster New

    Hi Anne,

    There appears to be a problem with the caption of the flexslider when the screen is extended to a width higher than 1038px. As soon as I extend the screen further than 1038px the caption and the underlying transparent bar goes offline with the images, iow the bar is shifting to the left leaving a small space between the right hand border of the images and extending over the left hand side of the images into the white space.

    In the stylesheet_flex.css this code appears to be the culprit:

    Code:
    @media screen and (max-width: 1238px) {   /*was 1038*/
    .banner {left: 0;right: 15px;margin-left: 0;}
    .banner p {font-size: 22px;text-indent: 15px}
    .flexslider .slides img {min-height: 0}
    }
    In the above I extended max-width from 1038px to 1238px, just to prove a point. Now, the bar goes off center and shifts to the left when the screen is extended over 1238px.

    Is there any reason why this max-width can't be increased to say 1600px, just to accommodate wider displays? Or even better - set max-width to 'unlimited' as some displays work on a width of 1900.

    Alternatively limit the body of the site to 1900 or whatever??

    It happens in both Chrome and Firefox (latest versions on a Linux Mint box)

    Cheers / Frank
    Last edited by frank18; 3 Jun 2014 at 08:37 AM.

  8. #8
    Join Date
    Dec 2010
    Location
    U.S. State of Texas
    Posts
    76
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by picaflor-azul View Post
    You will need to add the new constant into the database configuration table. If you find the row for any of the other banner groups used in the template you can just duplicate it and add your changes.

    Thanks,

    Anne
    Hi I believe I updated according to the above instructions but am obviously missing something. Here is the code for the database config. Any help would be greatly appreciated. Thank you

    ('', 'Fine Jewelry', 'index.php?main_page=index&cPath=1', 'banners/ad1.jpg', 'homead1', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '6'),
    ('', 'Great Tops!', 'index.php?main_page=index&cPath=2', 'banners/ad2.jpg', 'homead2', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '7'),
    ('', 'Lorem Ipsum', 'index.php?main_page=index&cPath=3', 'banners/ad3.jpg', 'homead3', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '8'),
    ('', 'Home Top', 'http://www.picaflor-azul.com', 'banners/home-top.png', 'hometop', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '1', '0', '9'),
    ('', 'Furniture4', 'index.php?main_page=index&cPath=4', 'banners/ad4.jpg', 'homead1', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '10'),
    ('', 'Furniture5', 'index.php?main_page=index&cPath=5', 'banners/ad5.jpg', 'homead2', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '11'),
    ('', 'Furniture6', 'index.php?main_page=index&cPath=6', 'banners/ad6.jpg', 'homead3', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '12');");


    #$db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_group_id = 0;");
    $db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = '';");

    $db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION_GROUP . " (configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('" . BOX_CONFIGURATION_WESTMINSTER_NEW. "', 'Set Westminster New Template Options', '1', '1');");
    $configuration_group_id = $db->Insert_ID();

    $db->Execute("UPDATE " . TABLE_CONFIGURATION_GROUP . " SET sort_order = " . $configuration_group_id . " WHERE configuration_group_id = " . $configuration_group_id . ";");

    $db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
    ('Version', 'WESTMINSTER_NEW_VERSION', '1.1', 'Version installed:', " . $configuration_group_id . ", 0, NOW(), NOW(), NULL, NULL),
    ('Home Page Slideshow', 'WES_SLIDER_STATUS', 'true', 'Activate Home Page Slideshow', " . $configuration_group_id . ", 1, NOW(), NOW(), 'zen_cfg_select_option(array(\'true\', \'false\'),', NULL),
    ('Banner Display Groups Custom Tab', 'SHOW_BANNERS_GROUP_SETCUSTOMTAB', 'Custom Tab', 'Custom Tab for product info page', " . $configuration_group_id . ", 2, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Top Home Ad', 'SHOW_BANNERS_GROUP_SETHOMETOP', 'hometop', 'Custom ad next to home page slide show', " . $configuration_group_id . ", 3, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 1', 'SHOW_BANNERS_GROUP_SETHOMEAD1', 'homead1', 'Custom ad 1 for home page', " . $configuration_group_id . ", 4, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 2', 'SHOW_BANNERS_GROUP_SETHOMEAD2', 'homead2', 'Custom ad 2 for home page', " . $configuration_group_id . ", 5, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 3', 'SHOW_BANNERS_GROUP_SETHOMEAD3', 'homead3', 'Custom ad 3 for home page', " . $configuration_group_id . ", 6, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 4', 'SHOW_BANNERS_GROUP_SETHOMEAD4', 'homead4', 'Custom ad 4 for home page', " . $configuration_group_id . ", 7, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 5', 'SHOW_BANNERS_GROUP_SETHOMEAD5', 'homead5', 'Custom ad 5 for home page', " . $configuration_group_id . ", 8, NOW(), NOW(), NULL, NULL),
    ('Banner Display Groups Home Ad 6', 'SHOW_BANNERS_GROUP_SETHOMEAD6', 'homead6', 'Custom ad 6 for home page', " . $configuration_group_id . ", 9, NOW(), NOW(), NULL, NULL),



    The define_main_page.php:

    <div class="view view-tenth">

    <div class="hover">

    <?php

    if (SHOW_BANNERS_GROUP_SETHOMEAD4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD4))

    {

    if ($banner->RecordCount() > 0)

    {

    echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';

    }

    }?>

    </div>

    </div>


    <div class="view view-tenth ad-right">

    <div class="hover">

    <?php

    if (SHOW_BANNERS_GROUP_SETHOMEAD5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD5))

    {

    if ($banner->RecordCount() > 0)

    {

    echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';

    }

    }?>

    </div>

    </div>

    <div class="view view-tenth ad-right">

    <div class="hover">

    <?php

    if (SHOW_BANNERS_GROUP_SETHOMEAD6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD6))

    {

    if ($banner->RecordCount() > 0)

    {

    echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';

    }

    }?>

    </div>

    </div>

 

 

Similar Threads

  1. v155 Getting ajax error in v155 with v154 Westminster template
    By godt in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2016, 12:41 AM
  2. v155 Getting ajax error in v155 with v154 Westminster template
    By MCS_Computers in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2016, 03:58 PM
  3. v154 Modifying Top Menu - Westminster New
    By chelseaneedshelp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Mar 2015, 04:28 PM
  4. Westminster New doesn't work on mobile phone
    By Pompidompie in forum Addon Templates
    Replies: 3
    Last Post: 26 Mar 2015, 10:34 PM
  5. v151 westminster new Share and Connect
    By Larry0652 in forum Addon Templates
    Replies: 8
    Last Post: 24 Oct 2014, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg