Author Topic: MOD: Language Select Anywhere  (Read 4312 times)

0 Members and 1 Guest are viewing this topic.

Offline darvid

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • KNOWTEBOOK.COM - Community for webdeveloper
MOD: Language Select Anywhere
« on: September 12, 2007, 07:27:13 PM »
Hi,

this is a simply language-selection tool i have written for my site, because all other language mods didnt work for example in the header and needed much more adjustments!

FEATURES:
- Easy adjustments
- Add any language u want
- Put it in your template where u want
- No limitations


USING:
1. ADD the languages u need in your language folder as usual
2. Put the following code in your template files, where u want it
3. Edit the path to your 4images gallery. (my is "/photos/")
4. Nothing, thats it!!


Code: [Select]
<?php 
  
// Je nach Dateiendung füge Sprachvariabel mit Fragezeichen oder Undzeichen an die Dateiendung
  if ($_SERVER["REQUEST_URI"] == "/photos/")
  {
  $zeichen "index.php?";
  }
  
  else
  {
  $zeichen "&";
  }
   
?>
 
<a href="<?php echo $_SERVER["REQUEST_URI"]; echo "$zeichen"?>l=deutsch">Deutsch</a>
<a href="<?php echo $_SERVER["REQUEST_URI"]; echo "$zeichen"?>l=english">English</a>





Feedback appreciated! :roll:
« Last Edit: September 13, 2007, 01:05:17 AM by c-bass »
/* KNOWTEBOOK - BoostYourself community for webdeveloper
/* http://www.knowtebook.com

Integration von Wordpress Blog, PHPBB Forum und 4Images Bildergalerie:
http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/
DEMO: http://www.pilotenbilder.de/

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: MOD: Language Select Anywhere
« Reply #1 on: September 12, 2007, 09:06:38 PM »
Quote
Feedback appreciated!

Try this MOD ?

http://www.4homepages.de/forum/index.php?topic=4743.0

...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: MOD: Language Select Anywhere
« Reply #2 on: September 13, 2007, 01:45:26 AM »
What is prob with V@no MOD ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: MOD: Language Select Anywhere
« Reply #3 on: September 14, 2007, 01:35:33 AM »
Quote
method B didnt work

Is say ? Is do ? Your method no use VARS, no use redirect function of 4images ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: MOD: Language Select Anywhere
« Reply #4 on: September 14, 2007, 11:41:59 AM »
Ok but if use this with no $site_sess ... session expire ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?