Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 5. Dec 2024, 04:33

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Problems changing text
PostPosted: 25. Jul 2010, 19:45 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
Hi! I've purchased the professional edition license for JFU. Installed version 2.10.7.
Using only English.
Joomla session handler = none.

I'm trying to change some text in the uploader, for example where it says:
“Additional description” (there's no initial description so I'd rather it would just say “Description”).

I found for example the “Additional description” text in:
/administrator/components/com_joomla_flash_uploader/tfu/lang/default.xml
It says in default.xml that the flash doesn't read this file and that it's only a template.

Then I looked in:
/administrator/components/com_joomla_flash_uploader/tfu/lang/en.xml
It says in en.xml:
“Go to the default.xml and copy the text you want to change into this file.”

Okay, so I pasted and added the following text from default.xml to en.xml like this:

<TFU>
<LANG><KEY>key</KEY><VALUE>New value</VALUE></LANG>
<LANG><KEY>grid_description</KEY><VALUE>Description</VALUE></LANG>
</TFU>

Saved these changes to en.xml.

However, nothing has changed in the text on the uploader in the frontend.
It still says: 'Additional description' instead of 'Description'.

I did clear all cache and cookies on my local machine.
No cache enabled on my website in general (unless you'd tell me the JFU has its own cache).

What am I doing wrong?
How can I change the English text exactly?


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2010, 20:33 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You did it exactly right.

Try to call the en.xml file directly if it is really updated. if you have firebug you can check if it is really loaded. Pressing shift reload a couple of times does help most of the time...

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2010, 22:45 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
I should perhaps point out I've left empty the language selector field because I don't want to show the flag icons but, still, I understand the default language is English.
I'm using sh404sef with SEF URLs but the SEF URL shown actually translates the following original URL that it's using for the uploader:
index.php?option=com_joomla_flash_uploader&Itemid=7&lang=en

So I think it's supposed to use the English file.

I tried to place other text from default.xml to en.xml, but it didn't change either.

Tried with all possible browsers, on two separate computers, logging in and out with different users in the frontend , reloading the page.
It didn't help.

I do use firebug. Looked for en.xml file but couldn't see it had uploaded, but then again, I'm really not sure if I understood how to search for it currectly in firebug.
Not sure how to check if it's really uploaded.
What did you mean by 'pressing shift reload'? shift + F5 ?

Any ideas what might be wrong?


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2010, 23:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The flash loads the en.xml after the configuration is loaded. I have to check if the language is loaded if the selector is not shown...

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2010, 23:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just tested - the language is loaded even when the selector is not shown.

does the language flags load if you add a couple to the selector?

maybe SEF does not translate the url properly which loads the language file.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2010, 23:42 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
Yes, the flags do show if I add them. I even selected just the English flag and it shows only that, or if I chose more it shows more.
Also, I can see that if the language selector is chosen (i.e there are flags) then still the changed text in en.xml doesn't appear.

I don't think it's a SEF URL issue because actually I only installed the sh404SEF extension for JFU yesterday evening, but the text that I tested and tried to changed didn't work also two days ago and before URL was changed to SEF.

One more thing perhaps worth mentioning:
I found it strange that even though I chose in the frontend profile setting:
"Hide remote view" = yes
still, the word "remote" appears above the window, to the left of the "upload queue", even though the remote window doesn't display (as it shouldn't display).
Don't know if it should be like this or not, or if it has any connection, but I'm just pointing it out as something I've found strange.

What about the testing I mentioned at the end of my previous post?
(the whole issue of testing with firebug). Anything you might be able to point me out how to check this? (if at all you think it's necessary).

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 01:09 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
Okay, I found the problem.
Joomla in its .htaccess has these security rules:

## Deny access to extension xml files##
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy all
</Files>

This is to prevent hackers from accessing the xml files of the various Joomla extensions.

By default this is commented out, but I chose to use these rules for added security as it's recommended to do so.

I guess I could add an exception in these rules just for the xml files inside /administrator/components/com_joomla_flash_uploader/tfu/lang/
so only they would be allowed access.

Do you know how the whole rule should look after such change exactly?
(only if you know for certain of course).

thanks


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 07:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
put a .htaccess inside the /administrator/components/com_joomla_flash_uploader/tfu/lang/ folder that allows access to this files there.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 11:39 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
Thank you Michael

Do you know what I should write in it exactly?


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 11:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
## Allow access to extension xml files##
<Files ~ "\.xml$">
Order allow,deny
Allow from all
Satisfy all
</Files>


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 21:51 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
Thanks Michael, it's working well now.

One more thing, I don't wish to display the message:
"Upload maximum file size (per file): xxxxxx KB." at all.
By the way, there's a big problem with this message because it uses
dot instead of a comma so if you specify in the configuration that you have 70000 KB, it tells people you have 68.359 KB (which is actually 68 point 359 KB), instead of 68,359 KB.
But regardless of this, I don't really want to use any message there about the max upload, because I would like to inform people regarding the max file size in the text after the flash.

So I found this text in the default.xml, pasted it in en.xml and tried to leave the value empty but it didn't help. It requires to write something.
Furthermore, even if I would write something else it would still use the %s to enter the value of the max size.

So is there a way for me to remove this function completely from another file. Perhaps from one of the php files?
To comment out a certain function so this won't display?
(the limit should still be in place for the system - but just not to display it for the public there).


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 22:18 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Which versin do you use?

Because if I specify 70000 I get 68,3 MB which is correct.
The value is in KB you enter in the config.

About the text - I have added this feature in 2.11. You can try my current build if you like...

Using HIDE not in the language file disables the text completely...

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2010, 22:58 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
I'm using JFU 2.10.7.
I just want not to diaplsy the: "Upload maximum file size (per file): xxxxxx KB." text.

I understand version 2.11 refers to TFU, so I don't understand what you meant by: 'You can try my current build'.

Can you please point me to a certain file in my installation of JFU 2.10.7 where I could change something to hide only this specific text?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: 27. Jul 2010, 07:40 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
In JFU 2.10.7 you cann't. This is why I said you would have to use my version of JFU 2.11 I'm working on right now...

Send me an e-mail if you want to use this version.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 27. Jul 2010, 17:14 
Offline

Joined: 25. Jul 2010, 19:32
Posts: 11
I've already installed and configured JFU v. 2.10.7 and I don't think I could put now the new version on a production site if it's not fully ready and hasn't been fully tested over a period of time. I'd rather stick now with the version I've already configured and is fully ready.

But let me ask you this:
Say that I'd compromise, and I would display text in that area, so I'll do something like this (with v 2.10.7):

I would paste this:
<LANG><KEY>max_file_size</KEY><VALUE> Upload maximum file size (per file): %s. </VALUE></LANG>

inside en.xml

This I would change it to:
<LANG><KEY>max_file_size</KEY><VALUE> My new text </VALUE></LANG>

I can do that, and it would change the text on the flash, but, it would still display the xxKB, because it still uses the %s even though I removed it in the modification.

So, if I'm now saying that I'm compromising and I could display an alternative text there, is there a way for me to change some code in one of the files that would not force the display of the %s (KB) there?

Or, alternatively, perhaps you could tell me what I could "manually" change in a file in order to achieve what is now possible in v 2.11
in regards for not displaying this line?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy