Geek Moot '09 -- Multilang Implemenatation

1,126 views

Published on

Implementation and challenges to using CMSMS MLE. Presented by: Martin Poettgen.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,126
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Geek Moot '09 -- Multilang Implemenatation

  1. 1. Concept of a Multilingual CMSMS Website papabo.com Martin Poettgen Ruhrstadt / Germany Vers. 1_0
  2. 2. C O N T E N T I. Heritage II. Papabo.com - What is it? III. Papabo.com - Idea of this Website IV. Decision 2006: CMSMS 0.13 V. Advancement >> Multilingual VI. MLE – What works fine – What not VII. List of Wishes
  3. 3. I. Heritage / Where i am from…
  4. 4. I. Heritage / What i do… <ul><li>Just Words </li></ul>
  5. 5. I. Heritage / Experience… <ul><li>Just Words </li></ul>
  6. 6. I. Heritage / How i work… <ul><li>But even this… </li></ul>
  7. 7. II. Papabo.com – What Is It?
  8. 8. III. Papabo.com – Idea of This Website <ul><li>- I F I T I B - </li></ul><ul><li>Give I mage (2 the Brand) </li></ul><ul><li>Give F un </li></ul><ul><li>Give I nformation </li></ul><ul><li>Give C hance to get in T ouch </li></ul><ul><li>Give Chance to I nteract </li></ul><ul><li>Give Chance to do B usiness </li></ul>
  9. 9. IV. Decision 2006: CMSMS 0.13 <ul><li>2006: Decision for GPL/GMU CMS system… </li></ul><ul><li>- Test Typo 3 </li></ul><ul><li>Test CMSMS – Vers. 0.13 </li></ul><ul><li>- BUT: first of all:… </li></ul>
  10. 10. IV. Realization 2006: CMSMS 0.13 … Thankx 2 Ted & the Team
  11. 11. V. Advancement 2008 >> Multilingual <ul><li>2008: Demand for multilingual website </li></ul><ul><li>- First of all: thankx 2 Alby </li></ul><ul><li>Website follows business </li></ul><ul><li>Upgrade to cmcms 1.4.1 mle </li></ul><ul><li>Five days of headace </li></ul>
  12. 12. V. Advancement 2008 >> Multilingual
  13. 13. V. Advancement 2008 >> Multilingual Edit Global Content Block
  14. 14. V. Advancement 2008 >> Multilingual User Defined Tags
  15. 15. V. Advancement 2008 >> Multilingual <ul><li>2008: Demand for multilingual website </li></ul><ul><li>Website follows business </li></ul><ul><li>Upgrade to cmcms 1.4.1 mle </li></ul><ul><li>Five days of headace </li></ul>
  16. 16. V. MLE – What works fine – What not… Problems with FEU login
  17. 17. V. MLE – What works fine – What not…
  18. 18. V. MLE – What works fine – What not… … New code for latest FEU module <div id=&quot;content&quot;> {cms_module module=CustomContent} {if $ccuser->loggedin() && $ccuser->memberof('Club_G,Club_I')} {content}</br> <div id=&quot;rate_box&quot;><div id=&quot;rate&quot;>{cms_module module='RateThis'}</div></div> {else} {global_content name='pleaselogin'} {/if} </div> …
  19. 19. V. MLE – What works fine – What not… Fatal error: Call to a member function FetchRow() on a non-object in .../public_html/modules/NMS/NMS.module.php on line 1613 NMS doesn't like MLE (...& Formbuilder & some other modules...mp) Change line 1603 of NMS.module.php from: Code: $q = &quot;SELECT content_id,content_name to Code: $q = &quot;SELECT content_id,content_name _en
  20. 20. V. MLE – What works fine – What not…
  21. 21. V. MLE – What works fine – What not…
  22. 22. V. MLE – What works fine – What not… Doesn‘t work
  23. 23. V. MLE – What works fine – What not…
  24. 24. V. MLE – What works fine – What not… … Change line 1603 of NMS.module.php from: Code: $q = &quot;SELECT content_id,content_name to Code: $q = &quot;SELECT content_id,content_name _en
  25. 25. V. MLE – What works fine – What not…
  26. 26. V. MLE – What works fine – What not…
  27. 27. V. Advancement 2008 >> Multilingual
  28. 28. V. Advancement 2008 >> Multilingual --- modules/Statistics/ Statistics.module.php. orig 2008-04-22 17:36:43.859375000 +0100 +++ modules/Statistics/Statistics.module.php 2008-04-22 17:37:16.765625000 +0100 @@ -644,7 +644,10 @@ function InternalGetPageTitle($content_alias, $forcemenutext=false) { $db=&$this->GetDb(); - !! $query=&quot;SELECT content_name,menu_text FROM &quot;.cms_db_prefix().&quot;content WHERE content_alias=? OR content_id=?&quot;; + // Start MLE + global $mleblock; + $query=&quot;SELECT content_name$mleblock AS content_name,menu_text$mleblock AS menu_text FROM &quot;.cms_db_prefix().&quot;content WHERE content_alias=? OR content_id=?&quot;; + // End MLE $dbresult=$db->Execute($query,array($content_alias,$content_alias)); if (!$dbresult || $dbresult->RecordCount()==0) return &quot;&quot;; $row=$dbresult->FetchRow();
  29. 29. V. Advancement 2008 >> Multilingual --- modules/Statistics/ Statistics.module.php .orig 2008-04-22 17:36:43.859375000 +0100 +++ modules/Statistics/Statistics.module.php 2008-04-22 17:37:16.765625000 +0100 @@ -644,7 +644,10 @@ function InternalGetPageTitle($content_alias, $forcemenutext=false) { $db=&$this->GetDb(); - !! $query=&quot;SELECT content_name,menu_text FROM &quot;.cms_db_prefix().&quot;content WHERE content_alias=? OR content_id=?&quot;; + // Start MLE + global $mleblock; + $query=&quot;SELECT content_name$mleblock AS content_name,menu_text$mleblock AS menu_text FROM &quot;.cms_db_prefix().&quot;content WHERE content_alias=? OR content_id=?&quot;; + // End MLE $dbresult=$db->Execute($query,array($content_alias,$content_alias)); if (!$dbresult || $dbresult->RecordCount()==0) return &quot;&quot;; $row=$dbresult->FetchRow();
  30. 30. VI. List of Wishes <ul><li>Multilingual in all Modules </li></ul><ul><li>Multidomain </li></ul><ul><li>FLV / Flash video Management </li></ul><ul><li>Becoming more Popular </li></ul><ul><li>Competition vs Typo 3 </li></ul><ul><li>… and with a view to the developers…. </li></ul>
  31. 31. VI. List of Wishes … don‘t be afraid of big animals…
  32. 32. Thank you - have to go home… <ul><li>Somebody is waiting… </li></ul>
  33. 33. Martin Poettgen E-mail: m_poettgen@yahoo.de www.mp-p.com Download this @: www.mp-p.com/download/gemo_map_mle.pdf Initiativen/Mitgliedschaften

×