Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP SUPPORT - Aiuto Col FAP E Il CH: Problema LANG 
 
Hi all!  

I have installed a board with many templates and running with the CH by ptirhiik.
The FAP is working perfectly, really nice!

But there is only a ingle issue...
I already asked Mightygorgon, and he redirected me to that board.

There is a problem in some files, it don't gets the LANG vars...

Here is what I get, for example, in album_modcp:

albummodcp

How can I tell the various files to get the correct LANG vars?

It gets only the specific LANG vars of the FAP, not the general ones, like the ones missing in the image you can see...

Help plz!
 



 
Lord PhobosSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Aiuto Col FAP E Il CH: Problema LANG 
 
Are you having this problem just with one template or with all of them?

Are you sure that the language vars are included properly just like CH instructions says?

Did you properly follow the CH installations instructions for FAP?

Code: [Download] [Hide] [Select]
##############################################################
##
## Instructions for installing FAP on Categories Hierarchy 2.1.6
##             Complete all Edits as normally described EXCEPT those changes described after seeing this: ---[ CH 2.1.6 ]---
##            Bugs and other suggestions can be included at Mighty Gorgon here: http://www.mightygorgon.com/viewtopic.php?t=3576
##
## MOD Version: 1.4.0
##
## Installation Level: Easy
## Installation Time: 30 minutes
## Files To Edit: (1)
##                includes/class_stats_online.php
##                
## Included Files: (1)
##                language/lang_english/lang_extend_album_main.php
##                
## License: http://opensource.org/licenses/GPL-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Author Link Discussion: http://www.mightygorgon.com/forum.php?c=8
## Author Link Discussion @ Smartor Site: http://smartor.is-root.com/viewtopic.php?t=14094
## Author Link Download: http://www.mightygorgon.com/viewforum.php?f=682
## Author Link Demo: http://www.mightygorgon.com/album.php
##
## Copyrights are of each MODS authors.
## Each MOD author reserve the opportunity for supporting only its own MOD, and not this full package.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
# These following instructions mean...
# Upload all files in directory "phpbb_root" with their structure to your phpBB root directory
#
# Remember to upload all the language files and template files to all your
# language packs and template directories
#
# If you use FTP please remember to use ASCII mode for text files (*.php, *.tpl)
# and BINARY mode for image files (*.jpg, *.gif)
# Fortunately good FTP clients today can auto-detect the mode for your files

copy phpbb_root/language/lang_english/*.php to language/lang_english/*.php

#*/
#
#---[ CH 2.1.6 ]--- IGNORE the language/lang_english/lang_main.php edit as the Include file lang_extend_album_main will replace it
#---[ CH 2.1.6 ]--- IGNORE profile.php edit as Full Album Pack does not currently work with CH 2.1.6 Profile.
#---[ CH 2.1.6 ]--- IGNORE ALL includes/usercp_viewprofile.php edits as Full Album Pack does not currently work with CH 2.1.6 Profile.
#---[ CH 2.1.6 ]--- IGNORE ALL templates/subsilver/profile_view_body.tpl edits as Full Album Pack does not currently work with CH 2.1.6 Profile.
#---[ CH 2.1.6 ]--- Do NOT do viewonline.php OR admin/index.php edits.  Both edits are now rewritten and combined in a new CH file. Code is found following admin/index.php is the NEW code placed in a CH file.
#
#-----[ OPEN ]------------------------------------------------
#
includes/class_stats_online.php
#
#-----[ FIND ]------------------------------------------------
#
            PAGE_FAQ => array('txt' => 'Viewing_FAQ', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'faq', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
#
#-----[ AFTER, ADD ]------------------------------------------
#
            // Mighty Gorgon - Full Album Pack - BEGIN
            PAGE_ALBUM => array('txt' => 'Viewing_Album_Index', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'view_album_index', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
            PAGE_ALBUM_PERSONAL => array('txt' => 'Viewing_Album_Personal', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'view_album_personal', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
            PAGE_ALBUM_PICTURE => array('txt' => 'Viewing_Album_Picture', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'view_album_picture', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
            PAGE_ALBUM_SEARCH => array('txt' => 'Viewing_Album_Search', 'url' => $this->mode == 'in_admin' ? 'admin/index' : 'view_album_search', 'parms' => $this->mode == 'in_admin' ? array('pane' => 'right') : array()),
            // Mighty Gorgon - Full Album Pack - END
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM



Code: (lang_extend_album_main.php) [Download] [Hide]
  1. <?php  
  2.  
  3. // Mighty Gorgon - Full Album Pack - BEGIN  
  4. $lang['Album'] = 'Album';  
  5. $lang['Personal_Gallery_Of_User'] = 'Personal Gallery Of %s';  
  6. $lang['Personal_Gallery_Of_User_Profile'] = 'Personal Gallery of %s (%d Pictures)';  
  7. $lang['Show_All_Pic_View_Mode_Profile'] = 'Show All Pictures In The Personal Gallery of %s (without sub cats)';  
  8. $lang['Not_allowed_to_view_album'] = 'Sorry, you are not allowed to view the album.';  
  9. $lang['Not_allowed_to_upload_album'] = 'Sorry, you are not allowed to upload new pic to the album. Please contact the album administrator for more information.';  
  10. $lang['Album_empty'] = 'There are no pics in the album<br />Click on the <b>Upload New Pic</b> link on this page to post one.';  
  11. $lang['Upload_New_Pic'] = 'Upload New Pic.';  
  12. $lang['Pic_Title'] = 'Pic Title';  
  13. $lang['Pic_Title_Explain'] = 'It is very important to give your pic a good title. It could be a name, a subject to make others know what it is without see it.';  
  14. $lang['Pic_Upload'] = 'Pic Upload';  
  15. $lang['Pic_Upload_Explain'] = 'Allowed types are JPG, GIF and PNG. Maximum file size is %s bytes. Maximum image dimensions are %sx%s pixels.';  
  16. $lang['Album_full'] = 'Sorry, the album has reached the maximum number of uploaded pics. Please contact the album administrator for more information.';  
  17. $lang['Album_upload_successful'] = 'Thank you, your pic has been uploaded successfully.';  
  18. $lang['Click_return_album'] = 'Click %shere%s to return to the Album.';  
  19. $lang['Invalid_upload'] = 'Invalid Upload<br /><br />Your pic is too big or its type is not allowed.';  
  20. $lang['Image_too_big'] = 'Sorry, your image dimensions is too large.';  
  21. $lang['Uploaded_by'] = 'Uploaded by';  
  22. $lang['Category_locked'] = 'Sorry, you cannot upload because this category was locked by an admin. Please contact the album administrator for more information.';  
  23. $lang['View_Album_Index'] = 'Album Index';  
  24. $lang['View_Album_Personal'] = 'Viewing Personal Album of a user';  
  25. $lang['View_Pictures'] = 'Viewing Pictures or Posting/Reading comments in the Album';  
  26. $lang['Album_Search'] = 'Searching the Album';  
  27. $lang['Pic_Name'] = 'Picture Name';  
  28. $lang['Description'] = 'Description';  
  29. $lang['Search_Contents'] = ' that contains: ';  
  30. $lang['Search_Found'] = 'Search found ';  
  31. $lang['Search_Matches'] = 'Matches:';  
  32. // Mighty Gorgon - Full Album Pack - END  
  33.  
  34. ?> 

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Aiuto Col FAP E Il CH: Problema LANG 
 
I SOLVED!!!!          

It were VERY simple indeed...

This were enough:


 looked at this and for 2.1.6, I had to modify album_modcp.php to get it to work.
find:
Code: [Download] [Hide]
  1. include($phpbb_root_path . 'common.' . $phpEx); 

after, add:
Code: [Download] [Hide]
  1. $user->use_lang(array('modcp')); 



Nothing else, modified nothing... it works! With the lang files of the pack!
 



 
Lord PhobosSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Aiuto Col FAP E Il CH: Problema LANG 
 
Great!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron