Create a New Page in phpBB2

Submitted by Reiji Kurosaky, Feb 2007.
Page: 2
Pages: [1] [2] [3] [4]
Now letīs proceed with the language file:
Code: (lang_tos.php)
  1. <?php  
  2.  
  3. /***************************************************************************  
  4. *                                lang_tos.php  
  5. *                                -----------  
  6. *   copyright            : (C) 2006 YOUR NAME HERE  
  7. *   support              : SUPORT URL HERE  
  8. *  
  9. *   version              : 1.0.0  
  10. *  
  11. *  
  12. ***************************************************************************/  
  13.  
  14. /***************************************************************************  
  15. *  
  16. *   This program is free software; you can redistribute it and/or modify  
  17. *   it under the terms of the GNU General Public License as published by  
  18. *   the Free Software Foundation; either version 2 of the License, or  
  19. *   (at your option) any later version.  
  20. *  
  21. ***************************************************************************/  
  22.  
  23. $lang['tos_title'] = 'Variable content';  
  24.  
  25. $lang['content'] = 'Variable content';  
  26.  
  27. ?> 
This is the language file, to add new content just add:
Code:
  1. $lang['var2'] = 'Variable 2 content'; 
Remember; if you use any single quotes or double quotes, explode them first (\' or \").
Page: 2
Pages: [1] [2] [3] [4]

Share this tutorial

If you want to show this tutorial to someone else please use following code to link to this tutorial:
HTML Link:
Forum BBCode:
Content of this tutorial may not be published anywhere else without author's permission. Please link to this page instead.