Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • found a solution.
    in the-events-calendar-shortcode.php
    in line: ‘month’ => ”,
    replace it with: ‘month’ => $curr_month,

    then before extract( shortcode_atts( array( add: $curr_month = date(‘Y-m’);

    Thanks joinfof! it works.
    I′m trying to target current month. Need some help.
    <?php echo do_shortcode( “[ecs-list-events thumb=’true’ thumbwidth=’150′ thumbheight=’150′ order=’DESC’ month=’echo date(‘Y-m’)’]” ?>

    Thanks in advance!

    same problem here, anyone? thanks!

    Forum: Plugins
    In reply to: [Plugin: NextGEN Gallery]

    Hi!
    I′m no expert on this things, but I got Galelrific working like this:
    You download the “examples” galleriffic-2.0.zip to your theme folder (might wanna try twentyten theme firts) from here:
    https://www.twospy.com/galleriffic/

    you upload gallerific folder inside “nextgen-gallery” folder.
    Then inside nggallery.php after this code

    // required for the slideshow
    		if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
    			wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
            else {
                wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');
                wp_enqueue_script('ngg-slideshow', NGGALLERY_URLPATH .'js/ngg.slideshow.min.js', array('jquery-cycle'), '1.05');

    add this code:

    // GALLERIFIC
    wp_register_script('galleriffic' ,NGGALLERY_URLPATH. 'galleriffic/js/jquery.galleriffic.js',false, '2.0.0');
    wp_register_script('jquery.opacityrollover', NGGALLERY_URLPATH . 'galleriffic/js/jquery.opacityrollover.js',false, '2.0.0');
    wp_enqueue_script('galleriffic');
    wp_enqueue_script('jquery.opacityrollover');
    wp_enqueue_style('galleriffic-style', NGGALLERY_URLPATH . 'galleriffic/css/basic.css',false,'2.0','all');
    wp_enqueue_style('galleriffic-style-2', NGGALLERY_URLPATH . 'galleriffic/css/galleriffic-2.css',false,'2.0','all');

    then inside nextgen-gallery/view you create a template file called for example gallery-galleriffic.php with this code:

    <?php
    /**
    
    @description Galleriffic (https://www.twospy.com/galleriffic/) template for Nextgen Gallery WordPress plugin
    @author Kaarel Sikk
    
    Template Page for the gallery overview
    
    Follow variables are useable :
    
    	$gallery     : Contain all about the gallery
    	$images      : Contain all images, path, title
    	$pagination  : Contain the pagination content
    
     You can check the content when you insert the tag <?php var_dump($variable) ?>
     If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
    **/
    ?>
    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
    <?php if (!empty ($gallery)) : ?>
    
    <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
    
    	<div id="gallery" class="content">
    		<div id="controls" class="controls"></div>
    		<div class="slideshow-container">
    			<div id="loading" class="loader"></div>
    			<div id="slideshow" class="slideshow"></div>
    		</div>
    		<div id="caption" class="caption-container"></div>
    	</div>
    	<div id="thumbs" class="navigation">
    		<ul class="thumbs noscript">
    		<!-- Thumbnails -->
    		<?php foreach ($images as $image) : ?>
    			<li>
    			<a class="thumb" href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    			<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" width="78" height="78"/>
    			</a>
                <div class="caption"><?php echo $image->description; ?></div>
    			</li>
    		<?php endforeach; ?>
    		</ul>
    	</div>
     	<div style="clear: both;"></div>
    	<script type="text/javascript">
    			jQuery(document).ready(function($) {
    				// We only want these styles applied when javascript is enabled
    				$('div.navigation').css({'width' : '300px', 'float' : 'left'});
    				$('div.content').css('display', 'block');
    
    				// Initially set opacity on thumbs and add
    				// additional styling for hover effect on thumbs
    				var onMouseOutOpacity = 0.67;
    				$('#thumbs ul.thumbs li').opacityrollover({
    					mouseOutOpacity:   onMouseOutOpacity,
    					mouseOverOpacity:  1.0,
    					fadeSpeed:         'fast',
    					exemptionSelector: '.selected'
    				});
    
    				// Initialize Advanced Galleriffic Gallery
    				var gallery = $('#thumbs').galleriffic({
    					delay:                     2500,
    					numThumbs:                 15,
    					preloadAhead:              10,
    					enableTopPager:            true,
    					enableBottomPager:         true,
    					maxPagesToShow:            7,
    					imageContainerSel:         '#slideshow',
    					controlsContainerSel:      '#controls',
    					captionContainerSel:       '#caption',
    					loadingContainerSel:       '#loading',
    					renderSSControls:          true,
    					renderNavControls:         true,
    					playLinkText:              'Play Slideshow',
    					pauseLinkText:             'Pause Slideshow',
    					prevLinkText:              '&lsaquo; Previous Photo',
    					nextLinkText:              'Next Photo &rsaquo;',
    					nextPageLinkText:          'Next &rsaquo;',
    					prevPageLinkText:          '&lsaquo; Prev',
    					enableHistory:             false,
    					autoStart:                 false,
    					syncTransitions:           true,
    					defaultTransitionDuration: 900,
    					onSlideChange:             function(prevIndex, nextIndex) {
    						// 'this' refers to the gallery, which is an extension of $('#thumbs')
    						this.find('ul.thumbs').children()
    							.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
    							.eq(nextIndex).fadeTo('fast', 1.0);
    					},
    					onPageTransitionOut:       function(callback) {
    						this.fadeTo('fast', 0.0, callback);
    					},
    					onPageTransitionIn:        function() {
    						this.fadeTo('fast', 1.0);
    					}
    				});
    			});
    		</script> 
    
    	<!-- Pagination -->
     	<?php echo $pagination ?>
    
    </div>
    
    <?php endif; ?>

    Then you create the gallery with nextgen (add some captiosn to it) and add the shortcode in a page:
    [nggallery id=1 template=”galleriffic”]
    (for the templates called gallery-galleriffic)

    That′s how I get it working after reading lots of articles on the web and making my own corrections. I′m still learning how to change functionalities on this! I Hope its usefull to you.

    Inside the Carousel item editor theres a “Themes” option and on the right a “Display options”.
    On “Display options” you can change “Autoslide settings”.

    Thread Starter txie

    (@txie)

    This worked:

    tbody th {
    background:none;
    padding:8px 2px 8px 10px;
    text-align:left;
    }

    tbody td {
    padding:8px 2px 8px 10px;
    vertical-align: top
    }

    Thanks!

    Inside wp-content > plugins > contact-form-7 > styles.css is your CSS
    Add the style for your formfields there:
    .formInput {
    font-family:Georgia, “Times New Roman”, Times, serif;
    color: #999999;
    width: 226px;
    font-size: 12px;
    border:0;
    }
    and then on your Contact Form 7 admin you should add the style “class:formInput”:

    <p>Your Name (required)
    [text* your-name class:formInput] </p>

    Hope this helps!

    Thread Starter txie

    (@txie)

    I can′t add this:
    value=”Text to be displayed” onfocus=”if(this.value==this.defaultValue)this.value=”;” onblur=”if(this.value==”)this.value=this.defaultValue;”

    thanks for your help.

    Thread Starter txie

    (@txie)

    Great! thank you so much!

    Thread Starter txie

    (@txie)

    Thank you for this!
    The code works for the single pages that have many categories, but won′t work for those who have only the parent category.

    This is my site:
    https://k-i-t.com.ar/

    and here is one of the single pages that is not working (not even the echo):
    https://k-i-t.com.ar/de-cocina-en-construcción
    any ideas?

    Thanks!!!

    Thread Starter txie

    (@txie)

    Oh… I see… Thanks for this!
    I made it work by adding the subcategories styles, thanks to you!

    Thread Starter txie

    (@txie)

    Yes, when I write everythimng manually it works, for example:

    <?php
        if (is_front_page() ) {
          $cat_title = "home";
        } elseif (is_page(array("archives"))) {
          $cat_title = "archive";
        } elseif (is_page() || is_search()) {
          $cat_title = "page";
        } elseif (is_category('1') || is_single())  {
          $cat_title = "cuadernos";
        } elseif (is_category('3'))  {
          $cat_title = "cocina";
        } elseif (is_category('4')) {
          $cat_title = "bienvenida";
        } elseif (is_category('5')) {
          $cat_title = "regalo";
        }
      ?>

    But I need it to be automatic.
    My website is: https://k-i-t.com.ar/

    You can see that the code works for pages and for the home:
    https://k-i-t.com.ar/
    https://k-i-t.com.ar/como-comprar-kit

    But not for categories:
    https://k-i-t.com.ar/categoria/cuadernos

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)