Migrate from wordpress to blogspot

Hello guys,

Wondering if you could migrate/transfer your hosted wordpress site into blogger?
Well thanks for this Wordpress to Blogger application that can be found here -> http://wordpress2blogger.appspot.com/. Just follow those steps and your good to go for your wordpress to blogspot migration!

How to redirect a form in drupal

<?php

function MODULENAME_form_alter(&$form, $form_state, $form_id){
global $user;
switch ($form_id) {
// This is our form ID.
case 'YOUR_NODE_FORM_ID': // like page_node_form(for node/add/page)
$form['buttons']['submit']['#submit'][] = 'redirect_this_form';
break;
}
}
function redirect_this_form($form, &$form_state) {
if ($form_state['nid']) {
$node = node_load(array('nid' => $form_state['nid']));
switch($node->type) {
case 'page':
$form_state['redirect'] = 'pages'; // you should specicify here where want to redirect the form after submission
}
}
}

?>

How to set-up paypal sandbox in ubercart

taken from Ubercart PayPal sandbox setup

PayPal sandbox preface:

The trick with the PayPal sandbox is you have 3 accounts. The primary account is your developer account. This logs you into http://developer.paypal.com/. The other two (one Buyer one Seller) work within the sandbox system. You need to login with your developer account before you can use these other accounts. The way I set mine up was to use my email address for the developer account and just use the default address generated by PayPal for the Buyer and Seller accounts. Also, if need be you can create multiple Buyer and Seller accounts under your developer account.

Below is a complete step-by-step for setup and checkout (tested with Drupal 6.10 and Ubercart 2.0 beta3)

1. Go to http://developer.paypal.com/ and create an account. This is separate from any existing PayPal account you may have.

2. Click on "Create a preconfigured buyer or seller account."

3. Check "Buyer", leave the email address alone, change the password if you'd like (but remember to write it down), then click "Create Account".

4. Click again on "Create a preconfigured buyer or seller account." but this time create a "Seller" account.

5. On the "Test Accounts" page enable test mode for the business account by clicking "Disabled" (which changes it to "Enabled").

6. In Drupal, enable the PayPal module (under Ubercart - payments)


7. Under "Administer » Store administration » Configuration » Payment settings" expand the "PayPal Website Payments Standard settings".

8. Set "PayPal e-mail address:" to the "Log-in email" you see for the business account you created (unless you manually set this the email address will be something like "you_12313131233_biz@here.com"). You should be able to get to "Test Accounts" page with the link: https://developer.paypal.com/devscr?cmd=_sandbox-acct-session and see your Seller "Log-in email" address.

9. You can then change the rest of the settings in the Ubercart PayPal module as you'd like. I recommend changing the "Order review submit button text:" to something like "Pay with PayPal".



To complete a test checkout:

1. Make sure you are logged in to PayPal's sandbox server using your main account (go here: http://developer.paypal.com)

2. In Drupal proceed to checkout as you normally would and after you click the button that would normally say "Submit Order", you will be redirected to PayPal's sandbox server. If you are properly logged in with your developer account you will see "XXX's Test Store" at the top of the page.

3. Log in with your Buyer account information (something like "you_12313765733_per@here.com"). Careful here as this is constantly crashing FF3 on my machine.

4. Complete the transaction using your phony test account for the Buyer.

5. You will then see a page saying your transaction is complete and a button taking you back to your store. Order emails do not appear to get sent (to either the buyer or store admin) if the user does not click this button to return to the store, although the order's status is updated to "Payment receiver".


this works with me! thanks to ryangroe@ubercart

Unable to send email in ubercart

"Unable to send e-mail. Please contact the site administrator if the problem persists."

after i completed my payment from paypal sandbox i got this error messages.
What I did is I just configured the my contact details

http://www.example.com/admin/store/settings/store/edit

that's it! and this solves my problem above.

hope this helps!

How to create a link image in drupal

this snippet enables you to create a image link

print l('Business Package - Human Resource Information System (HRIS) ','solutions/hris_ja',array('html' => TRUE));

notice there are 3 parameters: l(1st_param,2nd_param,3rd_param);

1st_param: the html image
2nd_param: the url/path
3rd_param: enable html to TRUE

http://www.arnelbornales.site90.net/blog

How to include jquery.js

Well, I just updated our company site then suddenly i have a error on one of my scripts written in jquery after a time searching for this problem i've noticed that jquery.js was not loaded.



Solution for this is creating a script.js inside your theme directory. Suppose you have a custom theme we will name as "custom_theme". inside your custom_name folder create a script.js file this way drupal will load this file as well as jquery.js



you can dig more about this in drupal http://drupal.org/node/243134

How to add custom javascript file in drupal

Please visit my site http://www.arnelbornales.site90.net/content/how-to-add-custom-javascript-file-in-drupal ,there i put my code about this.

How to delete a folder/directory using cmd

Suppose you would like to delete a file or directory to ease some time.

let's start with locating our folder, our folder is inside My Documents we will name this deletethisfolder

open your cmd, then locate your folder.

Follow this path in your cmd

C:\Documents and Settings\admin> cd "My Documents"

Press Enter,

C:\Documents and Settings\admin\My Documents>rmdir /s /q

ex.

C:\Documents and Settings\admin\My Documents>rmdir /s /q "C:\Documents and Settings\admin\My Documents\deletethisfolder"

or this:

C:\>rmdir /s /q "C:\Documents and Settings\admin\My Documents\deletethisfolder"

That's it! your folder is now deleted!!!

If you want only a sub-folder under "deletethisfolder" directory let's say another_sub_directory

then we'll append the name of the sub directory/folder:

C:\Documents and Settings\admin\My Documents>rmdir /s /q "C:\Documents and Settings\admin\My Documents\deletethisfolder\another_sub_directory"

Hope this Help you GUYS! stick around!!!

how to unzip/untar files with extensions .tar

using your terminal, locate the file where it is being placed.

Let's say you have a file file.tar located in your /usr/local/bin

just, type : tar xvf file.tar to unzip/untar the files inside file.tar

hope this helps you....

IE6 PNG-Fix

Please visit my site http://www.arnelbornales.site90.net/content/ie6-png-fix there i put my code about this.

Remove simple attribute with attr()


Remove simple attribute with removeAttr() method


$("#t2").click(function() { $(this).removeAttr("class") });
Well, this code has no problem except under IE


this code seems to be the solution using attr("class", "")


Remove the same attribute with attr() method


$("#t3").click(function() { $(this).attr("class", "") });


Get the current date using jquery

In this first jQuery tutorial we will develop a simple program that retrieves the current time from server and displays on the user browser. In this example we will be calling a server side PHP script to get the current server time. You can easily replace PHP with JSP, or ASP program.

How to add a collapsible fieldset in your theme/template

Creating a class collapsible inside a Fieldset in your template file or in your theme functio

is not enough like "fieldset class="collapsible skills_group">TESTfieldset"

you need to include

drupal_add_js('misc/collapse.js');

in your hook load or in your theme function.

How to add a contact form in a page

Here is my sample code which I made from http://kinse.net/contact_us
<?php
require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
//no need to maintain two version of node.tpl.php
//include "node.tpl.php";
function local_contact_page(){
$form = contact_mail_page();
// override default values here if you want
// next one will select a different category
//$form['cid']['#default_value'] = 0;
return($form);
}


function local_contact_page_submit($form_id, $form_values){
return(contact_mail_page_submit($form_id, $form_values));
}

function local_contact_page_validate($form, $form_state){
return(contact_mail_page_validate($form, $form_state));
}
?>

Welcome to KINSE Systems Website

<?php print t('Contact Us'); ?>



<?php // here we will render the contact form
print drupal_get_form('local_contact_page'); ?>

How to add a new region in drupal 6 themes

When you want to configure your default theme like
adding new region just edit your .info file of your theme
e.g garland.info


Here is an example code:


regions[logout] = Logout
regions[left] = Left sidebar
regions[right] = Right sidebar
regions[header] = Header
regions[content] = Content
regions[footer] = Footer