Kathy_P
Forum Replies Created
-
Forum: Plugins
In reply to: wp stats partially frozenWell, the actual stats are working now for me, but the graph has been replaced by an image of a semi-submerged rowboat. I would sure like to know what’s going on. I had to login to wordpress.com before the stats would work.
Forum: Plugins
In reply to: wp stats partially frozenI am having the same problem. In addition, the graph on top times out and doesn’t load. I am assuming it is a problem on their end, but I can’t figure out anyplace to get more information. I went through three pages of hits using the search function here, and didn’t find anything helpful, though in the past couple of weeks people have been reporting trouble getting recognized by the system, despite being logged in and having the correct API key.
Forum: Fixing WordPress
In reply to: Conditional php code not workingThanks for replying, gfindlay, but that didn’t work.
This code works at the beginning of the sidebar:<?php if (is_page('garden-blog-directory')) {; ?> <?php adsense_deluxe_ads('blog_directory_sidebar'); ?> <?php } else { ; ?> <?php adsense_deluxe_ads('Sidebar'); ?> <?php } ?>
So I would think I’m just ending it incorrectly when I don’t need the “else.” According to the Adsense Deluxe plugin, “If you want to use the ads defined in Adsense-Deluxe within your WordPress templates, place the following code where you want the ads to appear:
<?php adsense_deluxe_ads('Ad_Name'); ?>
” I’ve tried comparing my problem code with code in my templates that does work, and I just can’t see what I’m doing wrong. I haven’t gone over Google’s limit for number of ads on a page, so I don’t think that’s it either. Still scratching my head.Forum: Fixing WordPress
In reply to: author profile link / multi-userI believe this post answers your last question.
Forum: Plugins
In reply to: Akismet and UTW both having troubleIt is now working again just as inexplicably as it stopped working. The only thing I have done is upload more files to the plugin directory, without activating anything new. I am not at all certain that doing so solved the problem, but offer it up “just in case.”
Forum: Fixing WordPress
In reply to: Avoiding nested php codeThank you filosofo for pointing out the echo problem. Mathias, the c2c line broke in two and I don’t know why. If there are other problems besides the echo syntax let it be a warning for those who might read this later. I wouldn’t know how to fix it if I’m not told. I never claimed to even be a newb when it comes to php. What little I know I’ve gleaned from the Codex, from poring over templates coded by my betters and trying to intelligently use pieces from them, and, just recently, from the php online manual.
I think it’s great that so many people are willing to help explain things to those of us who are learning by trial and error. Thanks to everyone who responded to this thread.
Forum: Fixing WordPress
In reply to: Avoiding nested php codeOkay, I just went to try the above code in my sidebar. But just for kicks I tried it the first way, as in my original post, again. And just as TechGnome said, it did work this time. I don’t know if my browser cache just didn’t refresh or if I thought I saved my changes but actually hadn’t, or if it was some other too-late-at-night goof. But it does work now.
As for the second method of coding it, that didn’t work. I got this error: “Parse error: parse error, unexpected ‘<‘, expecting ‘,’ or ‘;’ in /home/path-to-theme/sidebar.php on line 21” Line 21 is the line that says
echo <h2>Recent Posts</h2>;
Since the first method is working, I now consider this a learning exercise only. If anyone wants to troubleshoot the second method for the general education of me and anyone else who comes along, I promise to take notes and learn. But I no longer need to know the second method to accomplish my goal, so I will mark this resolved after a day or two.
Forum: Fixing WordPress
In reply to: Avoiding nested php codeTo answer TechGnome:
I first used this “trick” on my custom 404 page, where I wrapped it around my Google ad script, so it would run on every page except the 404, like this:
<?php if (!is_404()) { ?>
<ul>Google script</ul>
<?php } ?>That worked. When I tried it on the customizable post listings plugin code (as above in first post), it didn’t work. In other words, despite the code it showed the Recently Posted section of my sidebar on my home (index) page.
Looking at the code, I saw that php code pulling in the recent posts was sandwiched between a php line that had a curly-brace and another php line that closed the curly brace. And I surmised, incorrectly or not, that I was nesting the php and it didn’t like that.
Now, using the link that gregh provided (and I did look in the manual, but I really didn’t know where to look), let’s try again:
<?php if (!is_home()) :
echo <h2>Recent Posts</h2>;
echo <ul>;
c2c_get_recent_posts(5, "<li>%post_URL%<br />%post_excerpt_short%</li>");
echo </ul>;
endif;
?>
gregh, does that look right?
Forum: Fixing WordPress
In reply to: Avoiding nested php codeI know so little php that I had to look up the syntax for echo before I could try it out. Is this what you meant:
<?php if (!is_home()) {
echo <h2>Recent Posts</h2>
echo
<ul>
c2c_get_recent_posts(5, "
<li>%post_URL%%post_excerpt_short%</li>
");
echo </ul>
} ?>'
If someone could check my syntax to let me know if I’m using echo correctly, and in general, if it’s coded right, I’d feel better about sticking it in my sidebar. Thanks.
Update: I am having trouble getting the code to show up properly because even though I encased the whole thing in backticks it interpreted the ul. And now there are breaks in there that I didn’t put in. If you can’t figure out what I meant, I will try again later. have to go to work now.
Forum: Fixing WordPress
In reply to: Using “not” with conditional tagsSo, you are saying that using an exclamation point means “not” in php? That was what I needed to know. And I am not familiar with Adsense deluxe–is that a plugin? I’ve just been pasting in the code that Google gives me.
Forum: Fixing WordPress
In reply to: LinkThis bookmarklet suddenly stopped workingI just answered my own question. It turns out the title of the webpage I was trying to add to the Links Manager had a trademark symbol in its title. I guess the bookmarklet didn’t like that!
Forum: Fixing WordPress
In reply to: A way to display users on a page?This thread describes one way of doing what you want to.
Forum: Plugins
In reply to: How to enable template awareness in Get Author Profile plugin?I had to look three or four times before I saw the difference between your two replies. As I suspected, I had misunderstood what it meant to be “template aware.” I thought that meant I did not have to run
<?php get_author_profile(); ?>
first. I see now that I was wrong. Hopefully my confusion will help someone else. The way you have it in your second post, calling the information withget_author_profile
and displaying it withauthor_profile('nickname')
worked perfectly. Kafkaesqui, I really appreciate the time you have taken on several threads to help me and others understand how to make a full-featured author page.Forum: Plugins
In reply to: Get_author_profile plugin in a loop?Thank you once again, Kafkaesqui.
Forum: Plugins
In reply to: Trouble with posts_link in Get Author Profile PluginThanks! I thought it was something tiny, but I just couldn’t see it. It works just right now.