SharkBait
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display only 2 posts from a categoryThat seemed to work. Thanks
Forum: Themes and Templates
In reply to: index page modifcationAlright 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 }Forum: Themes and Templates
In reply to: index page modifcationSo 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
Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogIf 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!
Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogOh 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?
Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogOk 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!
Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogI’ve uploaded the script that will output what the XMl looks like: http://www.tyleringram.com/generateXML.php
Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogI 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.Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogOk 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.Forum: Installing WordPress
In reply to: Moving to WordPress from Custom BlogI’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 HeadersOk 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 π