Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter rl55

    (@rl55)

    I tried reinstalling the plugin for the 3rd time in an attempt to isolate the issue. On my system, it seems to generate aforementioned errors only when I enable object caching.

    I am working on releasing a plugin to address exactly this issue. The plugin would check with the email server whether the email address really exists. If the email address is fake then the user wouldn’t be able to register.

    Feel free to suggest any additional features that you would like to see in this plugin. I intend to release it by end of this week.

    Hi Jamie,

    I concur with Webber and Turismo. Here’s the evidence that it takes it just over 5s – http://screencast.com/t/NGTOAXXVT

    rl55

    (@rl55)

    Hi Scott,

    I had similar need and here’s what worked for me –

    copy product-image.php file from woo commerce plugin folder to your theme/woocommerce/single-product/product-image.php

    replace the <div> part with the following code –

    <div class="images">
    
    	<?php
    
    		$attachment_ids = $product->get_gallery_attachment_ids();
     		isset ($placeholder_width)? : $placeholder_width=0;
    		isset ($placeholder_height)? : $placeholder_height=0;
    
    		if ( $attachment_ids ) {
    	  		$attachment_id = $attachment_ids[0];
    
    		if ( ! $placeholder_width )
    			$placeholder_width = $woocommerce->get_image_size( 'shop_catalog_image_width' );
    		if ( ! $placeholder_height )
    			$placeholder_height = $woocommerce->get_image_size( 'shop_catalog_image_height' );
    
    			$output = '<div class="imagewrapper">';
    
    //			$classes = array( 'imagewrapper' );
    			$classes = array();
    			$image_link = wp_get_attachment_url( $attachment_id );
    
    			if ( $image_link ) {
    
    			$image       = wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_thumbnail_size', 'shop_thumbnail' ) );
    			$image_class = esc_attr( implode( ' ', $classes ) );
    			$image_title = esc_attr( get_the_title( $attachment_id ) );
    
    			echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s"  rel="prettyPhoto[product-gallery]">%s</a>', $image_link, $image_title, $image ), $post->ID );
    
    			} else {
    
    				echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="Placeholder" />', woocommerce_placeholder_img_src() ), $post->ID );
    
    			}
    
    		}
    	?>
    
    	<?php do_action( 'woocommerce_product_thumbnails' ); ?>
    
    </div>

    hope this helps.

    I’m trying to find a forum that could integrate well with multisite so that each subsite has it’s own set of forums+moderator+users.

    Would SimplePress do this? I installed it on multisite but struggled to configure it to do the above.

    as mentioned earlier by others, I concur that bbPress seems to be the best option (from dev/ integration/ technical perspective), however, aesthetically and functionally it is much weaker product and, if possible, I would still go for SimplePress.

    Thread Starter rl55

    (@rl55)

    yes, I am already using this plugin but it does not help in creating pages or setting the reading options to ‘page’.

    I realised that I could have used the add_action (‘wpmu_new_blog’, $new_blog_settings) but I felt that it’s already being used by wpmu-new-blog-defaults plugin and chose to edit the cets_blog_defaults.php file. I added the following code around line 180 –

    // Create landing page
    		$postdata = array('post_parent' => 0,
    	   'post_status' => 'publish',
    	   'post_title'   => 'Welcome to this site',
    	   'post_name'  => 'home-page', /* the slug */
    	   'post_content' => 'Landing page is here...',
    	   'page_template' => 'landing-page.php',
    	   'post_type'   => 'page');
    	   $newid = wp_insert_post($postdata); 	   // get postid of the page created
    	   if ($newid && !is_wp_error($newid)) {
    	      add_meta($newid);
    	   }
    
    	   // set page as landing page
    	   if ( get_blog_option( $blog_id, 'show_on_front' )=='posts' ) { update_blog_option ($blog_id, 'show_on_front', 'page');}
    	   if ( get_blog_option( $blog_id, 'page_on_front' )==0 ) { update_blog_option ($blog_id, 'page_on_front', $newid);} //else { add_blog_option ($blog_id, 'page_on_front', $newid);}

    In addition, I create a new page template file (called landing-page.php) and saved it in the root. I am using genesis framework and used the article here to create the page template.

    Result is perfect. the default page is created and set at the time of customer registration.

    I have to now find a way to widgetise the landing page so the network admin can drop some widgets on the landing page of sub-domain sites. 🙂

    Thread Starter rl55

    (@rl55)

    Hi Ipstenu, thanks for your prompt response.

    my client requires the sub-domains to be setup at the time of registration process with a handful of preset pages. I noticed two fields in the wp_X_options (X = sub-domain blogid):
    show_on_front = can be page or post
    page_on_front = stores the id of the page to be displayed

    I’ll try to use these two to set the default page for the sub-domains. what are your thoughts…

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