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 1. Oct 2022, 19:58

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  [ 8 posts ] 
Author Message
 Post subject: Some help needed
PostPosted: 17. Jul 2006, 22:58 
Offline

Joined: 17. Jul 2006, 22:44
Posts: 17
Hello out there, I need a little help...

How to make my other media availiable for viewing/downloading like it is on the example site? I've got pretty default TWG instalation, and nothing else but .jpg shows out.

second:

How to make everything in UTF-8 encoding? I'm familiar only with the basic idea here. My texts currently are encoded in cyrillic-1251 (I've had to rewrite chunks from the .html and some .php files as on some example I've red in the forum), but ideally would like to transit everything in UTF-8 because it'll support cyrillic comments (other ideas for achieving this?)


Top
 Profile  
 
 Post subject:
PostPosted: 18. Jul 2006, 10:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

About one: read howto 26 - it tell's you how to set this up!

2nd:

this is defined in the language files - if you check the greek one.
there is a $charset = "UTF-8";
defined - if this is set I internally handle everything with utf-8.

The problem right now is that TWG has only few languages files in utf-8 and I cannot convert and changed them by myself because the language file like chinese would not work anymore (this one is gb2312).

for most language files you only have to define $charset = "UTF-8"; in the language file and save it as utf-8.

As long as you stay in one language this doesn ot matter - but if you e.g. enter greek text and view it later with e.g. iso-8859-1 encoding... I think you get the point.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jul 2006, 16:30 
Offline

Joined: 17. Jul 2006, 22:44
Posts: 17
Hi, I got the point.... Now, I'd like to do everything in UTF-8. So language won't matter... everything looks like sunshine now, except for the comments.

I can't really get it... I researched a bit, and changed:

in readxml.inc.php

line 330:
$xml_string = "<bild><name>" . urlencode($image) . "</name><wert>" . urlencode($titel) . "</wert></bild>\n";
with
$xml_string = "<bild><name>" . urlencode($image) . "</name><wert>" . $titel . "</wert></bild>\n";

and my comments are in UTF-8 in the xml file. But they just don't seem to pop-out as bulgarian...
here's a link:
http://213.240.242.10/tmp/test/twg/inde ... comment=13
... have to go now, will be back with this later.


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jul 2006, 16:53 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

I think it yould be the function
php_to_html_chars_all

because it does not take care of the encoding.

I can make some modification here - But you then have to test them for me.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 21. Jul 2006, 17:50 
Offline

Joined: 17. Jul 2006, 22:44
Posts: 17
Great! I'd love to participate... Sadly, my server is offline at this moment... :(

Also, I think it'd be great if there is some way to download the beta and test some more... and even participate in the development of it. I'd love to contribute something to the project, although I'm not very fammiliar with PHP...


E.g. A lib for databases could be made, where every captions/comment/rating/whatever about a picture to be there... and with the help of overloading to let people choose whether they want stand-alone gallery, or to interconnect it with mysql, postgre... :) although I selected TWG because of its simplicity.


Top
 Profile  
 
 Post subject:
PostPosted: 21. Jul 2006, 18:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Just tell me when your server is back up.

Participation ist not a problem - but knowing php, JS, html ... is essential.
And I won'T support any db - because that's one big point - extract and done ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 23. Jul 2006, 13:57 
Offline

Joined: 17. Jul 2006, 22:44
Posts: 17
Server's up and running :)
You can see it at:
#removed_broken_link - original
#removed_broken_link - test version...

I'll try what you said about UTF-8 decoding, and will post back the results...
As for my participation - I'm willing to learn... current skills at PHP and HTML are not of a big deal, still a beginner... yet, if I can help I won't hesitate to.

I found it: It is in the

return replacesmilies(strtr($data, $e)); of the php_to_html_chars_all

I replaced it with clean return($data) and everything looks good :)

So it's in replacesmilies() function... I'll look upon that If I can find a cure for it...


Top
 Profile  
 
 Post subject:
PostPosted: 23. Jul 2006, 14:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

This where I did some fixed already in my local buidl - It's actually not the replace smiles but the strtr ...

I'll send you this version when I have integrated he bulgarian language file ..

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 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