Win Merge Tutorial

Tutorial: How to easily merge files.

This tutorial is written for Windows users want to upgrade the script, but instead of uploading and replacing entire files, they only want to put in the changes because they have customized their older files.

WinMerge is a fantastic little program which lets you work out what changes were made to a file since the last version. Get WinMerge from here: http://winmerge.sourceforge.net/

Step 1

Fire up WinMerge.

Select the new file on the left and the old file on the right. Click OK

 


Step 2

Now let’s get to business!

On the left you can see the outline of the files side-by-side. The yellow represents changed sections.

Navigate to the changed sections. The file on the right is the new version, on the left is the old version. Notice the difference has been highlighted, while the missing section has been grayed out

.

 


 

Step 3

Copy the new code to the old code and save

 


 

Step 4

Repeat steps two and three.


That’s it!

Its a great time saver, isn’t it?

Alpha Blending Tutorial

Tutorial: How to create a PNG image with an alpha transparency channel using Photoshop

This tutorial describes how to create a background image that is to be used with the script.

Step 1

Start with the original image. Select the Magic Wand tool and select the background around the image. Hold down the Shift key to add to the selection until you have selected the entire background.


 

Step 2

 

Take the inverse of your selection. Go to Select -> Inverse. This will unselect the background & select the girl.


 

Step 3

Copy your selection


 

Step 4

Create a new image. Go to File-> New (Enter the height and width of your desired image, eg. 1000×1000)
Paste your selection into the new image as a new layer.


 

Step 5

Hide the background layer by clicking on the eye in the layer viewer.


 

Step 6

Clean up any unwanted pixels by selecting them and hitting the delete key on your keyboard.


 

Step 7

Set the blending options for the Layer 1. Right click on the layer and click on “Blending Options”. You can move the Opacity slider to about 50 %


 

Step 8

Save the image as a png file

 

That’s it!

 

You can now use the image in the script as a background image.

Yahoo Install

Tutorial: How install the script on a Yahoo hosting account.

This tutorial describes how to install the script under a Yahoo hosting account. (Yahoo is a registered trademark of Yahoo Inc.)

Yahoo hosting is more difficult than CPanel based hosting providers when it comes to setting up a database. There are more steps to take. Please follow them carefully.

Step 1

 Log into your Yahoo hosting account. You will see the following screen:

 

return1

Click on the ‘Web Hosting Control Panel’ to continue…

 


 

Step 2

Set up the MySQL Database. The following steps show you how to install PhpMyAdmin, how to create the database and finally how to set the privileges for the user.

First, click on the ‘Create & Update’ tab.

return2

Scroll down to the bottom of the page where you see ‘Advanced Tools for creating and Editing Web sites.

Click on the MySQL Database link.

return3

Create a password for the Database Administrator. Please note down the username and password that you create here – you will need it for the future steps.

(Note: This is different from your Yahoo account username and password. This is the username and password that will be used by the PHP Script)

return4

 

 

After editing the three settings, click on the Install admin tool link on the left.  Complete the 3 Steps to install the admin tool (PhpMyAdmin).

return7

 

In the second step, you can create a new directory called ‘phpMyAdmin’, then click on the install phpMyAdmin link on the right.

return8

 

PhpMyAdmin is installed. Log in to phpMyAdmin. Use your Database Administrator password created above (This is not your Yahoo account)

return9

Create a new database named ‘million’. Hit the Create button when done.

return11

 

Click on the Home button found in the top-left corner

return12

 

Now we will set up the privileges. Click on the Privileges link in the Home page:

 

return13

 

You may see a Warning in red, just ignore it. Click on the little icon as shown in the screenshot below:

return14

 

You will see a drop-down list in the middle of the page labeled ‘Add privileges on the following database:’. Select ‘million‘ from the list.

return15

 

Edit privileges. Click the ‘Check All’ link and click ‘Go’

 

return16

 

Phew! If you got through this step OK, give yourself a pat on the back! The next step will show you how to upload the files.


 

Step 3

FTP the files to the server. Connect to the server using the details given in your Yahoo hosting welcome email.

The following screenshots show a freely available FTP client for Windows: FileZilla. Other FTP clients for both Mac and Windows are very similar, and you can get the basic idea from these screenshots.

#1 – Click on the Site Manager icon.

#2 – Fill in your FTP host. If your site is widgets.com then your host will be ftp.windgets.com

#3 – Select ‘Normal’

#4 – Enter your Yahoo user ID

#5 – Enter your Yahoo Password

#6 – Connect

return5

When you log in to your website via FTP, you will be in the main directory (also known as the ‘document root’ or just ‘root’ for short), and there may be some files or directories already there such as the phpmyadmin directory. You may install the script in the main directory, or you may choose to install the script in a sub-directory.  If you choose to install in a sub-directory, then create a new directory and change to that directory and proceed as normal. Here we will install the script in the main directory.

To upload the files, simply select the unzipped files on your computer on the left, right click, and then select ‘upload‘. (Select all the files and directories, except Do not select the directory with the double periods ..)

return6

(Note: The screenshots here show FileZilla, but the files can be uploaded using any other ftp client. Your computer is on the left site, Yahoo is on the right side.)

IMPORTANT NOTE FOR YAHOO HOSTING

If you haven’t done so already, yahoo hosting requires you to create the following directories in the main directory. Use your FTP client to create the following directories:

1) create tmp subdirectory
2) create sessions subdirectory
3) create logs subdirectory (this is where the errors will be logged, very useful for trouble shooting your script)


Step 4

Use the FTP client to set the file permissions.

admin/temp/ – chmod 777 (read, write & execute for all)

pixels/ – chmod 777  (read, write & execute for all)

config.php – chmod 666 (read & write for all)

And also (if you have the latest version):

upload_files/images/ – chmod 777  (read, write & execute for all)upload_files/docs/ – chmod 777  (read, write & execute for all)

optional: lang/english.php – chmod 666 (read & write for all)

Because Yahoo Hosting is Unix based, we need to set the permissions using chmod. many FTP clients support this functionality.

For detailed information, please see a detailed permissions tutorial here.


 

Step 5

Go to the script’s installation page, http://www.yourdomain.com/admin/install.php

 

Fill in the database details that you entered in step 2

Make sure to fill it in carefully.

#1 – This is the database administrator username from step 2

#2 – This is the database administrator username form step 2

#3 – The database name from step 2

#4 – Enter ‘mysql’, as stated in Yahoo hosting documentation

Click ‘Install Database’ when done.

return17

This will install the database. Once successful, delete admin/install.php from your server.


Step 6

Finish off the rest of the configuration. Log into the admin http://www.yourdomain.com/admin/

The default password is: ok

Go to the main configuration and enter the remaining setup values:

midpha4

1. Set the Site’s HTTP URL address (use the recommended settings)

2. Set the sites Server path to admin (use the recommended settings)

3. Mail configuration: DO NOT USE THE SMTP SERVER SETTINGS

Note: Yahoo Hosting allows you to send email to a maximum of 250 recipients per day. This may be a problem if you have more than 250 customers per day. You will also need to setup the ‘From:’ mail for PHP.  Here’s how it’s done:

Go to the ‘Create & Update’ menu, scroll down to ‘Advanced Tools’ and click PHP/Perl Mail.

return18

Setup your email address where indicated by the arrow:

return19

4. Set any other settings that you wish, such as Admin’s email address, website name and more.

Configure the email account that you used in step 3

 


 

Step 7

That’s it! The script is now installed. There are other things you can now do, such as edit the language, set the prices, setup the payment modules. etc.

And don’t forget to process the images from the ‘process pixels’ menu!

Chmod Permissions Tutorial

Tutorial: How to set permissions on Unix

This tutorial is written for Windows users who install the Million Dollar Script on Unix based servers. The permissions are set using a free FTP client called ‘FileZilla’. You can get FileZilla from here: http://filezilla.sourceforge.net/

Step 1

Fire up FileZilla. FTP into your website. Navigate to your main html documents directory.


Step 2

Set the permissions of the admin/temp directory.

Point and right-click the “pixels” directory with your mouse. Choose ‘File Attributes…’ from the pop-up menu.

Check all the checkboxes and click OK.

(Right-click the  pixels folder and select ‘File attributes…’)

(Check all the checkboxes as shown and click OK)

 


Step 3

Set the permissions of the admin/temp directory.

Navigate to the Million Dollar Script’s admin/temp and then right-click the “temp” directory with your mouse. Choose ‘File Attributes…’ from the pop-up menu.

Check all the checkboxes and click OK.

(In the admin directory: Right-click in temp/  and select File attributes…)

(Check all the checkboxes as shown and click OK)


Step 4

Set the permissions of the config.php file

Right click on config.php and select ‘File Attributes…’ from the pop-up menu.

Check all the ‘Write’ checkboxes and click OK.

(Right click on config.php and select ‘File Attributes…’ from the pop-up menu.)

 

(Check all the ‘Write’ checkboxes and click OK.)


That’s all!

cPanel Install

Tutorial: How install the script on a MidPhase hosting account.

This tutorial describes how to install the script under a MidPhase hosting account. MidPhase uses CPanel, so this tutorial might be useful for others who have CPanel.

Step 1

 Log into CPanel. You will see the following screen:

 

Note: The above screen is customized for MidPhase, it will look different on other hosting accounts, but the features / options will be basically the same.


 

Step 2

Setup the database. Click on ‘MySQL Databases’

You will see this screen:

 

 

The important things in the screen above are labelled in red.

#1 – Enter the name of the database. This will create a new database. For example the name can be: million

#2 – Enter the user for the database. This will create a new database user. For example –

username: million
password: dollar

#3 – Add the user to the database created in step #2.

Please take note of your database name, Server name, Username and password for step 5 !

 

Note: Your MidPhase username will be joined to the front of the MySQL username and database name. So for example, if your MidPhase username is bob21 and your database name is million, the final database name will be bob21_million. The same goes for the database username.

What? My Midphase Username (eg.) Final Result
Mysql Username: million bob21 bob21_million
Mysql Database Name: million bob21 bob21_million

 

 

 


 

Step 3

FTP the files to the server. Connect to the server using the details given in your MidPhase welcome email.

How to connect with FileZilla?
#1 – Click on Site Manager
#2 – Click on ‘New Site’, type in the name of your site
#3 – Type in the ftp host (eg. ftp.yourdomain.com)
#4 – Click on ‘Normal’
#5 – Enter your username & password
#6 – Click on ‘Connect’

When you log in to the server with FTP, you will see a list of directories. Always upload your files to the public_html directory.

To upload the files, simply select the unzipped files on your computer on the left, right click, and then select ‘upload’. (Do not select the directory with the double periods ..)

The screenshots here show FileZilla, but the files can be uploaded using any other ftp client.

 


Step 4

Use the FTP client to set the file permissions.

admin/temp/ – chmod 777 (read, write & execute for all)

pixels/ – chmod 777  (read, write & execute for all)

config.php – chmod 666 (read & write for all)

optional: lang/english.php – chmod 666 (read & write for all)

And also (if you have the latest version):

upload_files/images/ – chmod 777  (read, write & execute for all)upload_files/docs/ – chmod 777  (read, write & execute for all)

 

Because MidPahse is Linux based, we need to set the permissions using chmod. Many FTP clients support this functionality.

For detailed information, please see a detailed permissions tutorial here.


 

Step 5

Go to the script’s installation page, http://www.yourdomain.com/admin/install.php

Fill in the database details that you entered in step 2

Make sure to fill it in carefully.

Click ‘Install Database’ when done.

This will install the database. Once successful, delete admin/install.php from your server.

 

Note: Please enter your database name, Server name, Username and password as shown in step #2

 


Step 6

Finish off the rest of the configuration. Log into the admin http://www.yourdomain.com/admin/

The default password is: ok

Go to the main configuration and enter the remaining setup values:

1. Set the Site’s HTTP URL address (use the recommended settings. This is a very important setting)

2. Set the sites Server path to admin (use the recommended settings. This is a very important setting)

3. Enter the email account settings under the ‘SMTP Settings’. Here is an example:

 

4. Setup your own custom logo. Create a logo for your website and upload it. Then go to Main Config and set the logo’s URL to where you uploaded it. (Default logo is 350 x 50)

5. Enable at least one payment module. See README.txt for further details about setting up PayPal and 2CO modules.

6. You can set up the image size, and the default price. Please go to ‘Manage Images’, under the Pixel Inventory section.

7. Set any other settings that you wish, such as Admin’s email address, website name and more.

 


 

Step 7

That’s it! The script is now installed. There are other things you can now do, such as edit the language, set the prices, setup the payment modules. etc.

And don’t forget to process the images from the ‘process pixels’ menu!

Don’t see any homepage? You can see example.html for the home page. Rename example.html to index.html to set is as the homepage.