Doodlebee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Count the number of posts displayed on a pageAh – so you want to do something *with* that count then 🙂 Well, that’s pretty simple. It still uses the above code – but instead of echoing out the $count, then do what it is you need to do using $count as a flag.
<?php $count = 1; if (have_posts()) : while(have_posts()): the_post(); ?> layout of regular template file here <?php $count++; endwhile; endif; ?> <?php if ($count > '3') { ?> show the link and title here (because it's more than 3) <?php } ?>That *might* work. Untested – you might have to play with it a little.
Forum: Fixing WordPress
In reply to: Media ProblemsFirst of all, your .htaccess (and other files) should be set at 644 or 666. Folders should be 755. Leaving your .htaccess and other files/folders at “777” is an open invitation to get your site (and possibly your server) hacked.
What are your settings for the media? The default to set up the “uploads” folder is “wp-content/uploads” – but I’m confused. First, you say that wp-content/uplaods is at 777 permissions, but then you go on to say “uploads” doesn’t actually exist. So which is it? Is it there or not? (if not, have you created it?)
Forum: Fixing WordPress
In reply to: Count the number of posts displayed on a pageSo… you just want to count them? Like display the number?
<?php $count = 1; if (have_posts()) : while(have_posts()): the_post(); ?> <?php echo $count; ?> layout of template file here <?php $count++; endwhile; endif; ?>that should echo the count for each post on the page, starting with “1”.
Forum: Fixing WordPress
In reply to: I was hacked with hidden link injection – please helpThanks Schwooba – but I think whoomai’s right: (and maybe I am too) – if he’s had this problem before, then he probably didn’t clean it properly the first time. As she says – if the door is there, it’s still there unless he’s done something about it in the correct manner.
Forum: Themes and Templates
In reply to: Posts incorporating earlier onesyou’ve got three different queries, but they’re all named the same thing. They need to be named differently. or even better, use “showposts=3” and a single query.
Forum: Fixing WordPress
In reply to: previous_post_link on index.php?That’s because previous_post_link is meant only for the single.php template file. If you want to move back in the archives from the index page, you need to use the posts_nav_link or the next_posts_link/previous_posts_link. (note the use of the plural in “posts”).
Forum: Fixing WordPress
In reply to: How to pull a preview of my last 5 posts onto another site ?????you also need to not use the http path for “require”. You need the server path to the file. (http path won’t work). t3 is offering a good solution IF the sites are in the same domain name. I.e. if you’re trying to pull the posts into “popcop.co.uk/index.php”.
Using the server path is much better than using a relative path though. You can find your server path through your hosting control panel =- it generally tells you what it is there.
Forum: Plugins
In reply to: plugin activation crashed siteI think you’re in the wrong place.
BuddyPress is to be used with an installation of WordPress MU – it won’t work with a single version of plain ol’ WordPress (which is what you’ll find here).
BuddyPress, I believe, also has it’s own forum. So you need to ask this question either at the WordPress MU forums, or the BuddyPress forum.
Forum: Requests and Feedback
In reply to: Trouble with adding ad software>>to those that say it is impossible to add a plug-in to a free wordpress account.<<
Are you talking about a wordpress.COM account? Hosted over at wordpress.COM? if so, you’re in the wrong place. They have their won forum. This is wordpress.ORG – for people who have their own hosting, and their own installations of WordPress.
If you’re talking about a wordpress.com account, then yes this is true: You cannot download and install your own chosen plugin on a wordpress.com account. You can apply to have it allowed in the available plugins they offer – but you can’t download and install it yourself. The free wordpress blogs are on a WordPress MU installation – which means the owner of the site decides what plugins and themes are allowed ot be used by people who sign up for an account. They do not have access to put in their own stuff. If you want full control over your site and what you can or cannot do, then you need to get your own hosting and your own installation of WordPress.
Forum: Fixing WordPress
In reply to: I was hacked with hidden link injection – please helpAre your file/folder permissions set correctly? Have you changed your passwords? Have you contacted your host to see if there’s been a compromised spot on the server? Checked your logs to see where it’s coming from? Checked/cleaned your themes files and comments?
You also might want to read this: Hardening WordPress
Forum: Fixing WordPress
In reply to: Custom Display of Tag CloudNope – still haven’t worked this out yet – if I do ever figure it out, I’ll be posting the solution though 🙂
However, there’s already a built-in function to display tags for the post you’re on. If you only want the tags associated with a particular post to show, then use <?php the_tags(); ?>
Forum: Plugins
In reply to: Seeking Plugin Testers for Mal’s/WordPress IntegrationI’m still working on it (sorry for the long delay 🙂 ) I’ve had several ideas for it, and now there’s a competition that I’m trying to finish it for. At least, the first release. I have a feeling I’ll be doing more than one 🙂
Forum: Fixing WordPress
In reply to: Register sidebars for each Page with matching namesAwesome – thanks jcow 🙂
Forum: Fixing WordPress
In reply to: Getting rid of video/audio uploads in Media areaYou might try Role Scoper – although I don’t know if it’ll stop specific stuff form being uploaded. I know there *used* to be a plugin that prevented certain filenames form being uploaded – but I can’t remember what it was called (and it was for 2.0.x – so it was a long time ago) – but you might be able to search the plugins for such a thing.
Forum: Fixing WordPress
In reply to: Page Links not working…Nah – mine says that too, but it still runs PHP4 by default. I guess it’s just telling you php5 is available.
This has NOTHING to do with WordPress. It’s all about your host. The upgrade had nothing whatsoever to do with this, except for the fact that 2.8 is using PHP5 code – which honestly it’s about time, because PHP4 is way too old.