Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language Icon... I broke it.


theirishewe

Recommended Posts

Posted

This has to rank on the top ten all-time stupid things - I have lost the little English flag icon. Can't find it. Anywhere!

 

I have everything backed up, even have a few mods installed, and here I was thinking that this PHP stuff ain't so scary after all... WRONG! I have no idea where to upload my flag icon (which I can ifnd on my local hard drive, just not on the server.) Anyone care to take this one up?

Posted

/languages/english/images/icon.gif

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Bumping up - I still can't figure this one out... no matter where I upload it to, my little flag icon is busted! Shop website listed above, could this be a permission issue? Should I try another graphic (I did download a clean icon GIF file from this website, can make my own to that size though.)

 

This has to be a forest-for-the-trees thing, because I just can't see it :)

Posted
Bumping up - I still can't figure this one out... no matter where I upload it to, my little flag icon is busted! Shop website listed above, could this be a permission issue? Should I try another graphic (I did download a clean icon GIF file from this website, can make my own to that size though.)

 

This has to be a forest-for-the-trees thing, because I just can't see it :)

 

You somehow lost the information which name the flag has.

 

Check in /includes/boxes/languages.php if the code is still like this:

 

<?php
 if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
 }

 $languages_string = '';
 reset($lng->catalog_languages);
 while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>' . ' ';
 }

 

The image has to be /includes/languages/english/images/icon.gif

 

Hope that helps,

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Posted

Still haven't found an answer to this - my icon for the English language flag is still not showing, in admin or on the store site itslef. I've backed up and reinstalled the languages.php file, still not luck. Is there another file somewhere that might referance this graphic? Or a spot in the admin section where I could pull it out (or would I have to manually remove all referance to the icons and languages in many files?)

  • 1 year later...
Posted
Still haven't found an answer to this - my icon for the English language flag is still not showing, in admin or on the store site itslef. I've backed up and reinstalled the languages.php file, still not luck. Is there another file somewhere that might referance this graphic? Or a spot in the admin section where I could pull it out (or would I have to manually remove all referance to the icons and languages in many files?)

The reason your language flags may not be showing up could be in your database.

 

Go to the languages table in your osCommerce database and browse the table.

 

Check to make sure "icon.gif" is the value of the "image" field.

 

If it's blank update the value of the image field to "icon.gif' and this may fix your problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...