www.question-defense.com | Login/Register
Translate to English Übersetzen Sie zum Deutsch/German Переведите к русскому/Russian Μεταφράστε στα ελληνικά/Greek Vertaal aan het Nederlands/Dutch ترجمة الى العربية/Arabic 中文翻译/Chinese Traditional 中文翻译/Chinese Simplified 한국어에게 번역하십시오/Korean 日本語に翻訳しなさい /Japanese Traduza ao Português/Portuguese Traduca ad Italiano/Italian Traduisez au Français/French Traduzca al Español/Spanish

Posts Tagged “PHP”

The Taragana Translator Plugin is the best translation software I have found for Wordpress . Not only is it easily customizable but for only $30 you can have your entire blog translated into 13 languages in less than 15 minutes. It is however beneficial to customize some of the settings and especially to add a bit to the design. I prefer having the flags appe ar at the top of the center column of a three column WordPress layout. Below I have listed some tips on how to easily customize the display of the flags.

The first thing to do is have display the actual flags. The major holdup I had was the home flag, in my case the English or US flag, was not displaying the correct link. No matter what I did it would display the URL of the translation I was currently using. So if I was viewing a German translation page then the US flag would display / de . I finally figured out that you have to wrap your flag display with text to not translate a section of co de . The text to use for not translating is shown below in an example.

Read the rest of this entry »

Tags: , , , , , , , , ,

Comments No Comments »

It is fairly easy to add Google Adsense ads to the WP-PDA plugin for WordPress. If you follow the easy steps below you will have Google ads showing up in no time with WP-PDA. You will be required to edit the source code for the WP-PDA WordPress plugin so make sure to back things up before you start. One thing to note is the fact that you can only have one Google Mobile Adsense ad at a time currently.

Adding Google Adsense Ads for WP-PDA iPhone/Touch Browsers:

  1. Backup Files: Backup any file before you attempt to modify it.
  2. Create Google Adsense for Mobile: Visit this link and follow the instructions to create the Google Adsense ad for your mobile content. Be sure to specify PHP for the last step.
  3. Read the rest of this entry »

    Tags: , , , , , , , , , , , ,

Comments No Comments »

This article describes how to add a link to the Information sidebox that links to a new page in the defined pages section. You will be required to create files, modify files, and insert SQL code into the MySQL database.

In the instructions below yourpage or YOURPAGE is the title of the page you are adding. For instance if you wanted to add one called technology you would replace YOURPAGE and yourpage with technology and TECHNOLOGY. The actual file would be technology.php.

1. Modify File:

Modify the following file <zencart-root>/includes/filenames.php by adding the following two lines of code:

define('FILENAME_DEFINE_YOURPAGE', 'define_yourpage');
define('FILENAME_YOURPAGE', 'yourpage');

above…

define('FILENAME_DEFINE_PRIVACY', 'define_privacy');
define('FILENAME_PRIVACY, 'privacy');

…respectively.

Read the rest of this entry »

Tags: , , , , , , , , , ,

Comments No Comments »

When attempting to process an order using ClientExec you may get error messages like the following:

An error has occurred with the given operation

Type: Warning (2)
Description: mysql_real_escape_string() expects parameter 1 to be string, object given
Request: POST /signup.php
Script: <clientexec-root>/newedge/classes/NE_Mysql.php
Line Number: 198
Stack:
var/www/web2/web/client/newedge/classes/NE_Mysql.php(138) : regexp code (1) : ne_mysql::escape_string
<clientexec-root>/newedge/classes/NE_Mysql.php (138) : preg_replace
<clientexec-root>/classes/domain.php (1463) : ne_mysql::query
<clientexec-root>/modules/admin/views/Signup_4_CreateAccounts.php (424) : domain::updaterecord
<clientexec-root>/modules/admin/views/Signup_3_Validation.php (316) : Signup_4_CreateAccounts::dispatch
<clientexec-root>/newedge/classes/NE_Controller.php (167) : Signup_3_Validation::dispatch
<clientexec-root>/newedge/front.php (76) : ne_controller::processview
<clientexec-root>/signup.php (70) : require

In this situation I was using ClientExec with Authorize.net as the payment gateway. The basic error revolved around the Authorize.net processing needing mcrypt and not being able to find it on the server. To resolve this issue install php-mcrypt on the server using the below commands.

shell# yum install php-mcrypt

Make sure to restart apache!

shell#/etc/init.d/httpd restart

That should resolve your issue if you are in fact using ClientExec with the  Authorize.net payment module.

Tags: , , , , , ,

Comments No Comments »

I recently upgraded a customer management software called ClientExec from a very old version (2.4.9__2.5beta4) to the latest stable version (ClientExec 3.1.4).  It had been a long time since the administration type settings had been updated but it was time to clean things up. One area lets you manage billing types which I was about to attempt. You can either delete or edit current entries or add a new entry. First I attempted to add a new entry and was greeted with the error below.

billingtype


An error has occurred with the given operation

Type: User Error (256)
Description: QUERY: INSERT INTO billingtype (id, name, description, detail) VALUES('2147483648','Test','Test','Test') - ERROR: Duplicate entry '2147483647' for key 1
Request: POST /client/index.php?fuse=billing&action=AddBillingType
Script: client/newedge/classes/NE_Mysql.php
Line Number: 154
Stack:
client/modules/billing/models/BillingType.php (50) : ne_mysql::query
client/modules/billing/actions/AddBillingType.php (16) : billingtype::update
client/newedge/classes/NE_Controller.php (200) : addbillingtype::dispatch
client/newedge/front.php (74) : ne_controller::processaction
client/index.php (4) : unknown

Read the rest of this entry »

Tags: , , , ,

Comments No Comments »