Showing posts with label Das. Show all posts
Showing posts with label Das. Show all posts

Saturday, May 7, 2011

My Wish List

Hey, for those who want 2 know I may get a job soon. So I thought that what should I buy from my first salary and there are so many things that I don't know that I would be able to remember it or not.
So I created a wish list to help me remember. You can check out my list on www.titan4119.110mb.com/wish.html. If you are a tech geek like me then you'll also like to buy some of the things that I want.

P.S.- The list is not complete, I'll add into it often.

Tuesday, February 15, 2011

FPSP - Flat File Php Shopping Page v 4.0

Have you enjoyed my Php Shopping Page Scripts v 2.0 and v 3.0 ?
Then you would love perhaps the last version of Php Shopping Page script FPSP v 4.0.
Yes the last and the best. It has so many new features that it may be the biggest script that I have ever written.
The features include:
1) It uses text files as database, so NO Sql or Access requried.
2) The products or scripts can be uploaded and the database can be updated online.
3) After a successful transaction, the user is asked to enter an email address where an email is sent containing a download code. The user clicks on the code to download the file.
4) The download code is different for each transaction and once downloaded then it becomes invalid.
5) The file to be downloaded is first copied to a download folder and given a random name, so that any user cannot trace the file to the folder where all your download files are located.
6) It also logs the date and time of download, IP address of the user, name of the product, file name and much more so that you know how much you sold.
7) All the important pages accessed by the admin are password protected.

This is just the summary of all the things that I've added, it took me months to come up with a script that was complicated enough to solve all your problems as well as simple enough for the average user to use.
It is still in Alpha testing stage. To go to Beta stage I need volunteers who can test the script and tell me the result. So if you want to test it for me, then leave a comment along with an email address and I'll send you a copy.

Sunday, February 6, 2011

Quick Response Code at you service.

So guys have you heard about QR code?
It looks something like this
  qrcode
If you take a picture of this design from your smart phone or PC with a QR reader installed then you would be taken to my blog. Cool right and not only that you can also print out these designs like bar codes, but unlike bar codes that store only numbers, these codes can store anything from your site's url do that users are directly taken to your site to a phone number the users can call or send sms and if you want you can even leave messages encoded in them.
You can create your own code and download the QR reader software free of cost from http://qrcode.kaywa.com/

Thursday, February 3, 2011

LogIt v1.0

Even if you have a free site or blog like mine, you still advertise it don't you?
The cheapest and easiest way to advertise your site is by asking others to post a banner of your site on theirs and adding a link back to your site or simply a text link on their site
e.g.- <a href="www.mysite.com"><img sre="mybanner.jpg"></a>
Although easy it has one big problem, how would you know how many users visited your site, from which site and which pages were visited the most?
You might have a visitor counter on your site, so do I. But that also won't give you all the details, so here is a script that not only records the date of the visit, but also the user's IP address, from which site they came and which page they visited.
click.php
<?php
// LogIt v1.0
// Script Written By Tanmay Das
// Script © Copyright Design Inline.com

// Opening Databse file
$dbase = 'dbase.txt';
$data = file($dbase);
// Creating array
$array = explode("||", $data[0]);
$today = $array[0]; // Today's date
$ipad = $array[1]; // IP of the user
$reff = $array[2]; // Site from the user came
$frurl = $array[3]; // Page the user wished to go
$today = date("l, F j, Y, g:i a");
$ipad = getenv("REMOTE_ADDR");
$reff = getenv("HTTP_REFERER");
$default0 = home;
$frurl = isset($_GET['url']) ? $_GET['url'] : $default0;
if($frurl != 'home')
{
$insertdata = $today."||".$ipad."||".$reff."||".$frurl."\n";
// Writing data to file
$fp = fopen($dbase,"a");
fputs($fp,$insertdata);
fclose($fp);
header("Location: ".$frurl); // Redirecting user to specified page
}
else
{
$userinfo = file('dbase.txt'); // Opening Database file
// Creating Table
echo '<table border = "1">';
echo '<tr><td>Date</td><td>IP Address</td><td>Referrer Address</td><td>Forwaded URL</td></tr>';
foreach($userinfo as $key => $val)
{
//explode that data into a new array:
$data[$key] = explode("||", $val);
}
for($k = 0; $k < sizeof($userinfo); $k++)
{
echo '<tr><td>'.$data[$k][0].'</td><td>'.$data[$k][1].'</td>';
echo '<td><a href="'.$data[$k][2].'">'.$data[$k][2].'</a></td><td><a href="'.$data[$k][3].'">'.$data[$k][3].'</a></td></tr>';
}
echo '</table>';
}
?>

Just save it as say click.php upload it on your server along with a blank text file named dbase.txt.
While giving someone link to post on their site, instead of
<a href="www.mysite.com"><img sre="mybanner.jpg"></a>, give
<a href="www.mysite.com/click.php?url=page.html"><img sre="mybanner.jpg"></a>
Try it out.

Thursday, January 27, 2011

Check out Site Trail.com

OK I found this site by luck. But this is great what this site does is it shows all the info about your website/blog, like your site's estimated value, revenue, page views, alexa rating, backlinks, Google and Yahoo indexed pages and much more.
I also got a widget for my site check it out. It's got all the info in one place. You should really check out your site's ratings.

Tuesday, January 25, 2011

Can any of you access PayPal

Earlier it was like that if you had to had a PayPal account to buy or sell online. So I suppose many of you would have a PayPal account right?
If you don't then try going to www.paypal.com. I have tried for very long and whenever I go there I see this

This webpage is not available.

The webpage at https://www.paypal.com/ might be temporarily down or it may have moved permanently to a new web address.

Not only that i have even googled paypal and looked at all the links popped up and the result was the same.
So what's with PayPal, have they shutdown or something or they don't want me to come in.

Friday, January 21, 2011

Alertpay ™ PHP Shopping Page v3.0

So as I mentioned earlier I have made some changes like you don't need a separate download and cancel page all is done in just one page. Script is easy to change you have to just edit the all.js file everytime you add a new product.

all.js

// Alertpay PHP Shopping Page Script v3.0
// Script written By Tanmay Das
// © Copyright Designinline.com. All rights reserved.
// http://www.designinline.elementfx.com
listDisplay([
// 'name of the thumbshot, screenshot and .zip file to be downloaded', 'name of the product','author','price',
'H5p9O33k7Uf5','HTML Template','Tanmay Das','18',
'2','www.123.com','Link2','17',
'3','www.123.com','Link3','19',
'4','www.123.com','Link4','25']);
function listDisplay(dataArr)
{
var furl, name, author, r1, l, v;
v = 4;
l = (dataArr.length / v)-(dataArr.length / v);
while(l<[dataArr.length/v])
{
furl = dataArr[l * v];
name = dataArr[(l * v)+1];
author = dataArr[(l * v)+2];
r1 = dataArr[(l * v)+3];
r2 = dataArr[(l * v)+4];

document.write('<div id="thumb_div">');
document.write('<table width="200" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td>'+name+'</td></tr>');
document.write('<tr><td><img src="template/thumbs/'+furl+'.jpg" width="200" height="150" /></td></tr>');
document.write('<tr><td width="53">Author : '+author+'</td></tr>');
document.write('<tr><td>Price : $'+r1+'</td></tr>');
document.write('<tr><td height="20" align="center"><a href="http://www.titan4119.110mb.com/buy.php?');
document.write('id='+furl+'&amp;name='+name+'&amp;aut='+author+'&amp;r1='+r1+'" target="_self">');
document.write('View Template</a></td></tr>');
document.write('<tr><td align="center"><a href="http://www.yoursite.com/template/buy.php?');
document.write('id='+furl+'&amp;name='+name+'&amp;aut='+author+'&amp;r1='+r1+'" target="_self">');
document.write('<img src="../images/buy_small.gif" width="115" height="27" border="0" /></a></td></tr>');
document.write('</table>');
document.write('</div>');
l++;
}
}
Copy it, save it as all.js (for now) and change the links given in bold


buy.php

<?php
// Alertpay PHP Shopping Page Script v3.0
// Script written By Tanmay Das
// © Copyright Designinline.com. All rights reserved.
// http://www.designinline.elementfx.com
$default0 = 'all';
$dbase = isset($_GET['db']) ? $_GET['db'] : $default0;
$dbase = basename($dbase);
$default1 = 'test';
$furl = isset($_GET['id']) ? $_GET['id'] : $default1;
$furl = basename($furl);
$default2 = 'Name of the Template';
$fname = isset($_GET['name']) ? $_GET['name'] : $default2;
$fname = basename($fname);
$default3 = 'Tanmay Das';
$author = isset($_GET['aut']) ? $_GET['aut'] : $default3;
$author = basename($author);
$default4 = '0';
$price1 = isset($_GET['r1']) ? $_GET['r1'] : $default4;
$price1 = basename($price1);
$default5 = '0';
if (file_exists('download/'.$furl.'.zip'))    {
echo('<table width="1000" border="0" cellspacing="0" cellpadding="0">');
echo('<tr><td width="75%"><img src="preview/'.$furl.'.jpg" /></td>');
echo('<td width="25%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
echo('<tr><td>'.$fname.'</td></tr><tr><td>&nbsp;</td></tr>');
echo('<tr><td>Author : '.$author.'</td></tr><tr><td>&nbsp;</td></tr>');
echo('<tr><td>Commercial Licence (Price : $'.$price1.')</td></tr><tr><td align="center">');
echo('<form method="post" action="https://www.alertpay.com/checkout" >');
echo('<input type="hidden" name="ap_purchasetype" value="item-goods"/>');
echo('<input type="hidden" name="ap_merchant" value="you@yoursite.com"/>');
echo('<input type="hidden" name="ap_itemname" value="'.$fname.' (Commercial Licence)"/>');
echo('<input type="hidden" name="ap_currency" value="USD"/>');
echo('<input type="hidden" name="ap_returnurl" value="http://www.yoursite.com/download.php?s=0&name='.$fname.'&aut='.$author.'&rs='.$r1.'&id='.$furl.'"/>');
echo('<input type="hidden" name="ap_itemcode" value="'.$furl.'"/>');
echo('<input type="hidden" name="ap_quantity" value="1"/>');
echo('<input type="hidden" name="ap_amount" value="'.$price1.'"/>');
echo('<input type="hidden" name="ap_cancelurl" value="http://www.yoursite.com/download.php?s=1&name='.$fname.'&aut='.$author.'&rs='.$r1.'&id='.$furl.'"/>');
echo('<input type="image" name="ap_image" src="buy.gif"/>');
echo('</form></td></tr><tr><td>&nbsp;</td></tr></table>');
}
else if(!file_exists('template/dbase/'.$dbase.'.js'))
{
echo('<h5>There has been an ERROR</h5>');
}
else
{
echo('<script type="text/javascript" src="template/dbase/all.js"></script>');
}
?>
Copy it save it as buy.php (for now) and edit everything in bold


download.php

<?php
// Alertpay PHP Shopping Page Script v3.0
// Script written By Tanmay Das
// © Copyright Designinline.com. All rights reserved.
// http://www.designinline.elementfx.com
$default0 = 'home';
$furl = isset($_GET['id']) ? $_GET['id'] : $default0;
$furl = basename($furl);
$default1 = 'name';
$fname = isset($_GET['name']) ? $_GET['name'] : $default1;
$fname = basename($fname);
$default3 = 'Tanmay Das';
$author = isset($_GET['aut']) ? $_GET['aut'] : $default3;
$author = basename($author);
$default4 = '0';
$price = isset($_GET['rs']) ? $_GET['rs'] : $default4;
$price = basename($price);
$default5 = '5';
$status = isset($_GET['s']) ? $_GET['s'] : $default5;
$status = basename($status);
if ($status == '0')
{
header('Location: http://www.yoursite.com/download/'.$furl.'C.zip');
echo ('Thank You for Purchasing HTML Template named '.$fname.' by '.$author.' with  Commercial Licence priced $'.$price);
echo ('<div align="center"><b>Download is in progress</b><br />');
echo ('<img src="../images/load.gif" width="32" height="32" /><br />');
echo ('If the download doesn&acute;t starts within 5sec<br>');
echo ('<a href="http://www.yoursite.com/download/'.$furl.'C.zip">Click Here</a> to download manually</div>');
}
else if ($status == '1')
{
echo ('Sorry but the transaction was not successfull');
}
else
{
echo ('You have some error');
}
?>
Copy and save it as download.php (for now) and change everything in bold


That's it important thing is to just go through the codes and change the links to where you have placed each file. The thumbnail image, screenshot image and the .zip file to be downloaded have the same name for ease of use, hence they are placed in different folders e.g.-thumbs, preview and download.
The buy buttons you can download from AlertPay™. Just go to Bussiness Tools > Generate a "Buy Now" Button and then select the button and copy it's url.

www.designinline.elementfx.com verified by Alertpay™

Good news,
My site Design InLine has been verified by AlertPay™. So now I can sell my web-templates from my site and in celebration of this news I am posting my AlertPay™ PHP Shopping Page v3.0 for you.
I have made some changes to my PHP Shopping Page v2.0 which include.
Instead of the following pages.
Buy.html
dbase.js
purchase.php
download.php and
cancel.php

This script uses just
all.js (you can make separate .js file for each category of your product)
buy.php and
download.php

So I hope you like it.

Saturday, January 15, 2011

Simple Shopping Cart with Alertpay™

Many of you must be thinking about putting a shopping cart on your site, blog to earn some cash, sell your HTML templates or images or scripts. But shopping cart takes a little effort to run. I mean My SQL or a flat file database. Also many free scripts use a .cgi file, if you have paid hosting then no problem, but if you have free hosting (like my www.designinline.elementfx.com ) then you are not given access to any .cgi file on the server.
So after fiddling around with PHP, I made a script that uses neither a database (My SQL or flat file) nor .cgi file. It is a simple PHP file that calls the variable from the link to load data and sends the user to your AlertPay page to buy your file. So all you have to do is upload the screenshot image file, flash files (if any) and the zip file to be downloaded and using only three files you can sell all your files. I have used AlertPay because I have an account there also I tried to open a PayPal™ account but I didn't succeed. So here is my script.
You might remember earlier I had posted a tutorial I modified to make PHP Templates. The script is more or less the same but I modified it more so that instead of calling a php file. It calls .jpg preview of the template and inserts all the data from the link into itself. Sample.
To start just copy and paste this code in the body tag and save it as say cart.php.
// Simple PHP Shopping Page Script
// © Copyright, Design InLine.com
// Script created by Tanmay Das
<?php
$default1 = 'test';
$furl = isset($_GET['id']) ? $_GET['id'] : $default1;
$furl = basename($furl);
$default2 = 'Name of the Template';
$fname = isset($_GET['name']) ? $_GET['name'] : $default2;
$fname = basename($fname);
$default3 = 'Tanmay Das';
$author = isset($_GET['aut']) ? $_GET['aut'] : $default3;
$author = basename($author);
$default4 = '0';
$price1 = isset($_GET['r1']) ? $_GET['r1'] : $default4;
$price1 = basename($price1);
$default5 = '0';
$price2 = isset($_GET['r2']) ? $_GET['r2'] : $default5;
$price2 = basename($price2);
if (file_exists('download/'.$furl.'.zip'))    {
echo('<table width="1000" border="0" cellspacing="0" cellpadding="0">');
echo('<tr><td width="75%"><img src="preview/'.$furl.'.jpg" /></td>');
echo('<td width="25%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
echo('<tr><td>'.$fname.'</td></tr><tr><td>&nbsp;</td></tr>');
echo('<tr><td>Author : '.$author.'</td></tr><tr><td>&nbsp;</td></tr>');
echo('<tr><td>Commercial Licence (Price : $'.$price1.')</td></tr><tr><td align="center">');
echo('<form method="post" action="https://www.alertpay.com/checkout" >');
echo('<input type="hidden" name="ap_purchasetype" value="item-goods"/>');
echo('<input type="hidden" name="ap_merchant" value="yourmail@yoursite.com"/>');
echo('<input type="hidden" name="ap_itemname" value="'.$fname.' (Commercial Licence)"/>');
echo('<input type="hidden" name="ap_currency" value="USD"/>');
echo('<input type="hidden" name="ap_returnurl" value="http://www.yoursite.com/c_download.php?id='.$furl.'"/>');
echo('<input type="hidden" name="ap_itemcode" value="'.$furl.'"/>');
echo('<input type="hidden" name="ap_quantity" value="1"/>');
echo('<input type="hidden" name="ap_amount" value="'.$price1.'"/>');
echo('<input type="hidden" name="ap_cancelurl" value="http://www.yoursite.com/c_cancel.php?id='.$furl.'"/>');
echo('<input type="image" name="ap_image" src="buy.gif"/>');
echo('</form></td></tr><tr><td>&nbsp;</td></tr>');
echo('<tr><td>Developer&acute;s Licence (Price : $'.$price2.')</td></tr>');
echo('<tr><td align="center"><form method="post" action="https://www.alertpay.com/checkout" >');
echo('<input type="hidden" name="ap_purchasetype" value="item-goods"/>');
echo('<input type="hidden" name="ap_merchant" value="yourmail@yoursite.com"/>');
echo('<input type="hidden" name="ap_itemname" value="'.$fname.' (Developer&acute;s Licence)"/>');
echo('<input type="hidden" name="ap_currency" value="USD"/>');
echo('<input type="hidden" name="ap_returnurl" value="http://www.yoursite.com/d_download.php?id='.$furl.'"/>');
echo('<input type="hidden" name="ap_itemcode" value="'.$furl.'"/>');
echo('<input type="hidden" name="ap_quantity" value="1"/>');
echo('<input type="hidden" name="ap_amount" value="'.$price2.'"/>');
echo('<input type="hidden" name="ap_cancelurl" value="http://www.yoursite.com/d_cancel.php?id='.$furl.'"/>');
echo('<input type="image" name="ap_image" src="buy.gif"/>');
echo('</form></td></tr></table></td></tr></table>');
}
else
{
echo('The template you are looking for was not found');
}
?>

Now for the link.
http://www.yoursite.com/cart.php?id=12345&name=Name of the Template&aut=Author's Name&r1=10&r2=20
OK the "id" is the name of your screenshot file (the image file that you'll give for preview) which should be in the "preview" folder also the name of the .zip/.rar file (the one that others will download) which should be in the "download" folder. You can change the folders by changing their paths.
The "name" in the link is the name you want to give to the template or script to download to make it look fancy. The "aut" is the name of the author of the file and "r1" and "r2" are the variables carrying the price to Alertpay™.

The download file is also very simple. Just copy and paste this code in download .php.

<?php
$default = 'home';
$furl = isset($_GET['id']) ? $_GET['id'] : $default;
$furl = basename($furl);
header('Location: http://www.yoursite.com/download/'.$furl.'.zip');
?>
<div align="center"><b>Download is in progress</b><br />
<img src="load.gif" width="32" height="32" /><br />
If the download doesn't starts in 5 sec then <a href="<?php echo('http://www.yoursite.com/download/'.$furl.'.zip'); ?>">Click Here</a> to download manually.</div>

It is a simple script right just make the files, upload them and test them out. You'll figure it out very easily.

P.S.- The script is still a work in progress. I have still some work to do on it to make it secure. It is basically for those who want to earn some cash, if you really want to earn your living of selling the I suggest you look for a more secure shopping cart.

Tuesday, December 14, 2010

Price India.In

Check out this cool site. You can find the price of any thing (I MEAN ANYTHING) sold in India, from computers (which I M interested in) to cars, toys, electronics and much much more.
I found this site a little interesting so here is D link http://www.priceindia.in/.

Monday, November 1, 2010

SWF rotator version of the Ad Rotator script

Earlier I posted a simple script 2 rotate banner ads randomly by javascript.
U can use it 2 place jpgs, gifs & pngs, but 2 place flash files U need some changes 2 B done in them, so I M posting this version 4 placing swf files.
Again this is very simple script & in no way I M sure that it might B appealing 2 U. But it will work & I have tested it on many browsers and it is simple.
So here is D code

// Swf rotator script created by Tanmay Das
// Script © Copyright, Tanmay Das.com
// Visit http://tj4119.blogspot.com/
// Ad your swfs here

// e.g. 'ad1.swf',

// DO NOT PUT a (,) at the end

randomAd(['swf1.swf','swf2.swf','swf3.swf']);

// DO NOT EDIT ANYTHING BELOW

function random(limit){
return Math.floor(Math.random()*limit);
}
function randomSwf(swfArr)
{
var swfSrc, swfW, swfH, r;
r = random(swfArr.length / 1);

swfSrc = swfArr[r * 1];
swfW = 180; // You can change the swf width
swfH = 150; // You can change the swf height
document.write('<embed src='+swfSrc+' width='+swfW+' height='+swfH+' autostart=true loop=true></embed><br>
<a href="www.tj4119.blogspot.com" title="Created By Tanmay Das" target="_blank">Designed By Tanmay Das</a>');
}

Sunday, October 31, 2010

Simple Ad Rotator Script

Sorry I was offline 4 some time but that time gave me some thought & I went creative. I designed 30 web-templates ready to B sold. But also have created a simple script to rotate image banners.

It is not required if U use Google™ Adsense, but if U have your own ads than It'll B very useful. It is simple to use & doesn't requires any database or PHP.

So if U want it then here it is.

// Ad rotator script created by Tanmay Das
// Script © Copyright, Tanmay Das
// Visit http://tj4119.blogspot.com/
// Ad your images, links and title here

// e.g. 'ad1.jpg','www.link1.com','Title Goes here',

// DO NOT PUT a (,) at the end

randomAd([
'ad1.jpg','link1','title1',
'ad2.jpg','link2','title2',
'ad3.jpg','link3','title3'
]);

// DO NOT EDIT ANYTHING BELOW

function random(limit){
return Math.floor(Math.random()*limit);
}

function randomAd(imgArr)
{
var imgSrc, imgW, imgH, imgUrl, imgTit, r;
r = random(imgArr.length / 3);
imgSrc = imgArr[r * 3];
imgW = 180; // You can change the ad width
imgH = 150; // You can change the ad height
// I decided that all D banners in one area of a site will B of D same size, so I made the size universal 4 all.
imgUrl = imgArr[(r * 3)+1];
imgTit = imgArr[(r * 3)+2];

document.write('<a href='+imgUrl+' title='+imgTit+' target=_blank><IMG SRC='+imgSrc+' WIDTH='+imgW+' HEIGHT='+imgH+'></a><br><a href="www.tj4119.blogspot.com" title="Created By Tanmay Das" target="_blank">Designed By Tanmay Das</a>');
}

Just save it as adfile.js and add the link to anywhere on your site where U want the ads.
Remember that all the banners should B of D same size & change the width & height at imgW &imgH.