WendyWeb
Forum Replies Created
-
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!
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…
Forum: Themes and Templates
In reply to: Questions about Magazine – Basic themeSorry, that should be the “functions.php” file for the above solution, not the header.php!
Forum: Themes and Templates
In reply to: Questions about Magazine – Basic themeOn 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;
}*/Forum: Plugins
In reply to: D13slideshow: Show Excerpt Instead of File DetailsI’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.
Forum: Themes and Templates
In reply to: Atahualpa – Adding Custom Page Template?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() && $bfa_ata['leftcol_on']['homepage']) OR ( function_exists('is_front_page') ? is_front_page() AND $bfa_ata['leftcol_on']['frontpage'] : '') OR ( is_single() && $bfa_ata['leftcol_on']['single']) OR ( is_date() AND $bfa_ata['leftcol_on']['date']) OR ( is_tag() && $bfa_ata['leftcol_on']['tag']) OR ( is_search() AND $bfa_ata['leftcol_on']['search']) OR ( is_author() && $bfa_ata['leftcol_on']['author']) OR ( is_404() AND $bfa_ata['leftcol_on']['404']) OR ( is_attachment() && $bfa_ata['leftcol_on']['attachment']) ) { $cols++; $left_col = "on"; } if ( (is_home() && $bfa_ata['rightcol_on']['homepage']) OR ( function_exists('is_front_page') ? is_front_page() AND $bfa_ata['rightcol_on']['frontpage'] : '') OR ( is_single() && $bfa_ata['rightcol_on']['single']) OR ( is_date() AND $bfa_ata['rightcol_on']['date']) OR ( is_tag() && $bfa_ata['rightcol_on']['tag']) OR ( is_search() AND $bfa_ata['rightcol_on']['search']) OR ( is_author() && $bfa_ata['rightcol_on']['author']) OR ( is_404() AND $bfa_ata['rightcol_on']['404']) OR ( is_attachment() && $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 »</p>'); ?> </div> </div> <?php endwhile; endif; ?> <?php query_posts('showposts=5 & 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(); ?>
Forum: Themes and Templates
In reply to: Atahualpa: Put Thumbnail Image in Category PagesIn 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.
Forum: Themes and Templates
In reply to: Atahuelpa – Make a Customized Page Template?I spelled Atahualpa wrong, and am ending this query because it has been reposted with the correct spelling of the theme.
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageAnd 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.
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageYes, that’s right, it’s in the functions.php file.
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageHmm, 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.
Forum: Fixing WordPress
In reply to: How to Create Link that Searches for Specific TermThanks! 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!
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageIt’s in that directory, but still doesn’t work!
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageI’ve also checked the file permissions on the folders and the functions.php file above and all should be writeable.
Forum: Themes and Templates
In reply to: Magazine Basic – Can’t Upload Header ImageOops, 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….