• Are there any working options other than the WPMU Global Search (which apparently doesn’t work with 3.0 and doesn’t seem to be supported by the plugin author any more) or the one from WPDEV (um, I don’t have $79 to spend for a 1 month membership)?

    I really REALLY need this feature, and fast. I can’t possibly be the only one?

    ๐Ÿ™

Viewing 15 replies - 16 through 30 (of 44 total)
  • OK, I got confused. Where exactly would I add the <?php switch_to_blog(1); ?> and <?php restore_current_blog(); ?> tags? Like, in what file? Where I registered the widget areas in functions.php, or in the template files where the widgetized areas are being called?

    in the template files where the widgetized areas are being called. Usually sidebar.php.

    Also, how would I pull a custom menu from blog 1 into a widgetized area on blog 12 (my tags blog)? When I drag a custom menu widget into a widgetized area, it tells me that I have no custom menus and that I need to create one.

    Do the same switch around the menu area in the theme files.

    (I haven’t tested this.)

    Thread Starter justbishop

    (@justbishop)

    Ok, here’s what I have in my footer.php file for the theme my search blog is using, but it doesn’t seem to be pulling anything. HERE is what the footer is supposed to look like, and HERE is what it looks like with the following code (I’m needing to pull the “Cloth Underground” and “Shop Owner Resources” custom menus from the main site):

    <table border="0" width="100%" cellpadding="10px">
    	<tr valign="top">
    		<td style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px;" width="33%" valign="top">
    	    <?php switch_to_blog(1); ?>
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Left") ) : ?>
    
    <?php endif; ?>
    <?php restore_current_blog(); ?>
    		</td>
    
    		<td style="border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" width="33%" valign="top">
    		<?php switch_to_blog(1); ?>
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Center") ) : ?>
    		<?php restore_current_blog(); ?>
    		<?php endif; ?>
    <?php restore_current_blog(); ?>
    		</td>
    
    		<td width="33%" valign="top">
    		<div class="copyright">ยฉ Copyright <?php echo date('Y'), ' '; bloginfo('name'); ?>. All rights reserved.<br />
    
    	    	<a href="http://wordpress.org">WordPress</a> <b>ยท</b> <a href="http://buddypress.org">BuddyPress</a></div>
    		</td>
    	</tr>
    	<tr colspan="3">
    	<td>
    
    	</td>
    	</tr>
    </table>

    And I put this at the top of my index.php (for the child theme that the seach blog is using, of course), but it’s not doing anything. I also tried it at the top of archive.php, but no luck there either.

    <div class="featured">
    					<?php switch_to_blog(1); ?>
    					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Featured") ) : ?>
    					<?php endif; ?>
    					<?php restore_current_blog(); ?>
    					</div>
    Thread Starter justbishop

    (@justbishop)

    GAH! Disregard all i’ve said since you guys gave advice last. I didn’t have the correct child theme activated >.<;;

    (sweet site ๐Ÿ˜€ )

    Thread Starter justbishop

    (@justbishop)

    Heehee, thanks! CU is more geared toward competing with Hyena Cart, but we’re out to tempt Etsy-ers as well (hint hint!)

    Thread Starter justbishop

    (@justbishop)

    One more! Any idea how I can get my recent post titles (“New on The Street”) to truncate like they do on my main site?

    HERE is how I truncated them on the main site. I’m not sure how to replicate it into the following, which I used to hardcode the “New on The Street” stuff onto the search blog’s sidebar.php, because this doesn’t use anything like get_the_title(). I tried replacing post_title with trim_title, but that just blanked the area out:

    <ul>
      <li>
      <div id="recent-posts-5" class="widget widget_recent_entries">
        <h3 class="widgettitle">New on The Street</h3>
        <ul>
        <?php switch_to_blog(1); ?>
        <?php
          $number_recents_posts = 5;
          $recent_posts = wp_get_recent_posts( $number_recents_posts );
          foreach($recent_posts as $post){
            echo '<li><a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >' .   $post["post_title"].'</a> </li> ';
          } ?>
          <?php restore_current_blog(); ?>
        </ul>
        </div>
      </li>
    </ul>
    Thread Starter justbishop

    (@justbishop)

    Aaaand another ๐Ÿ˜›

    Can the search blog not pull in post thumbnails? I have this code, and it’s just not working:

    <?php $image1=the_post_thumbnail(); ?>
    						<?php if ( $image1 ) : ?>
    						<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?>"><img src="<?php echo $image1; ?>" width="50px"</img></a>
    						<?php else : ?>
    						<?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    						<?php endif; ?>

    Also, is there any way to pull the blog name into the results?

    If you have your own server or vps I would look into Sphinx Search. It is vastly superior to any MySql based fulltext search. It can be configured so that domain ids are attributes which means you can then have global or search or filter by domain id.

    To give you an idea of how scalable it is Craigs List uses it for its millions of custom searches per day.

    One more! Any idea how I can get my recent post titles (“New on The Street”) to truncate like they do on my main site?

    use the_excerpt in the theme’s index.php file instead of the_content.

    Can the search blog not pull in post thumbnails?

    nope. not yet.

    CodePoet

    (@design_dolphin)

    Can the search blog not pull in post thumbnails?

    nope. not yet.

    @andrea_r, @justbishop

    I’m using the Arras theme, and it uses something called featured images. Which are passed along to a ‘search blog’ using the Sitewide Tags Pages plugin. Take a look at that as well, maybe it can help in figuring this part out.

    … because that theme uses custom fields, which SWT will pull. but not the built in thumbnails. it has to do with where in the processing the internal thumbnail code is fired up.

    Thread Starter justbishop

    (@justbishop)

    @honewatson: thanks, but I think that’s more than I want to get into right now! I think I’m pretty happy with the sitewide tags setup ๐Ÿ™‚

    @andrea_r: which theme should I use the_excerpt in? The one on my main blog (where the titles I want truncated are being pulled from? Just to be clear, I’m talking about the post titles under “New on The Street” in the sidebar of my search site.

    And that sucks about the post thumbnails. I guess I’ll have to instruct shop owners to use a custom field instead (because it’s pretty important that a photo of the item for sale in their post is shown on the search blog) ๐Ÿ™

    @andrea_r: which theme should I use the_excerpt in? The one on my main blog (where the titles I want truncated are being pulled from? Just to be clear, I’m talking about the post titles under “New on The Street” in the sidebar of my search site.

    ah, I thought you meant on the search blog in the content area.

    Thread Starter justbishop

    (@justbishop)

    LOL, yeah, it seemed like there was some miscommunication there.

    And, would something like this work to at least pull ANY photo from the post onto the searchblog results? As it is now, the post author’s avatar displays, which really kind of defeats the purpose of a search blog for my site!

    http://wordpress.org/extend/plugins/auto-post-thumbnail/

Viewing 15 replies - 16 through 30 (of 44 total)
  • The topic ‘Global Search?’ is closed to new replies.