opencart admin problem – netfirms hosting

opencart admin problem – netfirms hosting –  this is common problem in netfirms hosting — when you login opencart admin with correct user name and password. but you cant see the admin panel dashboard – its bcoz of the session problem.

Try changing the session path to a folder on your server instead using a php.ini file.


go to system – library – session.php


and use this code


$garbage_timeout = 3600;
ini_set(‘session.gc_maxlifetime’, $garbage_timeout);
ini_set(‘session.save_path’,’ur server path/sessions’);
session_set_cookie_params(0, ‘/’);

use your server path

need more help?


contact us :





wordpress error – 406 Not Acceptable This request is not acceptable Powered By LiteSpeed Web Server LiteSpeed Technologies

if your server run on LiteSpeed Web Server . and if you running wordpress .. you may see this error message while inserting images into port/pages. and in that case

If you have ftp access, edit your .htaccess file to turn Mod Sec off:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

If you don’t, contact your webhost and ask them to do it for the folder containing your blog.


Combining Modalbox & CakePHP

I’m pretty sure this can be implemented more elegantly, but I’ll describe my attempt to unite Modalbox with CakePHP 1.2.

First example – a modal box view
This example shows the steps I’ve taken to flavour a freshly baked cake app with modalbox. The starting point is a customer model, a controller and some basic index, view and edit views.
Showing a cakephp view in a modalbox, is just a few snippets away. Just make sure you include prototype, scriptaculous and the modalbox javascript and the modalbox css file in the default layout…

echo $html->css('modalbox');
echo $javascript->link('prototype');
echo $javascript->link('scriptaculous.js?load=effects');
echo $javascript->link('modalbox');

Then create the appropiate link to the view you want to load inside the modalbox. For example, if you want to show customer details from the customers/index.ctp view:

# ...somewhere in the loop that lists customers:
echo $html->link('View', array('action' => 'view', $customer['Customer']['id']), array('title' => 'Customer details', 'onclick' => ", {title: this.title, width: 400}); return false;"));

Make sure you use the RequestHandler component so that the customer view is displayed in the ajax.ctp instead of the default.ctp layout. You can do this by making sure the following line is in /app/app_controller.php:

var $components = array('RequestHandler');

And… there you go! When you click the view link, the modalbox slides in, while the rest of the page dims to gray. When you hit the escape button, click the little ‘X’ or click anywhere in the gray area, the modal box slides back where it came from.

Ok, now forms!

This is where the example pages don’t seem to apply anymore. Or… this is where my concept of AJAX, CakePHP, Modalbox, etc. is fundamentally wrong… you tell me!

By calling an ‘edit’ view instead of the ‘view’ view, you’ve got yourselves a form inside the modalbox! Also very nice!
After submitting the edit form, you’ll get redirected to the index page again. That’s when the form validates.
Wait until you omit a required field. Instead of the index page, you get redirected to the edit form itself rendered in the ajax layout. There’s no single line of code yet that makes sure that the form will end up in the same modalbox.

To solve this, you need to replace the $form->create call in the edit view by $ajax->form. The form, starting with the tag generated by the Ajax helper, will submit using XMLHttpRequest instead of a normal HTTP request. In this way, the modalbox stays open and will be filled with whatever the form returns!

This was the form-helper call:

echo $form->create('Customer');

…and the ajax-helper equivalent:

echo $ajax->form('edit', 'post', array(
'model' => 'Customer',
'url' => array( 'controller' => 'customers', 'action' => 'edit'),
'update' => 'MB_content'

In order to make the Ajax helper available in the view, make sure you have included it in the controller:

var $helpers = array('Html','Javascript', 'Ajax');

I’m still wondering why the calls aren’t a little bit more alike…

This brings us one step closer…. or one step too far??
All content will be rendered inside the modalbox. We need to tell modalbox when it’s not needed anymore. For example, when the form validated.

This can be done with a small javascript function that we define in the Default.ctp layout:

function closeModalbox()
if ($('closeModalbox')) {
// hide the modal box
// refresh the current page
} else {
// resize to content (in case of validation error messages)
return true;

The function checks if there’s a div element with id=”closeModalbox”. If that is the case, it will close the modalbox and refresh the current page. Which, in itself is not so Ajax….(but it works great!)
If it can’t find the div element, it will resize the modalbox to it’s fresh content. To make sure the function is called, we can hook it into the Ajax form by adding the following line to the options array:

'complete' => 'closeModalbox()'

In the edit view, we need to make sure that the closeModalbox-div is echoed conditionally:

if (isset($closeModalbox) && $closeModalbox) echo "<div id='closeModalbox'></div>";

The $closeModalbox variable is, in his turn set from the controller after the data is successfully saved.

Last, but not least…. it’s relatively simple to be able to fall back to a non-ajax form.

And since you probably allready lost the overview, here’s the complete source code

i hope this can be implemented if yo want any form on pop-up box..


Design text logo in 5 easy steps by using Adobe Illustrator

It’s really very easy to design a simple text logo by using adobe illustrator.

So, We gonna create something like this :

Step 1: Outline your text :

Here is the text outlined.

Step 2: Offset your path:

Go to Object > Path >Offset Path

Enter a negative value in order to make the offset “inside” the original.

Click OK and there Illustrator does all the work for you.

Step 3: Fill your new path with white

Your new offset path should still be selected after you clicked OK, so now is the perfect time to make your fill. I used white, generally the universal “glossy” color.

Step 4:  Make your cut

With the rectangle tool, make a white rectangle that covers the part of the reflection you would like to remain visible.

Now, this is why I used a “white” rectangle. with the square still selected, go to Select>Same>Fill Color, and you will have selected everything you need for the cut.

Hit the “Crop” button in the Pathfinder window to get rid of all the paths that are outside of the rectangle. (Window>Pathfinder)

Our new look has now been made.

Step 5: Adjust the opacity

Lastly you will get something like this at the final stage.