Forum Replies Created

Viewing 15 replies - 556 through 570 (of 3,008 total)
  • Well, yeah. If you left your files at 777, then most likely they went right for the wp-config.php files and now have access to your database. If you haven’t changed your WordPress password (as well as the password, and probably the username too – for the database) then they can just get in over and over again.

    All of your files should be set at 644 or 666, all folders should be 755. At this point you should take care of that, and then go into your hosting control panel (or whatever you use) and set a new database user and password. You’d have to reflect those changes in your wp-config.php file so your WordPress can have the new connection settings. You might also want to contact your host before you do anything and let them know – because if they *did* get into your database, it’s possible they could compromise the entire server. You should let the host know what’s going on, and let them see the activity the hacker has been doing so they can take appropriate action to prevent further loss (if any has occurred). They’ll also help you figure out how to secure your own site so you don’t get hacked again.

    You also might read this.

    If the last “codey” thing you did was 2 weeks ago when you were updating, and this “just suddenly happened” today while you were posting something, I’d say your host is to blame.

    If you were doing something other than posting (like messing with your .htaccess file) then I’d say that might be the issue. You might also check things out and see if you can FTP into your server – if you can’t, that is probably confirmation that something’s going on. (Alternatively, if you can, then rename your .htaccess file to “htaccessBAK and see if that fixes it)

    As has been mentioned several times here in the forums, using query_posts messes up your pagination because makes *you* define what you want done with your posts. If you want pagination, you have to define it. There’s a few solutions on how to fix it. (Kafkaesqui is the man.)

    Can you not just go and re-download the theme files?

    Sounds like you did the right thing (good for you, figuring that out all by yourself 🙂 ). For future reference, if you don’t have an .htaccess file on the server, you can upload a blank file named .htaccess and set the permissions to 766. Do your permalink setting and WordPress will auto-write the stuff for you in the file. Once that’s done BE SURE you change the permissions back to 644 for security purposes.

    As for “necessary” stuff – no. .htaccess is a nice little tool to use if you *want* to do things, but it’s not required. You can use .htaccess for all kinds of things, from rewriting permalinks, to preventing your images from getting hotlinked to banning people from doing referer spam (among other things). It’s all neat stuff, but not required stuff. You usually end up figuring out what it is you want to do in your .htaccess file when you get to a point where you want to do something specific – then find out you *can* with .htaccess 🙂

    If you want to do security stuff – especially for your WordPress blog – you might want to read this: Hardening WordPress

    Okay – well form what you’ve shown me, the only thing I can see that’s wrong is what Iv’e said before: all of your queries are named the same thing, which would definitely cause the “repeat” issue. But if you just replace ALL of them with the single query I posted above, it should be working fine. I’ve done it many, many times with no problems. So…I’m not sure what else to offer. Either I need to see the entire “home.php” file (use pastebin! don’t put it here!), or maybe someone else can come along and offer something else.

    Why do you need a plugin for this? All you have to do is edit your theme files to remove references to the date and time. It’s a lot easier, and a lot less server usage to just take it out of the theme altogether.

    Okay – huh? Sorry – but that’s worded really weird – I don’t quite understand what you’re saying.

    I’ll try and break this down for you – maybe that’ll help.

    $recent = new WP_Query(“cat=1&showposts=3”);
    This sets up your query. It pulls the most recent 3 posts from the category with the ID of 1.

    if($recent->have_posts());
    this says “If there are posts in category 1…” and begins the Loop.

    while($recent->have_posts()) : $recent->the_post();
    ..then while there are posts in category 1, then display them.

    if it’s showing the same post three times, then my only guess is that you have a double loop going on. Your theme isn’t set up like this is it:

    <?php if(have_posts()): while(have_posts()) : the_post(); ?>
    <?php $recent = new WP_Query("cat=1&showposts=3"); if($recent->have_posts()); ?>
    <div class="featured">
    <?php while($recent->have_posts()) : $recent->the_post();?>
    <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content('read the story &raquo;');?>
    <?php endwhile; ?>
    </div>
    <?php endif; ?>
    <?php endwhile; endif; ?>

    if so, that’s your problem.

    Can you clarify? Your content *is* centered on the page (meaning the outer container). Are you talking about removing the sidebar? you don’t have much in your sidebar, but that’s the only “dead” space I see.

    It’s not a problem. You have your sidebar set to pull in the most recent entries in your theme. If you don’t want the recent entries there, then remove them from your sidebar.php file (or whatever it’s named in your theme).

    Why don’t you use the Role Scoper or Role Manager plugin to create your own defined User Roles?

    Thread Starter Doodlebee

    (@doodlebee)

    Well, I’m coming back to update – I did test this out and it works great. *However* – if you delete a Page (or set it as “draft” or “pending”) the sidebars shift to compensate. So it’s not a *true* association with the Page you’re on. So for the purposes of the original question, this is resolved – but a new problem was found.

    Now I’m working to try and figure out how to pull the database info out relative to the page name (make the name and slug match to pull the right info) *or* create some kind of function that also deletes the associated widget stuff in the database when a Page is deleted.

    You might use this function to customize your output.

    There’s two types of paths for your files. The http:// path is the one that most browsers use to display your site. The *server* path is similar to what you use when you save a file to your hard drive – which is basically what a server is: a hard drive to store your files. You yourself can see them by knowing the path to the file (aka, the “server path”), but you can let the world see them by putting it into a http:// path.

    Usually, your server path will look something like /usr/username/public_html/ or html/username/www/ or something like that. You can see it when you log into your hosting control panel (if you use Cpanel, then it’ll be in the grouping at the bottom left of your screen), and sometimes when you FTP into your server, it’ll tell you the server path that way.

    yeah – that second example is messed up.

    All you have to do is replace your “showposts” with the number of posts you want to show.

    <?php $recent = new WP_Query("cat=1&showposts=3"); if($recent->have_posts()); ?>
    <div class="featured">
    <?php while($recent->have_posts()) : $recent->the_post();?>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <?php the_content('read the story &raquo;');?>
    <?php endwhile; ?>
    </div>
    <?php endif; ?>
Viewing 15 replies - 556 through 570 (of 3,008 total)