Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Some help needed
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=400
Page 1 of 1

Author:  voyager123bg [ 17. Jul 2006, 22:58 ]
Post subject:  Some help needed

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?)

Author:  TinyWebGallery [ 18. Jul 2006, 10:16 ]
Post subject: 

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

Author:  voyager123bg [ 19. Jul 2006, 16:30 ]
Post subject: 

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.

Author:  TinyWebGallery [ 19. Jul 2006, 16:53 ]
Post subject: 

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

Author:  voyager123bg [ 21. Jul 2006, 17:50 ]
Post subject: 

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.

Author:  TinyWebGallery [ 21. Jul 2006, 18:09 ]
Post subject: 

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

Author:  voyager123bg [ 23. Jul 2006, 13:57 ]
Post subject: 

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...

Author:  TinyWebGallery [ 23. Jul 2006, 14:32 ]
Post subject: 

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

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/