Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • i am experiencing the same error ‘Fatal error: Class ‘ContentVipersVideoQuicktags’ not found in /mydomain.com/wp-content/plugins/autochimp/autochimp-plugins.php on line 247′

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    Thanks for your help, i have now gone back to using only wp jQuery and deactivated all plugins one by one; the only one that made any difference was Lazy Load; now on the page listing all galleries the ‘loading’ image doesn’t stay as before; apart from that the film strip still doesn’t show and the hover function on individual images in the gallery isn’t displaying correctly.

    I’ve been through the source code and no other jquery library is being uploaded. I’m running out of ideas.

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    @opajaap

    Great to see a plugin with such good support!

    As per your suggestion, i have ensured there is only one jquery library loaded; i have deregisterd the WP script and added the google one as such:

    function load_jquery_from_google() {
    
    	if (!is_admin()) {
    
    		// deregister WP jquery default script
    		wp_deregister_script('jquery');
    
    		// load googleapi jquery script through Content Delivery Network
    		wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js', false, '2.0.0', true);
    		// enque the script
    		wp_enqueue_script('jquery');
    
    		// load the required libraries which are dependent on jquery
    		wp_enqueue_script('fancybox', get_stylesheet_directory_uri() . '/js/fancybox/jquery.fancybox.pack.js', array('jquery'), '1.0', true);
    	}
    }
    add_action('init', 'load_jquery_from_google');

    furthermore, i have added $.noConflict(); above all my own jquery code and changed it from using $(… to jQuery( , all my own jQuery is working fine but unfortunately the problems i’m having with the gallery are still the same … in fact, nothing has changed at all!

    Have you any other suggestion? Alvast bedankt !

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    @nada Abou Dehn

    remember :selected is a jQuery expression to identify selected option groups and tickboxes, not a CSS selector.

    I’m not 100% sure which selected image you want to add a border to, if it is the one currently being displayed in the slideshow, this has an id of ‘theimg0-1’ and could be targeted trough #theimg0-1 {…} in your stylesheet.

    If however you wish to give the border to the image in the ‘filmstrip’ below the main image (which by your code appears to be the case) it becomes a bit more difficult; you cannot use the css :active selector as there is no link; i haven’t tried it as i am no jQuery expert but i would try something along these lines:

    Through jQuery
    1. Wrap each image inside div class thumbnail-frame with a link.
    2. Make sure this link doesn’t work like a link by using return false;

    In CSS
    4. Add a :active selector for the link we just created giving it the border you want.

    Hope this helps

    Ronald

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    Hi

    First of all, OpaJaap, thanks for pointing me in the right direction, will investigate.

    @nada Abou Dehn – yes, you can just add the element to your stylesheet with the :hover selector, alternativelly you could use jQuery to achieve the same result, i would also add box-sizing: border-box; ( incl its vendor prefixes ) to ensure the image size doesnt change when adding the border.

    Good luck

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    That is what i call great service, works perfectly; thank you so much !

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    i’m not known for my patience, the following code works like a charm:

    if( function_exists( 'print_thumbnail_slider_func' ) ) {
    
              echo '<div class="image_slider">';
              echo do_shortcode('[print_thumbnail_slider]');
              echo '</div>';
    
    } else {
    
              echo 'do whatever else ...';
    
    }

    Hi
    In my case the regeneration isn’t happening and im ending up with irregularly shaped images which are breaking my design, this even after changing the permissions to my upload folders to 777… if anyone finds a decent solution for this please post it.

    Thanks

    Thread Starter Ronnieinspain

    (@ronnieinspain)

    Couldnt leave it alone and finally figured it out; was giving new values to $output on every iteration of the loop. So easy.

    This code works:

    /*
     * function to show the last hotspots that were added
     * with posibility of changing the number displayed and the
     * lenght of the extract shown, in words.
     */
    function show_latest_hotspots( $atts ) {
    
    	// global $lenght;
    	global $post;
    	$content = "";
    
    	$data = extract( shortcode_atts( array( 'number' => 3, 'lenght' => 30, ), $atts ) );
    
    	$args = array(
    		'post_type' 	=> 'ait-dir-item',
    		'posts_per_page' => $number,
    		'orderby' 		=> 'date',
    		'order' 		=> 'DESC',
    		 );
    
    	$loop = new WP_Query( $args );
    
    	while ( $loop->have_posts() ) : $loop->the_post();
    
    		$url = get_permalink();
    		$title = get_the_title();
    		$myexcerpt = strip_tags( $post->post_content );
    
    		$excerptArr = str_word_count( $myexcerpt, 1);
    			if(count ( $excerptArr > $lenght )) {
    				$text = join( " ", array_slice( $excerptArr, 0, $lenght ) );
    				$text .= " <a href='$url'>Read More</a>";
    			} else {
    				$text = $myexcerpt;
    			}
    
    		$content .= "<div class=\"text\">";
    		$content .= "<div class=\"title\"><h3><a href='$url'>".$title."</a></h3></div>";
    		$content .= $myexcerpt."</div><br /><!-- eof div.text-->";
    
    	endwhile;
    
    	// Reset Post Data
    	wp_reset_postdata();
    
    	// echo $content;
    	return $content;
    
    }
    
    add_shortcode('show_latest_hotspots', 'show_latest_hotspots');

    @jason Kemp,

    Hi, yes this issue has been resolved so it can indeed be closed; thanks for your input!

    @draivika, this is exactly what i’m trying to achieve, on a custom post type (which i couldnt have chosen in settings) but im getting “Fatal error: Call to undefined function k_star_ratings()”; could this be because im working with a child theme perhaps? If someone can, please point me in the right direction; much appreciated!

    This is something i would like to know also… Please let me know if you have found a solution.
    Thanks

    Hi Hectoralvaez!
    Yes, something like that is what happened :/
    Thanks for the answer though

    To let everyone know the final solution was:

    is_single() || ( is_home() && ! is_page(‘home’) )

    is_single() as i wanted to display on single posts as well as on the blogging page but not any other static pages.

    The rest seems to be due to some confusion in WP/Suffusion in regards to which page is actually the homepage. Tried all settings of Widget Logic options with no result before trying this. Hope it helps someone else.

    I have the same problem, widget logic is working fine on all pages of a site i’m working on with the exception of the blog page, also tried the following:

    is_page ( 1092 ) || is_page ( blog) || is_page ( ‘blog’ )
    is_page ( array ( 1092, blog, ‘blog’ ))
    is_page_template ( ‘posts.php’ )

    currently pulling my hair out, the only way i can get any widget to show on this page is with the HTML Javascript Adder Widget and selecting ALL PAGES.

    Currently running suffusion and the blog page is set to Page of Posts, not that changing it to the WP default makes any difference…

Viewing 15 replies - 1 through 15 (of 16 total)