Thort
Forum Replies Created
-
Hi again wfasa!
It was the support team on my web-host at one.com who helped me find the out that it was the .htaccess file that caused my problem. I can’t find any error logs on the one.com web-host administration page. And I can’t find any information about error logs on the Wordfence Diagnostics page. The section at the bottom of the page talks about log files but it states: “No log files found”.
Now I have informed you about my problem. I hope it’s interesting for you to know. In some instances the option “Disable Code Execution for Uploads directory” on the Wordfence option page can cause problems when enabled. I will continue using Wordfence on my sites, and I want to thank you for the protection it provides for my sites.
- This reply was modified 8 years ago by Thort.
Hi wfasa!
Thanks for your reply! I appreciate you’re taking time to help me. I understand you have looked into my blog at https://thort.se/blog . But my problem is on my other blog at https://finbild.se/blog . On this blog I have several images in the /blog/wp-content/uploads/ folder. This blog does not has the Jetpack plugin installed.
When the .htaccess file generated by Wordfence was present in the /blog/wp-content/uploads/ folder my images didn’t show up on my blog. If I did a test and copied the direct web-address to the image in the address field in my browser I got this error message:
When I deleted the .htaccess file the error message disappeared and my images showed up correctly on my blog.
Forum: Fixing WordPress
In reply to: “Previous side” and “Next side” links doesn’t appear on all pagesHi again !
Now, I’ve found a solution. ??
In my sidebar I skipped the category list. Instead I put in a chronological list of all my posts. For this I use the plugin Recent Posts. It creates this tag for the template:
<?php mdv_recent_posts(); ?>
I’ve understood I can’t use neither
<?php posts_nav_link(); ?>
nor the pair<?php previous_post(); ?> <?php next_post(); ?>
together with<?php list_cats() ?>
.Now, the links “Next side” and “Previous side” appear on all my sites.
My blog: https://thort.se/photoblog
Forum: Fixing WordPress
In reply to: “Previous side” and “Next side” links doesn’t appear on all pagesHi again !
I’ve read in the WordPress manual and found the
<?php previous_post(); ?>
and<?php next_post(); ?>
tags.I’ve added them to my template.
Now, my coding looks like this:
<?php posts_nav_link(' — ', __('« Previous side'), __('Next side »')); ?>
<?php previous_post('%','« Previous side', 'no'); ?>
<?php next_post('%','Next side »', 'no'); ?>The latter code block added “Next” and “Previous” links on:
https://thort.se/photoblog/2006/05/09/grecian-windflower
But still, no links turn up on:
https://thort.se/photoblog/category/grecian-windflower
https://thort.se/photoblog/2006/05/09Why?
It’s interesting to realize I use both
<?php posts_nav_link(); ?>
and the pair<?php previous_post(); ?> <?php next_post(); ?>
after each other in my template. But on no sight I get double links. Either of them is used, never both.Now, how do I get links on:
https://thort.se/photoblog/category/grecian-windflower
https://thort.se/photoblog/2006/05/09I’m thankful if someone could give me some guidance.
Forum: Plugins
In reply to: Automatic slideshowRandom Image is up and working on my blog. You can see it at the bottom of the sidebar.
I’m very satisfied. Just what I wanted!
??
Forum: Plugins
In reply to: Automatic slideshowThanks samboll!
Random Image is interesting. It has the options I seek. Right now I’m trying to integrate the plugin with my theme. It’s a bit complicated. My theme is complex.
My photoblog: https://thort.se/photoblog
Forum: Fixing WordPress
In reply to: Deleted a comment by misstake. How do I put it back?Thanks HandySolo !
Your advice worked! ??
Sorry, my english isn’t so good. This is about a deleted post, not a comment. I mixed the two words up. But the principle must be the same.
Anyway. First I posted a new post the usual way. Then I went into my phpMyAdmin and changed the date of the post. Very simple.
Forum: Fixing WordPress
In reply to: Active bookmark in Firefox doesn’t workHi again !
I Just want to report how my problem was solved.
Some time ago I changed the titles of my posts. I changed the swedish letters “a” with a ring over, “a” with dots over and “o” with dots over. I changed them to “& a r i n g ;” “& a u m l ;” and “& o u m l ;”. My thought was foreign webbrowsers would show the unusual swedish letters wrongly.
I didn’t foresee the problem this would cause in Firefox concerning the live bookmark.
So, now I have undone the change I maid.
Forum: Fixing WordPress
In reply to: Active bookmark in Firefox doesn’t workThanks thunderlove!
I do appreciate your concern in my problem!
I edited my includes/default-filters.php as you suggest.
I added
add_filter('the_category_rss', 'ent2ncr', 8);
according to your instruction.Then I tried to reload my ‘live’ firefox bookmark, but it didn’t help. The bookmark don’t update.
One interesting thing. I opened up Opera 8.5, and here I could add an atom channel for my blog. So, bookmarking works in Opera but not in Firefox. (I use Firefox 1.5.0.1)
I have an english version of my blog. The address is: https://thort.se/photoblog
When watching this blog in Firefox it is possible to add an active bookmark which is working okey. Both of my blogs use the same Theme.
As I said, I appreciate your help, and if you have some more suggestions I would be thankful.
Thor
Forum: Fixing WordPress
In reply to: Varying background color in postsThanks billh!
I have insrerted the changed the sixth line as you suggest.
Still no alterning background color in posts.
Here is the present reading of index.php.
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php $postbg = 'darkentry'; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="<?php $postbg; ?>" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small><?php if ($postbg == 'darkentry') {
$postbg = 'lightentry';
} else {
$postbg = 'darkentry';
} ?><div class="<?php $postbg; ?>">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?>
</div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?>
</div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
–
About the stylesheet. I’m insecure what is right. Should my two new clases read:
.lightentry {
background-color: #ffffff;
}.darkentry {
background-color: #f2f2f2;
}or
#lightentry {
background-color: #ffffff;
}#darkentry {
background-color: #f2f2f2;
}I’m insecure about the . or # sign.
Here is the whole stylesheet, as it looks right now:
https://thort.se/storage/forum/wordpress/stylesheet_post_background_color_1.htm
And, once again, the address to the blog:
I’m thankful for your guidence. If you still have patience with me I should be thankful if you have some more ideas how to solve the problem.
Forum: Fixing WordPress
In reply to: Varying background color in postsThanks makemead!
I am out in deep water now. I know very little about php. I’m not capable of inserting your code in my index.php.
Here is the output right now of my index.php in my modified WordPress default theme. I have tried to follow billh’s instructions in his reply above:
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php $postbg = 'darkentry'; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<?php if ($postbg == 'darkentry') {
$postbg = 'lightentry';
} else {
$postbg = 'darkentry';
} ?><div class="<?php $postbg; ?>">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?>
</div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?>
</div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p><?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Is everything looking okey? Something wrong? Is my stylesheet okey? ( https://thort.se/testblog )I do not have alterning background color in the posts, which is what I want.
Forum: Fixing WordPress
In reply to: Varying background color in postsThank You Billh !
I do appreciate your detailed reply!
I’ve tried to follow your advice exactly. But I can’t get it to work.
You wrote: “You’ll need to add two classes (in this example the classes are darkentry and lightentry) to your CSS file.”
Here I am insecure. How shall these new stylesheet classes look like? I tried this:
.lightentry {
background-color: #ffffff;
}.darkentry {
background-color: #f2f2f2;
}But I’m not sure if it’s right.
I’ve installed a testblog at:
Here I have used the default WordPress theme and done changes in the index.php and style.css of the theme.
I would be grateful if you would like to look into the blog and try to see what I have done wrong.
Forum: Fixing WordPress
In reply to: Varying background color in postsThis forum has alterning background colors on the posts. White and grey.
This is what I also want on my blog.
How is it done?
Forum: Fixing WordPress
In reply to: Varying background color in postsIf I have two different content stylesheets with different background color.
Would it then possible to shift alternately between them?
Would it be possible to make php code that can decide which content stylesheet to use when posting a new post?
Forum: Fixing WordPress
In reply to: Date format problemThanks MichaelH !
I did a change in the “WordPress Default 1.5” theme. In index.php I changed,
<?php the_time('F jS, Y') ?>
to
<?php the_date(); ?> - <?php the_time(); ?>
Now my date settings in Options > General take effect.
Thanks for your guidance! ??