Page: | 1 |
Topic:

language link with picture

tiux
See profile of: tiux
2008-10-21 20:08:28
Votes: 0
Vote answer in plus Vote answer in minus
Hello.

Is it possible to add different language link with picture?

For example i would like to add 3 language link to footer but not only text but with pictures.

Thank you!

  » Quick.Cart v3.x
treewood
OpenSolution
See profile of: treewood
2008-10-22 07:55:12
Votes: 0
Vote answer in plus Vote answer in minus
Yes it is possible. Read this:
http://opensolution.org/Quick.Cart/docs/?id=instruction#languages_management

And change this:
<a href="?sLang=pl">polski</a>
<a href="?sLang=en">english</a>
to:
<a href="?sLang=pl">PUT HERE IMAGE CODEi</a>
<a href="?sLang=en">PUT HERE IMAGE CODE</a>
tiux
See profile of: tiux
2008-10-22 20:03:50
Votes: 0
Vote answer in plus Vote answer in minus
Big thanks!
liannetijmes
See profile of: liannetijmes
2009-04-05 20:34:41
Votes: 0
Vote answer in plus Vote answer in minus
Sorry, i don't understand in which file and where in that file you have te place that code!

Quick.cms

thanks!
ktomov
See profile of: ktomov
2009-04-05 21:32:03
Votes: 0
Vote answer in plus Vote answer in minus
templates/container.tpl
You can place it wherever you like. Mine is under $sMenu1
pete007
See profile of: pete007
2009-09-30 13:28:54
Votes: 0
Vote answer in plus Vote answer in minus
Works great as Ktomov said

<a href="?sLang=en"><img src="templates/img/en.gif"></a>
3dfx
See profile of: 3dfx
2009-12-18 12:06:04
Votes: 0
Vote answer in plus Vote answer in minus
Sorry for bringing this old topic up, but my question is related to it:

Is it possible to retain the "?sLang=en" string on all English URLs to enable better indexing?

Thank you!
cgan
See profile of: cgan
2009-12-18 15:13:10
Votes: 0
Vote answer in plus Vote answer in minus
Try this: Check in "Admin/Settings/Option". There you'll find "Language parameter in URL"
Change it to "Yes".

-------------------------------------------------------
cgan
beholder
See profile of: beholder
2009-12-18 18:06:01
Votes: 0
Vote answer in plus Vote answer in minus
Yes Cgan, that is, in the new versions of QC. 3dfx, I suggest an upgrade to 3.4. Or we have to do it the hard way.
3dfx
See profile of: 3dfx
2009-12-18 23:32:33
Votes: 0
Vote answer in plus Vote answer in minus
Thank you very much for your reply!
Unfortunately I really don't want to mess with the site any more - at last everything is up and running smoothly... Is the "hard" way really hard?
beholder
See profile of: beholder
2009-12-19 19:34:40
Votes: 0
Vote answer in plus Vote answer in minus
This solution is part of my checkUpdate mod, but since there is now language parameter enabled in the newer versions of QC, I am releasing it now as a free solution:

1. Change code:
$aData[sLinkName]
to:
$aData[sLinkName]&amp;sLang=$config[language]
in following template files:
templates/menu2.tpl (block LIST)
templates/menu3.tpl (block LIST)
templates/menu4.tpl (block LIST)
templates/menu_X.tpl (only if you use EasyNavigation plugin, edit block LIST)
templates/orders_basket.tpl (block BASKET_LIST)
templates/orders_form.tpl (block ORDER_PRODUCTS_LIST)
templates/pages_default.tpl (blocks SUBPAGES_LIST_1, SUBPAGES_LIST_2, PRODUCTS_LIST, PRODUCTS_IMAGE)
if using plugin RandomProduct also templates/container.tpl (block RANDOM_PRODUCT)
and perhaps also in templates for emails to admin and customer


2. modify this line in core/pages.php:
$this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'">'.$this->aPage s[$this->aPagesParents[$iPage]]['sName'].'</a>';
to this:
$this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'&amp;sLang='.$GLOBALS[' config']['language'].'">'.$this->aPages[$this->aPagesParents[$iPage]]['sName'].'</a>';

3. modify this line in core/products.php:
$sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'">'.$oPage->aPages[$iPage]['sName'].'< ;/a>';
to this:
$sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'&amp;sLang='.$GLOBALS['config']['language'].'" >'.$oPage->aPages[$iPage]['sName'].'</a>';
beholder
See profile of: beholder
2009-12-19 19:35:56
Votes: 0
Vote answer in plus Vote answer in minus

1. Change code: 
$aData[sLinkName]
to:
$aData[sLinkName]&amp;sLang=$config[language]
in following template files: 
templates/menu2.tpl (block LIST)
templates/menu3.tpl (block LIST)
templates/menu4.tpl (block LIST)
templates/menu_X.tpl (only if you use EasyNavigation plugin, edit block LIST)
templates/orders_basket.tpl (block BASKET_LIST)
templates/orders_form.tpl (block ORDER_PRODUCTS_LIST)
templates/pages_default.tpl (blocks SUBPAGES_LIST_1, SUBPAGES_LIST_2, PRODUCTS_LIST, PRODUCTS_IMAGE)
if using plugin RandomProduct also templates/container.tpl (block RANDOM_PRODUCT)
and perhaps also in templates for emails to admin and customer


2. modify this line in core/pages.php:
      $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'">'.$this->aPage s[$this->aPagesParents[$iPage]]['sName'].'</a>';
to this:
      $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'&amp;sLang='.$GLOBALS[' config']['language'].'">'.$this->aPages[$this->aPagesParents[$iPage]]['sName'].'</a>';<b r />

3. modify this line in core/products.php:
          $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'">'.$oPage->aPages[$iPage]['sName'].'&lt ;/a>';
to this:
          $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'&amp;sLang='.$GLOBALS['config']['language'].'" >'.$oPage->aPages[$iPage]['sName'].'</a>';
beholder
See profile of: beholder
2009-12-19 19:39:14
Votes: 0
Vote answer in plus Vote answer in minus
weird, forum fucks up my code, but it the upper code should be more readable than the one added later. Just remove the unnecessary ; in the first code line of the step #3.
3dfx
See profile of: 3dfx
2009-12-22 07:48:32
Votes: 0
Vote answer in plus Vote answer in minus
Once again - thank you a lot - I'll try this today and share the results :)
3dfx
See profile of: 3dfx
2009-12-22 10:15:21
Votes: 0
Vote answer in plus Vote answer in minus
OK - everything seems to work perfect - I only replaced

&amp;

with

?

everywhere in the code. 10x!
beholder
See profile of: beholder
2009-12-24 15:02:17
Votes: 0
Vote answer in plus Vote answer in minus
you probably meant with &
but ok
embaka
See profile of: embaka
2010-02-01 15:55:06
Votes: 0
Vote answer in plus Vote answer in minus
Hello,
I want to add 3rd language, but not only in the user area, but also in administration. I created db files needed in their language, but it went into administration and then change my write this:

Fatal error: Call to undefined function de_pages() in D:\xampp\htdocs\mag\mag\core\pages.php on line 299

version is 3.5. tell me how to fix it
embaka
See profile of: embaka
2010-02-01 16:13:10
Votes: 0
Vote answer in plus Vote answer in minus
indeed in part as a user adds another language shows the same
Fatal error: Call to undefined function de_pages () in D: \ xampp \ htdocs \ mag \ mag \ core \ pages.php on line 299
Page: | 1 |
 


If You want to do this operation, please log in first ».
If You don't have an account please register ».
Valid XHTML 1.0! Valid CSS! version: 2.2.0-alfa | powered by Quick.Forum