-
AuthorPosts
-
July 25, 2015 at 5:59 am #478539
Hey!
You can only find the avia_sc_events_countdown class in that specific file, nowhere else. The code means that if the “avia_sc_events_countdown” class exists or defined somewhere else, don’t define it but since it is not defined somewhere else other than this specific file, continue or define it. Like I said, the same exact code of line is working on my installation as you can see on the screenshot. I test it again on the new temp page but it’s not working. Please hire a freelance developer to help us and see what’s going on with it.
Cheers!
IsmaelJuly 25, 2015 at 11:07 am #478623Hi!
My bad. I think I know now why it’s not working. There are multiple files in the shortcodes folder with the “av_events_countdown” shortcode name so even though we renamed the original file, it’s still being use instead of the new file. It is now showing the variable values when I use the var_dump function.
Best regards,
IsmaelOctober 18, 2016 at 9:15 pm #700875So, what ended up being the solution? I’m experiencing the same issue because I currently have an event happening, but would like to promote my next upcoming one. But the counter is invisible.
Is there a way to select which event can be reflected in countdown?
October 18, 2016 at 10:22 pm #700914Hi @PabloStennett,
Sorry, but I gave up trying to get the event countdown working properly. Support team say it works, I say it doesn’t. Good luck trying to resolve the issue.
H
October 20, 2016 at 8:09 am #701707Hi!
Please edit the config-templatebuilder > avia-shortcodes > events_countdown.php file, replace the content with the following script.
// http://pastebin.com/g3EniQvF
Best regards,
IsmaelOctober 25, 2016 at 3:06 am #703528Hi There,
I’m a little confused. I see a config.php file in the editor. (config-templatebuilder/config.php) I don’t see avia shortcodes or the events_countdown file. Am I in the right place?When I click on it, I see the below code. Are you saying replace all of the below with the 226 lines of code accessed through the link you sent?
I may be on the wrong trail.
Here’s the code I see when I click on config.php
<?php
/*function that checks if the avia builder was already included*/
function avia_builder_plugin_enabled()
{
if (class_exists( ‘AviaBuilder’ )) { return true; }
return false;
}//set the folder that contains the shortcodes
function add_shortcode_folder($paths)
{
$paths = array(dirname(__FILE__) .”/avia-shortcodes/”);
return $paths;
}add_filter(‘avia_load_shortcodes’,’add_shortcode_folder’);
//set the folder that contains assets like js and imgs
function avia_builder_plugins_url($url)
{
$url = get_template_directory_uri().”/config-templatebuilder/avia-template-builder/”;
return $url;
}add_filter(‘avia_builder_plugins_url’,’avia_builder_plugins_url’);
//check if the builder was included via plugin. if not include it now via theme
if(!avia_builder_plugin_enabled())
{
require_once( dirname(__FILE__) . ‘/avia-template-builder/php/template-builder.class.php’ );//define( ‘AVIA_BUILDER_TEXTDOMAIN’, ‘avia_framework’ );
$builder = new AviaBuilder();
//activates the builder safe mode. this hides the shortcodes that are built with the content builder from the default wordpress content editor.
//can also be set to “debug”, to show shortcode content and extra shortcode container field
$builder->setMode( ‘safe’ );//set all elements that are fullwidth and need to interact with the section shortcode. av_section is included automatically
$builder->setFullwidthElements( array(‘av_revolutionslider’, ‘av_layerslider’ ,’av_slideshow_full’, ‘av_fullscreen’, ‘av_masonry_entries’,’av_masonry_gallery’, ‘av_google_map’, ‘av_slideshow_accordion’, ‘av_image_hotspot’, ‘av_portfolio’, ‘av_submenu’, ‘av_layout_row’, ‘av_button_big’,’av_feature_image_slider’) );
}October 28, 2016 at 10:26 am #705222 -
AuthorPosts
- You must be logged in to reply to this topic.