gr2 Posted July 12, 2009 Share Posted July 12, 2009 (edited) feel free to use the images from my site at : http://ipwebgroup.com here is the code <a href="?language=English"><img src="templates/{$template}/images/gb.jpg" title="English" alt="English" width="31" height="21" border="0" /></a> <a href="?language=Greek"><img src="templates/{$template}/images/gr.jpg" title="Ελληνικά" alt="Ελληνικά" width="31" height="21" border="0" /></a> <a href="?language=Italian"><img src="templates/{$template}/images/it.jpg" title="Italiano" alt="Italiano" width="31" height="21" border="0" /></a> <a href="?language=German"><img src="templates/{$template}/images/de.jpg" title="Deutsch" alt="Deutsch" width="31" height="21" border="0" /></a> <a href="?language=French"><img src="templates/{$template}/images/fr.jpg" title="Français" alt="Français" width="31" height="21" border="0" /></a> <a href="?language=Spanish"><img src="templates/{$template}/images/es.jpg" title="Español" alt="Español" width="31" height="21" border="0" /></a> <a href="?language=Dutch"><img src="templates/{$template}/images/nl.jpg" title="Nederlands" alt="Nederlands" width="31" height="21" border="0" /></a> <a href="?language=Danish"><img src="templates/{$template}/images/dk.jpg" title="Dansk" alt="Dansk" width="31" height="21" border="0" /></a> <a href="?language=Swedish"><img src="templates/{$template}/images/se.jpg" title="Svenska" alt="Svenska" width="31" height="21" border="0" /></a> <a href="?language=Norwegian"><img src="templates/{$template}/images/no.jpg" title="Norsk" alt="Norsk" width="31" height="21" border="0" /></a> <a href="?language=Turkish"><img src="templates/{$template}/images/tr.jpg" title="Türkçe" alt="Türkçe" width="31" height="21" border="0" /></a> <a href="?language=Portuguese-pt"><img src="templates/{$template}/images/pt.jpg" title="Português " alt="Português " width="31" height="21" border="0" /></a> <a href="?language=Portuguese-br"><img src="templates/{$template}/images/br.jpg" title="Português do Brasileiro" alt="Português do Brasileiro" width="31" height="21" border="0" /></a> alt tags for ie title tags for ff feedback would be nice, thanks. enjoy. Edited July 12, 2009 by gr2 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 12, 2009 WHMCS Support Manager Share Posted July 12, 2009 Nifty! Don't forget to add to community addons in the client area! 0 Quote Link to comment Share on other sites More sharing options...
ljesh Posted July 12, 2009 Share Posted July 12, 2009 Can't the visitor stay on the same page when changing language? Because example you go to "announcements" in english, then you click french flag, it takes you to homepage in french. Otherwise, I like this 0 Quote Link to comment Share on other sites More sharing options...
spaceman Posted July 14, 2009 Share Posted July 14, 2009 so is ok. <a href="{$smarty.server.PHP_SELF}?language=German"><img src="templates/{$template}/images/flagen/flag_de.gif" alt="German" border="0" class="correct-png" style="margin-top: 4px;" /></a> 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 14, 2009 Author Share Posted July 14, 2009 Excellent! thank you for the solution spaceman. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 14, 2009 Author Share Posted July 14, 2009 <a href="{$smarty.server.PHP_SELF}?language=English"><img src="templates/{$template}/images/gb.jpg" title="English" alt="English" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Greek"><img src="templates/{$template}/images/gr.jpg" title="Ελληνικά" alt="Ελληνικά" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Italian"><img src="templates/{$template}/images/it.jpg" title="Italiano" alt="Italiano" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=German"><img src="templates/{$template}/images/de.jpg" title="Deutsch" alt="Deutsch" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=French"><img src="templates/{$template}/images/fr.jpg" title="Français" alt="Français" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Spanish"><img src="templates/{$template}/images/es.jpg" title="Español" alt="Español" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Dutch"><img src="templates/{$template}/images/nl.jpg" title="Nederlands" alt="Nederlands" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Danish"><img src="templates/{$template}/images/dk.jpg" title="Dansk" alt="Dansk" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Swedish"><img src="templates/{$template}/images/se.jpg" title="Svenska" alt="Svenska" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Norwegian"><img src="templates/{$template}/images/no.jpg" title="Norsk" alt="Norsk" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Turkish"><img src="templates/{$template}/images/tr.jpg" title="Türkçe" alt="Türkçe" width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Portuguese-pt"><img src="templates/{$template}/images/pt.jpg" title="Português " alt="Português " width="31" height="21" border="0" /></a> <a href="{$smarty.server.PHP_SELF}?language=Portuguese-br"><img src="templates/{$template}/images/br.jpg" title="Português do Brasileiro" alt="Português do Brasileiro" width="31" height="21" border="0" /></a> 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted July 14, 2009 Share Posted July 14, 2009 Looks good but where is this code placed please so that even fools like me can understand? 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 14, 2009 Author Share Posted July 14, 2009 basically, it would be according to your page design and where you would like it to be displayed. in your case, your installation at WHMCS URL http://whyoneearthwouldIdothat.com/noway pm me your installation url and ill have a look or just place it in a <div>paste code here</div> tag after the <body> tag in your header.tpl that is located in your chosen template folder. thank you for your feedback. 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted July 14, 2009 Share Posted July 14, 2009 Thank you very much gr2. I'm in the middle of supper atm but will pm you before I nod off. 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted July 15, 2009 Share Posted July 15, 2009 Nice mod, thank you 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 15, 2009 Author Share Posted July 15, 2009 Your welcome. Thank you for your feedback 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted July 20, 2009 Author Share Posted July 20, 2009 (edited) PS. no need to change the flag images unless one feels they must. instead, change the values from the code. ex. <img src="templates.... width="24" height="16" border="0" /> so it fits your style and size. original image size is 51x41, i use 24x16 for my interface. full download including images here: http://ipwebgroup.com/downloads.php?action=displaycat&catid=4 Edited July 20, 2009 by gr2 0 Quote Link to comment Share on other sites More sharing options...
zoilodiaz Posted August 22, 2009 Share Posted August 22, 2009 hello, some way this work selecting different templates for example if you have for English template portal-English and other template for Spanish Portal-Spanish when the client select English this automatic select portal-English template when click in Spanish automatic select Portal-Spanish this way you can have different images for each languages 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted August 22, 2009 Share Posted August 22, 2009 well to force someone to look at a different template all you need to do is as the link use http://www.yourdomain.com/index.php?systpl=spanish as an example the index.php and be any start page that you want it to be the main part is the ?systpl=your_custom_template_DIR: 0 Quote Link to comment Share on other sites More sharing options...
Mwki3 Posted August 23, 2009 Share Posted August 23, 2009 thank you, very good 0 Quote Link to comment Share on other sites More sharing options...
sino Posted March 24, 2010 Share Posted March 24, 2010 Hi, Thanks for your contributions. We can get the current php page name, say cart.php via {$smarty.server.PHP_SELF}. But for case like cart.php?a=add&domain=transfer, how can we get it and append "&language=English" to it,.i.e. cart.php?a=add&domain=transfer&language=English. Thank you in advance. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted June 15, 2010 Author Share Posted June 15, 2010 Updated download link with images: iPwebGroup.com 0 Quote Link to comment Share on other sites More sharing options...
rotame Posted December 18, 2010 Share Posted December 18, 2010 Updated download link with images: iPwebGroup.com Hi, The link not working File not found. Please contact support. can you update please 0 Quote Link to comment Share on other sites More sharing options...
wollymix Posted February 27, 2011 Share Posted February 27, 2011 links broken all 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted February 27, 2011 Author Share Posted February 27, 2011 working link http://ipwebgroup.com/members/downloads/1/WHMCS Best regards Andreas 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted February 27, 2011 Author Share Posted February 27, 2011 PS. Yslow dose not like the resized images so it's best to use the actual image size or edit the images to your required size for your design. Best regards Andreas 0 Quote Link to comment Share on other sites More sharing options...
Xenus Posted May 8, 2012 Share Posted May 8, 2012 Hi gr2, any chances on getting a working link? 0 Quote Link to comment Share on other sites More sharing options...
Jaggl Posted September 9, 2012 Share Posted September 9, 2012 yeah we need a working link plz 0 Quote Link to comment Share on other sites More sharing options...
postcd Posted September 20, 2013 Share Posted September 20, 2013 Please can you share new working link? 0 Quote Link to comment Share on other sites More sharing options...
Tengri Posted September 22, 2019 Share Posted September 22, 2019 (edited) On 7/14/2009 at 1:27 PM, spaceman said: so is ok. <a href="{$smarty.server.PHP_SELF}?language=German"><img src="templates/{$template}/images/flagen/flag_de.gif" alt="German" border="0" class="correct-png" style="margin-top: 4px;" /></a> It's good solution but doesn't work for "Announcement" page. When you read some article in english and try change language for example, to Azerbaijani you get back to homepage. Edited September 22, 2019 by Tengri 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.