Mehrsprachige HTML-Block

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Kemal, du hast das jetzt für 6.1. eingestellt, funzt das auch mit der 7?

      LG, Biggi

      UND NEBENBEI : danke, daß du immer so geile Mods findest!
    • RE: Mehrsprachige HTML-Block

      Original von kemal
      hallo
      hier nocht eine Nützliche free modul
      dieser modul ist auch 6.1.6 geeignet...

      Aktivieren, um mehrere Sprachen in HTML-Block und eine sehr einfache Mod-Unterstützung zu installieren

      boonex.com/unity/extensions/e...gual_HTML_Block

      gruss
      kem



      Danke, aber der Link funzt leider nicht.
    • RE: Mehrsprachige HTML-Block

      Original von mailkisses
      Original von kemal
      hallo
      hier nocht eine Nützliche free modul
      dieser modul ist auch 6.1.6 geeignet...

      Aktivieren, um mehrere Sprachen in HTML-Block und eine sehr einfache Mod-Unterstützung zu installieren

      boonex.com/unity/extensions/e...gual_HTML_Block

      gruss
      kem



      Danke, aber der Link funzt leider nicht.


      sorry: blöcke sprachgesteuert?


      boonex.com/unity/extensions/entry/Multilingual_HTML_Block

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von kemal ()

    • Original von Biggi0001
      Kemal, du hast das jetzt für 6.1. eingestellt, funzt das auch mit der 7?

      LG, Biggi

      UND NEBENBEI : danke, daß du immer so geile Mods findest!


      ja.
      es funzt auch mit 6.1 und D7
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      MULTINGUAL HTML BLOCK

      1) Edit inc\classes\BxDolPageView.php

      Look for this line :

      function getBlockCode_Echo( $iBlockID, $sContent ) {

      After the above line insert this lines :

      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only
      $res = db_res("select `ID`,`Key` from LocalizationKeys"); // FOR 6.1.6 only

      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);


      2) In the Admin Panel >> Builders >> PageBuilders
      HTML block editing, add underscoce infront of the string you wish to make it multilingual.

      Example : _multilanguageHTMLblock


      3) In the Admin Panel >> Manage Languages -- <yoursite>/admin/lang_file.php << 6.1.6
      In the Admin Panel >> Manage Languages -- <yoursite>/administration/lang_file.php << 7.0.0

      click the link "Add a new language key" window will popup, fill up the fields


      New language key name: _multilanguageHTMLblock

      Category: Misc

      String texts for available languages: testing me viewing a multilanguage HTML block

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • Original von kemal
      Original von Biggi0001
      Kemal, du hast das jetzt für 6.1. eingestellt, funzt das auch mit der 7?

      LG, Biggi

      UND NEBENBEI : danke, daß du immer so geile Mods findest!


      ja.
      es funzt auch mit 6.1 und D7
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      MULTINGUAL HTML BLOCK

      1) Edit inc\classes\BxDolPageView.php

      Look for this line :

      function getBlockCode_Echo( $iBlockID, $sContent ) {

      After the above line insert this lines :

      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only
      $res = db_res("select `ID`,`Key` from LocalizationKeys"); // FOR 6.1.6 only

      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);


      2) In the Admin Panel >> Builders >> PageBuilders
      HTML block editing, add underscoce infront of the string you wish to make it multilingual.

      Example : _multilanguageHTMLblock


      3) In the Admin Panel >> Manage Languages -- <yoursite>/admin/lang_file.php << 6.1.6
      In the Admin Panel >> Manage Languages -- <yoursite>/administration/lang_file.php << 7.0.0

      click the link "Add a new language key" window will popup, fill up the fields


      New language key name: _multilanguageHTMLblock

      Category: Misc

      String texts for available languages: testing me viewing a multilanguage HTML block

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


      dieser mod war kostenlos. und alles was da drin ist oben beschrieben
      das ist alles was ihr machen muss.
    • Original von kemal
      Original von kemal
      Original von Biggi0001
      Kemal, du hast das jetzt für 6.1. eingestellt, funzt das auch mit der 7?

      LG, Biggi

      UND NEBENBEI : danke, daß du immer so geile Mods findest!


      ja.
      es funzt auch mit 6.1 und D7
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      MULTINGUAL HTML BLOCK

      1) Edit inc\classes\BxDolPageView.php

      Look for this line :

      function getBlockCode_Echo( $iBlockID, $sContent ) {

      After the above line insert this lines :

      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only
      $res = db_res("select `ID`,`Key` from LocalizationKeys"); // FOR 6.1.6 only

      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);


      2) In the Admin Panel >> Builders >> PageBuilders
      HTML block editing, add underscoce infront of the string you wish to make it multilingual.

      Example : _multilanguageHTMLblock


      3) In the Admin Panel >> Manage Languages -- <yoursite>/admin/lang_file.php << 6.1.6
      In the Admin Panel >> Manage Languages -- <yoursite>/administration/lang_file.php << 7.0.0

      click the link "Add a new language key" window will popup, fill up the fields


      New language key name: _multilanguageHTMLblock

      Category: Misc

      String texts for available languages: testing me viewing a multilanguage HTML block

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


      dieser mod war kostenlos.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von kemal ()

    • New language key name: _multilanguageHTMLblock
      Category: Misc


      1. was ist das für eine Category Misc? Die gibts bei mir nicht. Oder ist es egal welche cat ausgewähllt ist? Ich habe _multilanguageHTMLblock unter Category System angelegt.

      2. Also habe ich bei SitenBlocke einen HTML-Block angelegt. Überschrift - schreibe ich _multilanguageHTMLblock rein.
      2. Was schreibe bei HTML_Inhalte? Schliesslich ist das die Aufgabe das die Inhalte Mehrsprachig werden. Muss hier auch ein Sprachschlüssel rein? So hab ich versucht, hat nicht funktioniert.

      Melde dich Kemal oder wer sich damit auskennt, bitte

      Vielen Dank,
      v.kiselev
      Dolphin - Anfänger
    • also ich bekomm immer den error auf meiner site wenn ich die datei angepasst hab:

      Warning: strpos() [function.strpos]: Empty delimiter in /var/www_live/inc/classes/BxDolPageView.php on line 563

      Warning: Cannot modify header information - headers already sent by (output started at /var/www_live/inc/classes/BxDolPageView.php:563) in /var/www_live/inc/design.inc.php on line 133


      und mein ganzes design is irgendwie komisch, also ich kann es irgendwie nicht wirklich einsetzen :/
      jemand eine idee?
    • also ich hatte anfangs auch kleine probleme damit , aber jetzt funzt es super , ich glaube du hast bei dem code was verkehrt gemacht , welchen code hast du den in die seite reingebracht?

      hier kannst du sehen wie es normal aussehen sollte latinamericancutit.com/lacutit

      wichtig ist auch das die html blocks mit den sprachkeys richtig gesetzt werden sonst gehts auch nicht.
      gruss
      :saufen:

    • So solte es sein:
      der orginalcode
      MULTINGUAL HTML BLOCK
      1) Edit inc\classes\BxDolPageView.php
      Look for this line :

      function getBlockCode_Echo( $iBlockID, $sContent ) {

      After the above line insert this lines :

      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only
      $res = db_res("select `ID`,`Key` from LocalizationKeys"); // FOR 6.1.6 only

      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);

      2) In the Admin Panel >> Builders >> PageBuilders
      HTML block editing, add underscoce infront of the string you wish to make it multilingual.
      Example : _multilanguageHTMLblock


      3) In the Admin Panel >> Manage Languages -- <A href="http://<yoursite>/admin/lang_file.php"><yoursite>/admin/lang_file.php
      << 6.1.6
      In the Admin Panel >> Manage Languages -- <A href="http://<yoursite>/administration/lang_file.php"><yoursite>/administration/lang_file.php << 7.0.0

      click the link "Add a new language key" window will popup, fill up the fields


      New language key name: _multilanguageHTMLblock

      Category: Misc

      String texts for available languages: testing me viewing a multilanguage HTML block


      So jetzt musst diesen code benutzen anstatt den obigen wenn ihr Dol 7 benutzt:



      function getBlockCode_Echo( $iBlockID, $sContent ) {
      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys");
      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);

      return '<div class="dbContentHtml">' . $sContent . '</div>';
      }


      Jetzt soolte das script auch keine probleme machen.
      Jetzt kommt die aufgabe nämlich hier müssen 2 schlüssel angelegt werden:

      _beispiel_content_text_name

      _beispiel content_inhalt_texte

      Hier hat mir kemal geholfen , dank an kemal!

      So und in dem html block musst du den Sprachkey reinkopieren oder schreiben dan gehts. aber sag nochmal bescheid auch für andere.
      Thanks
      :saufen:
    • eingefügt hab ich genau das:

      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys"); // FOR 7.0.0 only

      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);

      und die fett gemachte zeile(line 563) wird angemeckert sobald ich ein Html block auf die seite pack

      ;(
    • versuch erst den cache zu löschen, dann vergebe mal die schreibrechte auf dem teil, zu probe, und dann lege einen neuen block an, eigentlich funzt es super.


      also das habe ich eingefügt

      function getBlockCode_Echo( $iBlockID, $sContent ) {
      $sContent = "XXX ".$sContent;
      $res = db_res("select `ID`,`Key` from sys_localization_keys";
      while ( $arr = mysql_fetch_array($res) )
      {
      if ( strpos($sContent,$arr[Key]) > 0 )
      $sContent = str_replace($arr[Key],_t($arr[Key]),$sContent);
      }
      $sContent = str_replace("XXX","",$sContent);

      return '<div class="dbContentHtml">' . $sContent . '</div>';
      }
      :saufen:

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von wizi ()