Calendar Next Month Links Not Working Part 2

Home Forums Calendar Products Events Calendar PRO Calendar Next Month Links Not Working Part 2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #106926
    Graeme
    Participant

    Hi, Barry was attempting to assist me with a problem in making the calendar navigation links work. https://tri.be/support/forums/topic/calendar-next-month-links-not-working/#post-105385

    I have got the php file identified now that I needed to put the line of code Barry gave me in. I have added the code within the body tags but this hasn’t fixed the problem. The code I have is below, could you clarify where it should be put if not in the body tags? I also tried in the head tags too, but still nothing. Is there anything else at all you could suggest??

    <?php
    /**
    * @package Shelf
    * @author YOOtheme http://www.yootheme.com
    * @copyright Copyright (C) YOOtheme GmbH
    * @license http://www.gnu.org/licenses/gpl.html GNU/GPL
    */

    // get template configuration
    include($this[‘path’]->path(‘layouts:template.config.php’));

    ?>
    <!DOCTYPE HTML>
    <html lang=”<?php echo $this[‘config’]->get(‘language’); ?>” dir=”<?php echo $this[‘config’]->get(‘direction’); ?>”>

    <head>
    <?php echo $this[‘template’]->render(‘head’); ?>
    </head>

    <body id=”page” class=”page <?php echo $this[‘config’]->get(‘body_classes’); ?>” data-config='<?php echo $this[‘config’]->get(‘body_config’,'{}’); ?>’>

    <?php if ($this[‘modules’]->count(‘absolute’)) : ?>
    <div id=”absolute”>
    <?php echo $this[‘modules’]->render(‘absolute’); ?>
    </div>
    <?php endif; ?>

    <div id=”block-toolbar”>

    <div class=”wrapper”>

    <div id=”toolbar” class=”grid-block”>

    <?php if ($this[‘modules’]->count(‘toolbar-l’) || $this[‘config’]->get(‘date’)) : ?>
    <div class=”float-left”>

    <?php if ($this[‘config’]->get(‘date’)) : ?>
    <time datetime=”<?php echo $this[‘config’]->get(‘datetime’); ?>”><?php echo $this[‘config’]->get(‘actual_date’); ?></time>
    <?php endif; ?>

    <?php echo $this[‘modules’]->render(‘toolbar-l’); ?>

    </div>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘search’)) : ?>
    <div id=”search”><?php echo $this[‘modules’]->render(‘search’); ?></div>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘toolbar-r’)) : ?>
    <div class=”float-right”><?php echo $this[‘modules’]->render(‘toolbar-r’); ?></div>
    <?php endif; ?>

    </div>

    </div>

    </div>

    <div id=”block-header”>
    <div>

    <div class=”wrapper clearfix”>

    <header id=”header” class=”grid-block”>

    <?php if ($this[‘modules’]->count(‘logo’)) : ?>
    get(‘site_url’); ?>”><?php echo $this[‘modules’]->render(‘logo’); ?>
    <?php endif; ?>

    <div id=”menubar” class=”grid-block”>

    <?php if ($this[‘modules’]->count(‘menu’)) : ?>
    <nav id=”menu”><?php echo $this[‘modules’]->render(‘menu’); ?></nav>
    <?php endif; ?>

    </div>

    <?php if ($this[‘modules’]->count(‘banner’)) : ?>
    <div id=”banner”><?php echo $this[‘modules’]->render(‘banner’); ?></div>
    <?php endif; ?>

    </header>

    <?php if ($this[‘modules’]->count(‘top-a’)) : ?>
    <section id=”top-a” class=”grid-block”><?php echo $this[‘modules’]->render(‘top-a’, array(‘layout’=>$this[‘config’]->get(‘top-a’))); ?></section>
    <?php endif; ?>

    </div>

    </div>
    </div>

    <div id=”block-main”>

    <div class=”wrapper”>

    <?php if ($this[‘modules’]->count(‘top-b’)) : ?>
    <section id=”top-b” class=”grid-block”><?php echo $this[‘modules’]->render(‘top-b’, array(‘layout’=>$this[‘config’]->get(‘top-b’))); ?></section>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘innertop + innerbottom + sidebar-a + sidebar-b’) || $this[‘config’]->get(‘system_output’)) : ?>
    <div id=”main” class=”grid-block”>

    <div id=”maininner” class=”grid-box”>

    <?php if ($this[‘modules’]->count(‘innertop’)) : ?>
    <section id=”innertop” class=”grid-block”><?php echo $this[‘modules’]->render(‘innertop’, array(‘layout’=>$this[‘config’]->get(‘innertop’))); ?></section>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘breadcrumbs’)) : ?>
    <section id=”breadcrumbs”><?php echo $this[‘modules’]->render(‘breadcrumbs’); ?></section>
    <?php endif; ?>

    <?php if ($this[‘config’]->get(‘system_output’)) : ?>
    <section id=”content” class=”grid-block”><?php echo $this[‘template’]->render(‘content’); ?></section>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘innerbottom’)) : ?>
    <section id=”innerbottom” class=”grid-block”><?php echo $this[‘modules’]->render(‘innerbottom’, array(‘layout’=>$this[‘config’]->get(‘innerbottom’))); ?></section>
    <?php endif; ?>

    </div>
    <!– maininner end –>

    <?php if ($this[‘modules’]->count(‘sidebar-a’)) : ?>
    <aside id=”sidebar-a” class=”grid-box”><?php echo $this[‘modules’]->render(‘sidebar-a’, array(‘layout’=>’stack’)); ?></aside>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘sidebar-b’)) : ?>
    <aside id=”sidebar-b” class=”grid-box”><?php echo $this[‘modules’]->render(‘sidebar-b’, array(‘layout’=>’stack’)); ?></aside>
    <?php endif; ?>

    </div>
    <?php endif; ?>
    <!– main end –>

    <?php if ($this[‘modules’]->count(‘bottom-a’)) : ?>
    <section id=”bottom-a” class=”grid-block”><?php echo $this[‘modules’]->render(‘bottom-a’, array(‘layout’=>$this[‘config’]->get(‘bottom-a’))); ?></section>
    <?php endif; ?>

    <?php if ($this[‘modules’]->count(‘bottom-b’)) : ?>
    <section id=”bottom-b” class=”grid-block”><?php echo $this[‘modules’]->render(‘bottom-b’, array(‘layout’=>$this[‘config’]->get(‘bottom-b’))); ?></section>
    <?php endif; ?>

    </div>

    </div>

    <div id=”block-footer” class=”clearfix”>

    <div class=”wrapper”>

    <?php if ($this[‘modules’]->count(‘footer + logo-footer + debug’) || $this[‘config’]->get(‘warp_branding’)) : ?>
    <footer id=”footer” class=”grid-block”>

    <?php if ($this[‘modules’]->count(‘logo-footer’)) : ?>
    get(‘site_url’); ?>”><?php echo $this[‘modules’]->render(‘logo-footer’); ?>
    <?php endif; ?>

    <?php if ($this[‘config’]->get(‘totop_scroller’)) : ?>

    <?php endif; ?>

    <div>
    <?php
    echo $this[‘modules’]->render(‘footer’);
    $this->output(‘warp_branding’);
    echo $this[‘modules’]->render(‘debug’);
    ?>
    </div>

    </footer>
    <?php endif; ?>

    </div>

    </div>

    <?php echo $this->render(‘footer’); ?>
    </body>
    </html>

    #107044
    Barry
    Member

    Hi Graeme,

    Thanks for giving that a try. So here’s what I see in the code you posted (as a sidenote, please share any large bodies of code using a service like Pastebin or Gist rather than directly in the forum – principally because a glitch in our forum software can cause pieces of code to be stripped out, sometimes leading us to the wrong conclusion as a consequence 🙂 ):

    <body id=”page” class=”page <?php echo $this['config']->get(‘body_classes’); ?>” data-config=’<?php echo $this['config']->get(‘body_config’,'{}’); ?>’>

    So as suspected in the previous thread, the problem is that the theme is “doing it’s own thing” with regards to body classes rather than following WordPress conventions. You could try changing this to:

    <body id=”page” class=”page <?php body_class() ?>” data-config=’<?php echo $this['config']->get(‘body_config’,'{}’); ?>’>

    (If you have already – and that is currently in place – please let me know so I can look at the site and review what is happening) noting however that the side effect of this change is that the theme’s own body classes may not be applied. You could therefore also try:

    <body id=”page” class=”page <?php echo $this['config']->get(‘body_classes’); ?> <?php body_class() ?>” data-config=’<?php echo $this['config']->get(‘body_config’,'{}’); ?>’>

    Let me know if that helps!

    #107192
    Graeme
    Participant

    Barry, I would like to thank you very much for your efforts however I am not able to carry on this fix attempt any longer. It has been by far one of the most frustrating situations I have ever been in .
    I have now downloaded a free events plugin which is working perfectly with the theme and doing the very same job Modern Tribe’s plugin did, before it stopped working.
    I am very grateful to you for your helpful tones and commitment to assisting me and I am sorry both you and I were unable to make it work again.

    I would like to request a refund of my Event Calendar Pro licence. The reason is, as you know, I do not feel I have done anything to my theme, or site overall, to cause any conflicts. It worked fairly well until the last update which, as users, are installed in simple good faith.
    I also had many issues with this plugin at the start. The only way to update is by deletion and reinstallation, if you update from the WP UI then it rewrites the .htaccess file and breaks the site. This happened to me twice.

    Since paying the last licence fee there have been only 3 months usability from the plugin and although it is only a modest fee, I feel it would be appropriate for the fee to be refunded as a result of this unexpected breakage.

    Please could you go ahead and arrange this for me, or if you are not adequately authorised to do so, could you please ask a member of Modern Tribe’s senior management team to contact me?

    Thanks again for your help.

    Graeme.

    #107980
    Barry
    Member

    Hi Graeme, I can understand your position here and would ask that you email us at pro [at] tri [dot] be – please include a link to this thread to provide the team member dealing with this some context and ideally also a copy of your purchase receipt.

    Thanks again for trying to work through this with us and hopefully at some future point you’ll have a reason to give us another try.

    (I’ll go ahead and close this thread.)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Calendar Next Month Links Not Working Part 2’ is closed to new replies.