My Computer Back in Service

“Make Your Computer Smile Again!”

happyscreen.JPG

Why Copy & Paste Doesn’t Work on Some Code

In the post about Putting Post Preview Back the other day, I had an “*” for the Copy & Paste process to use the code I had shown. The reason being… 

When you copy & paste code sometimes it doesn’t work.

This happens because sometimes you aren’t getting the “real” code. You are getting the “viewing” code instead of the actual characters that the computer reads.

As an example:

When the code calls for…

?>
<div id=’preview’ class=’wrap’>

so the computer knows where the “divider” is and what class the “preview” is and how it works, this is what the computer needs to run the code correctly.

But when you code it for viewing, it looks like this…

?& gt;
& lt;div id=’preview’ class=’wrap’& gt;

to the computer.

Does that sound confusing? Well, that’s what happens to the computer when it tries to read the “view” that we see instead of the “real”code that it needs. It gets confused.

So, the next time you Copy & Paste some code and it doesn’t work right the first time, try Typing the exact code you see in the text. The odds are that the code is right, but you are getting the “view” code instead of the “real” thing.



Want Post Preview Back in WordPress?

newwplogo.png

If you’re like me and prefer having an inline Post Preview, instead of having to go through the extra step of clicking preview>> and having it open in another window. There is a little bit of code you need to add to WordPress on your Host Server.

You have to be comfortable working in the background code of your post.php, but it is fairly simple to do. Go to the wp-admin folder on your server, find your post.php and copy & paste* the code below.

Here’s the steps you will need to know…

  • Open up your post.php file from your wp-admin directory.
  • Navigate to approximately half way down and find the following line of code:
  • include('edit-form-advanced.php');

  •  Directly underneath that line, add the following code:
  • ?>
    <div id='preview' class='wrap'>
    <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?></h2>
    <iframe src="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe>
    </div>
    <?php

  • Save your changes to post.php.

There, Done… Simple, huh?

Now you can view a preview of the post you are working on without going through all those extra steps. (Remember, you Still have to Save and Continue Editing for viewing)

*If Copy & Paste doesn’t work, you may need to actually TYPE the code, but it does work.

Source: Will Lee



Open For Business – My Computer Back in Service

Hello and Welcome

Sure there are lots of Self-help, Tips and How To Blogs out there. So, why should I start another one? Other than the fact that I think I have something of value to offer that many others don’t…

I started this Blog for 2 reasons:

 The First is for you… Not every problem needs to be addressed by some unknown “professional” sitting at a help desk who doesn’t really care if your problem is solved as long as they get paid. Many of the little tweaks and adjustments as well as some hardware/software installations can be performed by you, with a little helpful information. This Blog exists to give you some pointers on things you can accomplish yourself – without outside help.

The Second is purely selfish… I needed a platform to promote my business of becoming your “Personal Help Line”. There will be times when even the information I provide in some of the Blog Posts will not be enough to do what is necessary to get your Computer Back in Service. When you are having problems with your Computer, Blog or Website and can not get any satisfaction with the Manufacturer’s help desk or on one of the many Forums designed for self-help or if you just can’t figure it out yourself, you can Depend On Me.

I will be presenting various tips and tricks for fixing problems I have found while working with and on computers throughout my career. But new things pop up all the time. So, if you have any questions that haven’t been addressed in any posts, please use the comments section or the “regular” Contact Form to let me know.

If you need advanced help in solving your problem, please use the “Need Help?” page.



  • From the Archives

  • Subjects

  • Look-up Posts by Date

    August 2007
    S M T W T F S
        Sep »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031