Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter SharkBait

    (@sharkbait)

    That seemed to work. Thanks

    Thread Starter SharkBait

    (@sharkbait)

    Alright I had to mickeymouse it but I figured it out

    $pages = explode("/", $_SERVER['REQUEST_URI']);
    $count = count($pages)-1;
    if($pages[$count] < 2)) {
       // Show modified posts
    } else {
      // Show the full posts in /page/2, page/3 etc
    }
    Thread Starter SharkBait

    (@sharkbait)

    So can this not be done properly?

    I can not seem to check if the visiting page the person is one the main page or page 1.

    On the front page of the site I am wanting to create it so it shows most recent post on the top, then splits into two columns and shows excerpts of the next 4 posts.

    If they click on the Previous Page or Next Page they see the full posts (3 per page)

    so pseudo:

    if(page == 1 || page == front page) {
      // Display modified loop
    } else {
      // Display regular wordpress loop
    }

    Would I just check to see if is_page() less than 2? Or does this not clear enough in what I am looking to do?

    Thanks

    Thread Starter SharkBait

    (@sharkbait)

    If my host doesn’t allow it can it be done via .htaccess file or withing the scripts? Or would I have to split the file up into small chunks?

    Thought the file is only 1.38MB So i should be good to go!

    Thread Starter SharkBait

    (@sharkbait)

    Oh a quick question: It says that the max file size is 2mb when importing. Is this read by the php.ini file? if so then it can be changed correct?

    Thread Starter SharkBait

    (@sharkbait)

    Ok that makes sense. I added the category in properly and also got rid of the white space I had around the <![CDATA]]> tags (they had line feeds in the script) and now it works nicely and the previous formatting doesn’t break the theme.

    I appreciate your help! I’ll play with it a bit more to make sure it works (i have like 280 rows to import) and then I will see if I can find a theme I like and perhaps I will make the switch to WordPress permanently!

    Thread Starter SharkBait

    (@sharkbait)

    I’ve uploaded the script that will output what the XMl looks like: http://www.tyleringram.com/generateXML.php

    Thread Starter SharkBait

    (@sharkbait)

    I thought that might be the issue so i used strip_tags() to remove all the HTML etc from the post and the body of the post doesn’t get uploaded but the title/comments still do.

    Thread Starter SharkBait

    (@sharkbait)

    Ok i created a script where it sets up the posts and comments and categories to the same format that the exported XML file is in.

    I find the following issues when I go to import the file:

    1. Categories are not uploaded, but then I can’t delete the uncategorized or Blogroll categories thinking that this might be the cause.
    2. When I imported 3 posts and comments. The first post was imported and looked ok in Firefox, but the default theme was buggered up too bad in IE.
    3. All the comments were posted properly under the title of the post they were to be under.
    4. After the first post, the body of the 2 other posts I imported, were blank.

    Now my blog has custom styles like <div align="center"><img src="meh.jpg"></div> but I am thinking this is breaking the import on the XML though I am not sure why.

    Thread Starter SharkBait

    (@sharkbait)

    I’ll take a look and see. Though it does seem like more work really than I would like to do. But we’ll see.

    Thanks for the reply!

    Forum: Plugins
    In reply to: Query for Blog Headers
    Thread Starter SharkBait

    (@sharkbait)

    Ok I am looking over the table structure of WordPress and noticed that all the posts go into the wp_posts table.

    I would then need wp_posts.post_title, wp_posts.post_modified. I would then have to modify my script for the user to enter their table’s prefix correct?

    What I am working on is a small script that prints out the 3 most recent posts by title and date.

    Then an image file is created dynamically via PHP’s GD library which people can use to link their Forum signatures to their Blogs. Works for my custom-made blog type site but I was going to try and learn how to make a plugin for WordPress to do the same thing πŸ™‚

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