Elxis CMS Forum

Support => Technical support => Topic started by: Farhad Sakhaei on September 09, 2007, 19:19:17

Title: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 09, 2007, 19:19:17
hello , i found a problem in stargallery batch upload ...
because i use persian language for my sites ,
when i want to set a generic title in persian , a message shows me that :

No special characters are allowed in this field. a-z, A-Z, 0-9, and - are acceptable

but i want to use a persian title for my pictures !!!!  ???
Title: Re: star gallery batch upload unicode problem
Post by: datahell on September 09, 2007, 23:10:03
I think this limitation is for the file names not for the picture titles. Are you sure???
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 10, 2007, 08:59:10
yes , i copied and pasted the alert...
i'm sure , you can check it
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 10, 2007, 09:26:08
edited , because for security matters
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 10, 2007, 09:48:08
another problem is :
i click batch upload from control panel of stargallery , now i don't want to use the form and i want to go back to Control Panel , but when i click on Control Panel on toolbar , an alert shows me that "You Must select a category" , however i go to Control Panel but the alert is not useful ...

for this problem i think we should remove the onsubmit event for form and set it to submit button :

like this :
Code: [Select]
<form action="index2.php" method="post" name="adminForm" enctype="multipart/form-data">
and the submit button is now :
Code: [Select]
<input type="submit" class="button" value="<?php echo _STARG_BEGINUP?>" onSubmit="return BatchFormCheck(adminForm)">
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 11, 2007, 16:55:12
I think this limitation is for the file names not for the picture titles. Are you sure???

oh , sorry ioannis , it uses for filenames too , it uses for both title and filenames...
i removed the validation code , and used a persian title for them and now all filenames and titles are persian and there isn't any problem...  ::)
Title: Re: star gallery batch upload unicode problem
Post by: datahell on September 11, 2007, 18:01:14
If you wish to do this for your site ok. I can not force you to do something else.

But for the others: WE DO NOT RECOMMENED USING ANY OTHER LANGUAGE CHARACTER SET EXCEPT FROM LATIN-1 FOR FILENAMES.

The above is a general guideline (even for your pc), not just for Elxis. Listen to our recommendation if you dont want to have problems with files and possible security threats.
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 12, 2007, 09:03:15
ok , i edited my post ,
It is better to use Generic Title as filenames and Generic Description for titles and descriptions of pictures ....

i have some idea about star gallery , when we delete pictures from pictures section , the picture name will remove from database only and the picture file will remain in pictures and thumbnail pictures filders... i have an idea , it is better to ask a question for deleting a picture ,
question may be: "do you want to delete picture file and related thumbnail too?"
if user confirm this star gallery will try to remove both record of database and picture filenames ...

and another matter is about batch upload ... when a compressed file uploads to host ,it extracts in temp folder and after this , it copies to pictures folder , but the temp folder doesn't clean from temporary picture files , this will increase the used size of host ... i think this folder should be clean after it ...
Title: Re: star gallery batch upload unicode problem
Post by: datahell on September 12, 2007, 11:44:21
StarGallery needs update. Unfortunately we do not have the time right now to work on this. Elxis 2008 is coming....
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 12, 2007, 12:04:31
ok , there isn't any problem , i mentioned these matters because these days i am using with stargallery and i see these ...
i know you are very busy , i am ready to help you and ELXIS , so please don't hesitate
Title: Re: star gallery batch upload unicode problem
Post by: Farhad Sakhaei on September 12, 2007, 14:26:20
another bug is in pagination , next page doesn't work ... if you be in forst page you can't go to page 2 and you can't goto next page ...