0
Welcome Guest! Login
0 items Join Now

Any news on the K2 frontend bug fix?

    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Any news on the K2 frontend bug fix?

    Posted 12 years 3 months ago
    • hmm I guess we just need a place where we can display that message.
      So we add a position "drawer" in component.php.
      Make sure that gantry system-messages is turned on and set to display in the position "drawer".

      Try this in component.php:
      <?php
      /**
      * @version   $Id: component.php 3988 2012-09-30 18:19:18Z kevin $
       * @author RocketTheme http://www.rockettheme.com
       * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
       * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
       *
       * Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
       *
       */
      // no direct access
      defined( '_JEXEC' ) or die( 'Restricted index access' );
       
      // load and inititialize gantry class
      require_once('lib/gantry/gantry.php');
      $gantry->init();
       
      ?>
      <?php if (JRequest::getString('type')=='raw'):?>
          <jdoc:include type="component" />
      <?php else: ?>
          <!doctype html>
          <html xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
              <head>
                  <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
                  <?php $gantry->displayHead(); ?>
                  <?php $option = JFactory::getApplication()->input->getString('option') ?>
                  <?php if ( $option != 'com_k2' ) : ?>
                  <?php $gantry->addLess('global.less', 'master.css', 8, array('main-accent'=>$gantry->get('main-accent', '#FFEB54'))); ?>
                  <?php endif; ?>
              </head>
              <body class="component-body">
              
              <?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
              <div id="rt-drawer">
                  <div class="rt-container">
                      <?php echo $gantry->displayModules('drawer','standard','standard'); ?>
                      <div class="clear"></div>
                  </div>
              </div>
              <?php /** End Drawer **/ endif; ?>
              
                  <div id="rt-main">
                          <div class="rt-block">
                              <div id="rt-mainbody">
                              <div class="component-content">
                                  <jdoc:include type="component" />
                              </div>
                          </div>
                      </div>
                  </div>
              </body>
          </html>
      <?php endif; ?>
      <?php
      $gantry->finalize();
      ?>

      I hope this helps ...
    • Gene Page's Avatar
    • Gene Page
    • Hero Rocketeer
    • Posts: 289
    • Thanks: 0

    Re: Any news on the K2 frontend bug fix?

    Posted 12 years 3 months ago
    • IT WORKS!

      Just one question, will having system messages turned on have negative side effects? This is going to be a very public website, so I'd hate for an end user to see messages intended for publishers/admins.

      I'm very pleased.
    • Last Edit: 12 years 3 months ago by Gene Page.
    • Show Support for These Requests...

      Automatic K2 Tags for RokSprocket ->
      www.rockettheme.com/forum/index.php?f=16...86380&rb_v=viewtopic

      Option for K2 Video instead of Image for RokSprocket (like JoomlaBamboo's ZenTools) ->...
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Any news on the K2 frontend bug fix?

    Posted 12 years 3 months ago
    • I don't really think that this could be an issue.
      system-messages that are coming for a user that is editing an article will only appear for him and not for others ...

      Glad we finally pulled this off. Not sure how the devs will address this issue but I guess there will be a solution in the next updates for all G4 templates.
    • Gene Page's Avatar
    • Gene Page
    • Hero Rocketeer
    • Posts: 289
    • Thanks: 0

    Re: Any news on the K2 frontend bug fix?

    Posted 12 years 3 months ago
    • This completely solved my problem. Perhaps you should pass this along to the developers since it worked so well, maybe they'll take note.

      I wish the fix had come sooner, but I'm just happy to have it working normally now.

      Thanks again!
    • Show Support for These Requests...

      Automatic K2 Tags for RokSprocket ->
      www.rockettheme.com/forum/index.php?f=16...86380&rb_v=viewtopic

      Option for K2 Video instead of Image for RokSprocket (like JoomlaBamboo's ZenTools) ->...
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Any news on the K2 frontend bug fix?

    Posted 12 years 3 months ago
    • jfyi ... I already suggest that as a possible fix in a comment to the bugticket.

Time to create page: 0.063 seconds