"God Mode" in Win 7


Step 1: Right click.
Step 2: Click create folder.
Step 3: Name your sparkly, new folder this, "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" and press enter.
Step 4: Blink as the folder changes form to look like the control panel.

Step 5: Open the folder and bask in all your godly, control panel-y power.

How to access the web content from one machine to another using WAMP


Here are the steps to make WAMP enabled on LAN or WAN:

Before executing the steps you need the machines two be connected on same network(LAN)

Step 1

First you need to set up the WAMP service on your server and on the required services. And make sure that your WAMP server is online and it’s running on your browser using any specified port http://localhot:8081/ (I have given a fixed port number 8081 to my WAMP server). to provide this use the below steps
To run the WAMP Apache server on your specified port, do the following. Go in the\wamp\bin\apache\Apache2.2.11\conf\httpd.conf file and search for “#Listen” and then change the port from 80 to 8081 and in that case, your URL will be http://localhost:8082/. Like below:  

#Listen 12.34.56.78:80
Listen 8082

Step 2

Now make the WMAP Server accessible in the LAN or WAN, you have to get\wamp\bin\apache\Apache2.2.11\conf\httpd.conf and open it and find the following code:

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
   Deny from all
</Directory>
And change the above code to:

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
   Allow from all
</Directory>

By default the directory will have the settings enabled(just check for confirmation)

Step 3

The next step is to open port (8082) of the server such that everyone can access your server. This depends on which OS you are using. Like if you are using Windows 7, follow the below steps.
Open Control Panel  >> System and Security >> Windows Firewall 
then click on “Advance Setting”
  select “Inbound Rules” from the left panel
click on “New Rule…”
Select “PORT” as an option from the list and then in the next screen select “TCP” protocol and enter port number “8082” under “Specific local port” then click on the ”Next” button and select “Allow the Connection” and then give the general name and description to this port and click Done.
Now you are done with PORT opening as well.

Step 4:

“Restart All Services” of WAMP and click on "Put Online" button from the WAMP menu( if the Wamp is off you would not be able to access the content on other machines)

Wordpress:Show posts ordered by Title


<table>
<?php
$postslist = get_posts('cat=category-ID&numberposts=-1&order=ASC&orderby=title' );
foreach ($postslist as $post) :
    setup_postdata($post);


 $post_custom_field = get_post_meta($post->ID, "post_image", true); 
?>


<tr>
          <td valign="top" width="26%"><img src="<?php bloginfo('template_directory'); ?>/images/
<?php echo $post_custom_field;?> " width="120" height="90"></td>
          <td class="introcopy" valign="top" width="72%"><strong><?php the_title();?></strong><br>
           <?php the_content();?></td>
          <td width="2%" height="98">&nbsp;</td>
        </tr>
<?php endforeach; ?>
</table>

Make Wordpress Blog Live

Making a blog live (from test location to root or LIVE location)

a. Make sure you have FTP/sFTP access to the existing WP installation files
b. Make sure you have FTP/sFTP access to the "new" WP installation files which needs to go live
c. Make sure you have access to the databases or PHPMyAdmin for both the installations
d. Make sure you have Admin access to backend/CMS to both the installations.

#A Connect VIA FTP
1. Create a new folder /old-wp-MMMYY/ )
2. Move the existing WP installation files from root (or from the folder where it is currently installed) to /old-wp-MMMYY/
3. Move all the WP installation files from "new" folder to root  (or the folder where it is to be installed, from where you moved the existing files)
4. Open the "new" database and go to wp_options table (note: if you'd changed the prefix in config.php, you'll see that instead of just wp_)
5. In this table, change values for siteurl & home to match the current WP installation (whether root or folder)
6. Repeat step 4 & 5 for the installation in /old-wp-MMMYY/ so that it is now accessible on this new location.
7. Via ftp, browse to the wp-content/themes folder and double check theme files for hard coded links - correct the paths to match the new location.
8. Now, browse to the new installation via web and test if everything is working fine in IE / Chrome / FF/ Safari
9. Log into the admin of the new installation and check if you need to update the admin email address etc to match that of the client. Make sure you do not get any plugin errors etc.
10. In Admin, Go to Pages > Add New and try uploading any media file - you should not get any folder permission errors. If you do, check folder permissions.
11. Delete your test media file after it successfully uploads.
12. Cross check all emails and undo anything that you'd done in test location which doesn't match the live site - e.g. you may have blocked search engines form indexing this site or changed admin email or password etc.
13.Change the path of upload file in wp_option folder,If not correct.
14.If you have changed the table prefix, then edit the entries in wp_option folder and wp_user_meta table (wp_user_role, wp_capabilities,wp_user_level).
15. You're done!

To create Newsletter email Template:

<?php

    $to = "youremail@domain.com";
    $from = "homedomain.com";
    $subject = "Newsletter E-mail";
    $message = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Bahamas::</title>
<style type="text/css">
</style></head>

<body>
<table width="667" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td></td>
</tr>
</table>
</body>
</html>
';
    $headers  = "From: $from\r\n";
    $headers .= "Content-type: text/html\r\n";
    mail($to, $subject, $message, $headers);

    echo "E-mail has been sent to..... !".$to;
?>




Note:  In Newsletter which you have to send on email.You have to give the absolute url addres as   domain.com/images/image.jpg.