Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Category Archives: Opensource

Navman white or black screen fix


When my unit turns on, it only displays a white or black screen. How can I fix this?

To resolve the white screen issue on your unit, please follow the steps below:

1. Connect Navman GPS to PC via mini-USB cable.
2. Go to ‘Start’
3. Go to ‘My Computer’
4. Open the Navman Unit
5. Open the ‘Navman’ folder
6. Open the ‘Database’ folder
7. Delete the following file only – ‘database.db’
8. Close the folders
9. Disconnect the mini-USB cable then restart the Navman GPS by sliding the switch to ‘Restart’ then back to ‘On’ after 10 seconds

Please Note: The database.db file will be generated automatically once the folder is closed.

Resource: link

Javascript Validate two input fields with the same name?

<div style=”” id=”shipping-new”>
<table class=”form”>
<td><span class=”required”>*</span> Post Code:</td>
<td><input type=”text” class=”large-field” value=”” name=”postcode”><span class=”error”>Sorry, we cannot deliver to your area!</span></td>
</div> Read more of this post

Online ICON (*.ico) File Creator

iConvertv2.9 converts and creates Windows, Mac and Linux icons in one step!

iConvert Icons has been carefully designed to make it as easy as possible to create and convert icons. It creates icons in all of the popular icon formats, including png, ico, and icns. It is also the only icon converter to support converting directly from SVG. All you need to do is drag and drop – iConvert Icons converts the images into icons with only a single click. 

Free Canon DSLR Photgraphy Course

Canon’s Photography 101 online class:

Topics covered include:

  1. Shooting Modes
  2. Aperture
  3. Shutter-Speed
  4. ISO
  5. Depth of field
  6. Lenses (normal, telephoto, wide-angle, macro, fish-eye, tilt-shift)
  7. Sensor size (APS-C, APS-H, Full-frame)

It’s very good reading. I went and read the whole web page and I found a couple nuggets.

This is a great free resource for beginner & intermediate photographers.

২০১৩ সালের সেরা ৫০ ওয়েবসাইট

২০১৩ সালের সেরা ৫০ ওয়েবসাইট

 প্রতিবছর মার্কিন প্রকাশনা টাইম ম্যাগাজিন বিভিন্ন ক্ষেত্রে সেরাদের তালিকা প্রকাশ করে। সম্প্রতি টাইম ম্যাগাজিনের দৃষ্টিতে ২০১৩ সালের সেরা ৫০টি ওয়েবসাইটের তালিকা প্রকাশ করেছে। এতে ১০টি ক্যাটাগরিতে ৫০টি ওয়েবসাইট শীর্ষ তালিকায় এসেছে। সেসব ওয়েবসাইট নিয়েই এবারের মেইনবোর্ড। দ্বিতীয় কিস্তিতে আজ থাকছে ওয়েব টুলস এবং সামাজিক যোগাযোগের সাইট|

ওয়েব টুলস বিষয়ক সাইট


গুগল যেখানে অনেক মানুষের প্রিয় আরএসএস ফিডার নিয়ে আশা-আকাঙ্ক্ষার প্রতিফলন ঘটাতে পারেনি সেখানে এর উত্তম প্রতিস্থাপন করার সম্ভাবনা দেখা দিয়েছে। বলা হচ্ছে, এই সাইটটি গুগলের তুলনায় ভালো আরএসএস ফিডারের সার্ভিস চালু করেছে এবং তা হালনাগাদসহ এই সার্ভিসের উন্নয়ন ঘটাতে তৎপর রয়েছে।

মাই পারমিশন্স 

ওয়েবে এটি একটি কমিউনিটি সার্ভিস, যেখানে ব্যক্তিগত নিরাপত্তা সংরক্ষিত রেখে ফেইসবুক, টুইটার, গুগল এবং অন্যান্য সামাজিক নেটওয়ার্ক সাইটে আপনার অ্যাকাউন্ট ব্যবহারের অনুমতি চাইবে। আর অনুমতি দেওয়া হলে লিংকের মাধ্যমে নির্দিষ্ট তথ্য এক্সেস করা যাবে। যখন আপনার ফেইসবুকসহ অন্যান্য অ্যাপস হতে আপনার ব্যক্তিগত তথ্য এক্সেস করা হবে তখন স্বয়ংক্রিয়ভাবে আপনি অ্যালার্ট পাবেন এবং চাইলে একটিমাত্র ক্লিকের মাধ্যমে তা মুছে ফেলতে পারবেন। ব্যক্তিগত তথ্যসমূহ সুরক্ষিত রাখতে এই টুল ব্যবহার করা যেতে পারে।
Read more of this post

Ext.NET Examples Explorer (Version 1.6)

How to show the default cookie set page if you are not allowed to visit a page

setcookie("testcookie", "testvalue");
if(!isset( $_COOKIE['testcookie'] ) && $_SERVER['SCRIPT_NAME'] != '/enable-cookies.php' && $_SERVER['SCRIPT_NAME'] != '/index.php'  && $_SERVER['SCRIPT_NAME'] != '/contact_us.php') tep_redirect(tep_href_link('enable-cookies.php'));

Bluehost error: [an error occurred while processing this directive]


For the benefit of anyone encountering a similar problem, try the steps that follow:

– Go to cPanel
– Open File Manager from Files section
– Navigate to domain folder
– Check “Perms” column on far right hand side
– Files should be set to: 0644 (this is the UNIX file permissions)
– Folders should be set to: 0755

This will change your file permissions to their proper settings for the Bluehost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell Bluehost to parse these files as PHP. Do this using Apache Handlers in cPanel:

HANDLER: application/x-httpd-php5s
EXTENSIONS: .php .htm .html

Opencart coupon history not working with Paypal

in catalog/model/checkout/coupon.php


  public function getCoupon($code) {



 public function getCoupon($code,$noverify=0) {

AND change


       if ($status) {
             return array(



       if (($status)||($noverify)) {
             return array(

Next, in catalog/model/total/coupon.php in the confirm function right near the bottom change


    $coupon_info = $this->model_checkout_coupon->getCoupon($code);



    $coupon_info = $this->model_checkout_coupon->getCoupon($code,1);

Here is the VQMod xml file:

<?xml version="1.0" encoding="utf-8"?>
<id>Fix Coupon Codes (so they register after using paypal or similar payment gateway)</id>
<author>Sanjoy Roy </author>
<file name="catalog/model/checkout/coupon.php">
<search position="replace"><![CDATA[ public function getCoupon($code) { ]]></search>
<add><![CDATA[ public function getCoupon($code, $verify = true) { ]]></add>
<search position="replace"><![CDATA[ if ($status) { ]]></search>
<add><![CDATA[ if ($status || $verify === false) { ]]></add>

<file name="catalog/model/total/coupon.php">
<search position="replace"><![CDATA[ $coupon_info = $this->model_checkout_coupon->getCoupon($code); ]]></search>
<add><![CDATA[ $coupon_info = $this->model_checkout_coupon->getCoupon($code, false); ]]></add>

.htaccess for CMSMS

 Options +FollowSymLinks
 DirectoryIndex index.htm index.html index.php
 Options -Indexes 
  order allow,deny
  deny from all 
 ErrorDocument 403 /forbidden403.shtml
 ServerSignature Off

Magento – Terms & Condition Popup for Category Page Link

jQuery Library include:


Javascript code:

	$('.category-box a').click(function() {					
		//$( "#dialog:ui-dialog" ).dialog( "destroy" );	
		vlink = this.href;
		if (TERMS_CONDT_CNT == 0){		
		$( "#dialog-confirm" ).dialog({
			resizable: false,
			modal: true,
			buttons: {
				"Accept": function() {
					$( this ).dialog( "close" );
					document.location = vlink;
				"Decline": function() {
					$( this ).dialog( "close" );
					return false;
		if (TERMS_CONDT_CNT == 0) return false; else return true;

HTML Code:
<!– popup –>
<div id="dialog-confirm" title="Accept Terms and Conditions: " style="display:none;">
<p style="overflow:auto;">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<!– popup –>
<!– front-end link page –>
<div id="categories">
<div class="col_full">
<div class="listing">

<div class="category-box">
<a href="#trucks.html"><div class="category-image-box">
<img height="97" border="0" src="media/catalog/category/cat-image_1.jpg">
<div class="category-name">

<div class="category-box">
<div class="category-image-box">
<a href="#/workmate.html"><img height="97" border="0" src="/media/catalog/category/cat-image_25.jpg"></a>
<div class="category-name">
<p><a href="#/workmate.html"> Workmate</a></p>
<!– front-end link page –>

How to report to google Publishing Protection Team when site is showing Reported Attack Page! (FireFox)

Enter the URL:
Type the captcha code
In comment area, write:
Dear Phishing Protection Team,
We are recently getting “Reported Attack Page!” on our site:
We have recently cleaned the site and we can browse using Internet Explorer.
Please review our site and remove the publishing error.
Thank you.
Company Name
Click on “Submit Report” when done.

Magento – Where is the mysql configuration file?

<date><![CDATA[Wed, 07 Jul 2010 05:17:40 +0000]]></date>

Magento – How to Enable or Disable Developer’s “Template Path Hints” using phpmyadmin with admin access?

Template Path Hints:

FROM `a39085_db`.`core_config_data`
`config_id` LIKE ‘dev_debug_template_hints’
OR `scope` LIKE ‘dev_debug_template_hints’
OR `scope_id` LIKE ‘dev_debug_template_hints’
OR `path` LIKE ‘dev_debug_template_hints’
OR `value` LIKE ‘dev_debug_template_hints’
LIMIT 0 , 30
UPDATE `a39085_db`.`core_config_data` SET `value` = ‘0’ WHERE `core_config_data`.`config_id` = 467 LIMIT 1

Creloaded Payment Modules sorting

File Name: payment.php
Function Name: function selection() {}
Line: 240
Copy and paste the folowing, also do not forget to change your module names within single quotes:

So, anything else will be order just below:

$include_modules_short =  array();
$include_modules = $this->modules;
for($i=0; $imodules = $include_modules_short;$i++){                                    

	if($include_modules[$i] == 'paypal.php'){

	$include_modules_short[1] = $include_modules[$i];

	}else if($include_modules[$i] == 'transfer.php'){

	$include_modules_short[2] = $include_modules[$i];

	}else if($include_modules[$i] == 'moneyorder.php'){

	$include_modules_short[3] = $include_modules[$i];

	}else if($include_modules[$i] == 'nabapi.php'){

	$include_modules_short[0] = $include_modules[$i];


	$include_modules_short[$i] = $include_modules[$i];


$this->modules = $include_modules_short;

CMS MS – iframe POST method

Magento – Search Results Page 3 column layout display

Magento – Search Results Page 3 column layout display:

Change this file:
change: <action method="setTemplate"><template>page/2columns-right.phtml</template></action> by
<action method="setTemplate"><template>page/3columns.phtml</template></action>

Magento – Display 3 records per row in advance search result page

File Path: /public_html/app/design/frontend/default/f001/template/catalog/product/list.phtml

$_columnCount = 3;//$this->getColumnCount();

Magento – Search Results Grid Different From Product Grid Listing

From what I can see, it doesn’t look like the Result.php block loads the short description in the _getProductCollection function. The getShortDescription will work, but you just need to tell the block to load that info so that you can call it. Open up app->core->Mage->CatalogSearch->Block->Result.php. You should see the following function:

protected function _getProductCollection()
        if (is_null($this->_productCollection)) {
            $this->_productCollection = $this->_getQuery()->getResultCollection()


        return $this->_productCollection;

As you can see, the short_description is not part of the select query. You can change ->addAttributeToSelect(’description’) to ->addAttributeToSelect(’short_description’), or you can add ->addAttributeTo Select(’short_description’) entirely. Of course, proper conventions would say that you should ammend the function via the local code pool as to preserve the integrity of your changes across future upgrades, but this’ll give you an idea as to how to get the short_description to show up.

Flex SDK

Flex is a highly productive, open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and operating systems.

More to read from Flex SDK – Adobe Open Source

Flex SDK

Flex is a highly productive, open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and operating systems.

More to read from Flex SDK – Adobe Open Source

Online shop e-commerce solution – osCommerce

osCommerce is an online shop e-commerce solution that offers a wide range of out-of-the-box features that allows online stores to be setup fairly quickly with ease, and is available for free as an Open Source based solution released under the GNU General Public License.

osCommerce was started in March 2000 and has since matured to a solution that is currently powering 11,826 registered live shops around the world.

Today, osCommerce has been taken to the next level, moving towards an e-commerce framework solution that not only remains easy to setup and maintain, but also making it easier for store administrators to present their stores to their customers with their own unique requirements.

Download Link is here.


SourceForge is your location to download and develop free open source software.

About SourceForge

  • About SourceForge
  • Contact Us
  • Jobs @ SF
  • Advertising

Find Software

  • Search Software
  • Browse by Category
  • Most Popular Overall
  • Most Active Overall

Develop Software

  • Create Project
  • Project Help Wanted
  • New Projects


  • SourceForge Forums
  • The Blog
  • @sourceforge on Twitter
  • Calendar


  • Site Documentation
  • Submit Support Requests
  • Site Outages
  • Feedback


How do I recover my Joomla admin password?

A. You cannot recover the existing password, but you can reset it to a new password. The passwords are stored using a one-way MD5 hash which prevents recovering the password.
But you can reset the password by editing the password field in the database.Set the password to a known value and then you may log-in using that new password.

The password is stored in the MySQL database jos_users table password field. (change this for your table prefix if different) Use a MySQL utility such as phpMyAdmin or MySQL Query Browser to edit this field. Open the table, find your admin username, and then select that row for editing. The password must be hashed, you cannot simply enter text into this field. Read more of this post

%d bloggers like this: