Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: Plugin Form Submit

    As an aside, you know you can do this, right? :

    $new_content .= '<div class="form">
        <form method="POST" id="commentform" >
        <div class="cright"><div class="karea">
        etc etc

    You don’t need to put $new_content .= on every newline.

    Thread Starter jakepaint

    (@jakepaint)

    Okay Novellus, a lot of the points you make are valid. But it’s not very helpful to know what You hate, is it now? Also, isn’t it kind of an unspoken rule to say something you do like along with what you don’t? That aside, I disagree with “most of us now have huge monitors”. That’s only true for web people like us, but believe it or not, there is a huge group of non-web people out there using 800×600, IE 5.5, windows 98, etc. You can’t just dismiss them because they don’t know as much/ are less experienced! But you are right, I could’ve done a better job at making that site look better on a larger screen.

    Also: I tried to make my permalinks /%year%/$postname%/ but for some reason, wp just ignores the %year%, I’ve no idea why. Anyone have any ideas?

    I like the strong header and footer. Perhaps a little too big? Maybe, maybe not. I would suggest labeling the search box though, it took a bit to figure it out… nice work

    Thread Starter jakepaint

    (@jakepaint)

    I guess that was kind of over my head. Here’s what I’ve got:

    <?php
    $how_many=2; //How many posts do you want to show
    require_once("blog/wp-config.php"); // Change this for your path to wp-config.php file ?>
    <ul id="whats-new">
    <?
    $news=$wpdb->get_results("SELECT
    ID,post_title FROM $wpdb->posts
    WHERE
    post_status= \"publish\" ORDER BY 'ID' DESC LIMIT ".$how_many);
    foreach($news as $np){
    printf ("
    <li><a>%s</a></li>
    ", $np->ID,$np->post_title);
    }?>

    Where do I add in the the_excerpt?

    Thread Starter jakepaint

    (@jakepaint)

    Perfect. The mini-loop was the ticket. This solution will create a list with the most recent posts’ titles. Could you tell me how to also add the first line or two of the actual post? I tried to do it myself in the php code, but I couldn’t figure out how to make it work.

    ******code*****
    My solution was to simply comment out all the lines listed above in wp-settings.php, like this:

    //if ( !extension_loaded(‘mysql’) ) {
    // die( ‘Your PHP installation appears to be missing //the MySQL which is required for WordPress.’ );
    //}
    *******/code********

    I’m running a windows server on a godaddy account & after getting the now-standard “mysql not found…” page, I tried the commenting advice above. It worked great and I’m on my way. I didn’t even have to re-upload the WP files. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)