Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter WendyWeb

    (@wendyweb)

    Thanks Ulgaming, I’ll try this and get back to you. Can’t do it for a few days… to busy! But will definitely report here when it is done. Really appreciate you taking the time to respond!

    Thread Starter WendyWeb

    (@wendyweb)

    Thank you ulgaming. Do you mean that it should look like this?

    # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /news/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /news/index.php [L]
    </IfModule>

    Because the instructions indicate that the code should “surround” the existing code. That is what confused me. I thought perhaps part of the SuperCache code when in front of the existing code, and part came at the end…

    Sorry, that should be the “functions.php” file for the above solution, not the header.php!

    On the header, I used the following suggestion from another post — it’s not an elegant one — but it worked:

    Open the “header.php” file from magazine basic. Then comment out the following if else phrase. (It is shown here with the commenting out slashes already inserted.

    /* if (get_option(‘uwc_logo_header’) == “yes”) {
    list($w, $h) = getimagesize(get_option(‘uwc_logo’));
    $height = $h/2+20;
    } else {
    $height= 35;
    }*/

    Thread Starter WendyWeb

    (@wendyweb)

    I’m giving this a little bump to see if anyone can help me out. I can’t seem to find any slideshows that I can make work. This one comes closest… but I’ve got caption id data showing instead of the photo capitons.

    I’m using the Atahuelpa theme if that has any relevance.

    Thread Starter WendyWeb

    (@wendyweb)

    With a little persistence and a lot of experimentation I think I’ve found a solution. The code below borrows all the settings for header, sidebars etc, and displays your page content followed by a search form, and then a listing of recent items from your selection of categories…
    There are just two variables you need to fill in – the name of your template, the number of posts to display, and the numbers of the categories from which the posts should be drawn.

    <?php
    /*
    Template Name: PUT NAME OF YOUR PAGE TEMPLATE HERE
    */
    ?>
    <?php
    global $options;
    foreach ($options as $value) {
    	if (get_option( $value['id'] ) === FALSE) {
    		$$value['id'] = $value['std'];
    	} else {
    		$$value['id'] = get_option( $value['id'] );
    	}
    	$short_func_name = str_replace("bfa_ata_", "", $value['id']);
    	$bfa_ata[$short_func_name] = $$value['id'];
    }
    if ( is_page() ) { global $wp_query; $current_page_id = $wp_query->get_queried_object_id(); }
    //figure out sidebars
    global $cols;
    global $left_col;
    global $right_col;
    $cols = 1;
    if ( is_page() ) {
    $current_page_id = $wp_query->get_queried_object_id();
    	if ($bfa_ata['left_col_pages_exclude'] != "") {
    	$pages_exlude_left = explode(",", str_replace(" ", "", $bfa_ata['left_col_pages_exclude']));
    		if ( $bfa_ata['leftcol_on']['page'] AND !in_array($current_page_id, $pages_exlude_left) ) {
    		$cols++; $left_col = "on"; }
    	} else {
    		if ( $bfa_ata['leftcol_on']['page'] ) {
    		$cols++; $left_col = "on"; }
    	}
    	if ($bfa_ata['right_col_pages_exclude'] != "") {
    	$pages_exlude_right = explode(",", str_replace(" ", "", $bfa_ata['right_col_pages_exclude']));
    		if ( $bfa_ata['rightcol_on']['page'] AND !in_array($current_page_id, $pages_exlude_right) ) {
    		$cols++; $right_col = "on"; }
    	} else {
    		if ( $bfa_ata['rightcol_on']['page'] ) {
    		$cols++; $right_col = "on"; }
    	}
    } elseif ( is_category() ) {
    $current_cat_id = get_query_var('cat');
    	if ($bfa_ata['left_col_cats_exclude'] != "") {
    	$cats_exlude_left = explode(",", str_replace(" ", "", $bfa_ata['left_col_cats_exclude']));
    		if ( $bfa_ata['leftcol_on']['category'] AND !in_array($current_cat_id, $cats_exlude_left) ) {
    		$cols++; $left_col = "on"; }
    	} else {
    		if ( $bfa_ata['leftcol_on']['category'] ) {
    		$cols++; $left_col = "on"; }
    	}
    	if ($bfa_ata['right_col_cats_exclude'] != "") {
    	$cats_exlude_right = explode(",", str_replace(" ", "", $bfa_ata['right_col_cats_exclude']));
    		if ( $bfa_ata['rightcol_on']['category'] AND !in_array($current_cat_id, $cats_exlude_right) ) {
    		$cols++; $right_col = "on"; }
    	} else {
    		if ( $bfa_ata['rightcol_on']['category'] ) {
    		$cols++; $right_col = "on"; }
    	}
    } else {
    if ( (is_home() &amp;&amp; $bfa_ata['leftcol_on']['homepage']) OR
    ( function_exists('is_front_page') ? is_front_page() AND $bfa_ata['leftcol_on']['frontpage'] : '') OR
    ( is_single() &amp;&amp; $bfa_ata['leftcol_on']['single']) OR ( is_date() AND $bfa_ata['leftcol_on']['date']) OR
    ( is_tag() &amp;&amp; $bfa_ata['leftcol_on']['tag']) OR ( is_search() AND $bfa_ata['leftcol_on']['search']) OR
    ( is_author() &amp;&amp; $bfa_ata['leftcol_on']['author']) OR ( is_404() AND $bfa_ata['leftcol_on']['404']) OR
    ( is_attachment() &amp;&amp; $bfa_ata['leftcol_on']['attachment']) ) {
    	$cols++; $left_col = "on";
    	}
    if ( (is_home() &amp;&amp; $bfa_ata['rightcol_on']['homepage']) OR
    ( function_exists('is_front_page') ? is_front_page() AND $bfa_ata['rightcol_on']['frontpage'] : '') OR
    ( is_single() &amp;&amp; $bfa_ata['rightcol_on']['single']) OR ( is_date() AND $bfa_ata['rightcol_on']['date']) OR
    ( is_tag() &amp;&amp; $bfa_ata['rightcol_on']['tag']) OR ( is_search() AND $bfa_ata['rightcol_on']['search']) OR
    ( is_author() &amp;&amp; $bfa_ata['rightcol_on']['author']) OR ( is_404() AND $bfa_ata['rightcol_on']['404']) OR
    ( is_attachment() &amp;&amp; $bfa_ata['rightcol_on']['attachment']) ) {
    	$cols++; $right_col = "on";
    	}
    }
    ?>
    <?php get_header(); ?>
    
     <?php if (have_posts()) : while (have_posts()) : the_post();?>
     <div class="post">
      <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
      <div class="entrytext">
       <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
      </div>
     </div>
     <?php endwhile; endif; ?>
    
    <?php query_posts('showposts=5 &amp; cat=1,2,3,4,5'); ?>
    /*-- NOTE: TELL WORDPRESS HOW MANY POSTS TO SHOW, AND USE THE NUMBERS TO SPECIFY THE CATEORIES YOU WANT TO DISPLAY IN THE LINE ABOVE!*/
    <div style="color=#000099; font-size:25px; font-family: Georgia, Times, serif;
    	font-weight: bold; margin-top:20px">Latest News!</div><br />
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div style="color=#4557A0"><a href="<?php the_permalink() ?>"
          rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    <?php the_title(); ?></a></div>
    <div style="margin-left:25px; margin-right:20px"><?php the_excerpt(); ?></div><br clear="all">
    <?php endwhile; ?>
    <?php endif; ?>
    
    <?php get_footer(); ?>
    Thread Starter WendyWeb

    (@wendyweb)

    In the end I found a plugin which provided a nice solution for this – Thumbnail for Excerpts. In addition, this plug in is allowing me to deliver thumbnails in my RSS feeds as well. Wanted to just post this solution here in case anyone else is looking.

    Thread Starter WendyWeb

    (@wendyweb)

    I spelled Atahualpa wrong, and am ending this query because it has been reposted with the correct spelling of the theme.

    Thread Starter WendyWeb

    (@wendyweb)

    And just a note, as an experiment, I did try renaming the file logo.jpg and uploading it, but that did not work. Only commenting out the script above worked.

    Thread Starter WendyWeb

    (@wendyweb)

    Yes, that’s right, it’s in the functions.php file.

    Thread Starter WendyWeb

    (@wendyweb)

    Hmm, that sounds like it could have worked, but I’ve already used another solution suggested by the theme’s designer – I have commented out the following line in the header.php.

    /* if (get_option(‘uwc_logo_header’) == “yes”) {
    list($w, $h) = getimagesize(get_option(‘uwc_logo’));
    $height = $h/2+20;
    } else {
    $height= 35;
    }*/

    This also worked and now my header – which is not named logo — is inserted in the banner space.

    Thread Starter WendyWeb

    (@wendyweb)

    Thanks! I’m feeling really “Duh!” right now. I also tried just doing a simple search and copying the link generated on the page and that works as well. I’ve never had a site with an integrated search before… used picosearch in the past!

    Thread Starter WendyWeb

    (@wendyweb)

    It’s in that directory, but still doesn’t work!

    Thread Starter WendyWeb

    (@wendyweb)

    I’ve also checked the file permissions on the folders and the functions.php file above and all should be writeable.

    Thread Starter WendyWeb

    (@wendyweb)

    Oops, that was really silly of me, I forgot that I had named the graphic “testBack”… sorry,

    So I’ve just looked in uploads under the Magazine Theme, and also the general Uploads for the site, and it is not in either directory. (Normally where is it supposed to go?)

    Here’s what happens when I get this message… the image does appear in the topper, but it appears with the java script above written over it. So then I deactivate the choice of using a graphic, and it disappear….

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