First of all, thanks
About
Pearl Squirrel, very interesting, indeed. I'll check it out, no doubt.
About the
language button, it's just what you said: main target public (about 95% I would dare to say) is Spanish/Latin American people. I'd study it, anyway, maybe the Google translator selectable combo for instance. It's far from being the best of the translations but... better than nothing, that's sure.
About the
low speed, yes, it was partly due to PHP scripts. I managed to fix it.
Large explanation:
We have a Google account for the band and our site reads that Google account through Google APIs to show info (news -> Blogger articles; concerts -> Calendar events; Photos -> Picasa albums/photos; Videos -> Youtube playlist/videos). I made it this way so adding content is a piece of cake. An example: I add a Blogger article, the New appears automatically next time you reload the website. Although it has advantages (no need to handle source code php/html files, no need to make a back-end system to manage content, no need to have access to FTP or cPanel, just a web browser), the main problem is the approach I used:
- Before, the data was read every time the website is visited by an user; the PHP scripts read Blogger, Calendar, Picasa and Youtube. 6 loops altogether, hence the quite high load time.
- Now, I addapted those PHP scripts so, instead of echo data to screen, they fwrite data to new plain PHP files that are then included by the main, index.php file.
So, each time I add content, I run the script and the PHP files that are included by index are re-written. This way, Google has to be read only once each time we add new content, thus avoiding server overloading with redundant work. When users load the site, their browsers only read those (how to say?
Pre-rendered?) PHP files; strictly speaking, there are no 'scripts', loops or Google readings.
Furthermore, this way I can also test the changes in content before making them eventually public. I mean, I add a new in Blogger, I run the script in my computer with WAMP, ensure that the new content fits well in local mode, then run the script in the server and the new content is accessible to everyone.
Right now the script is very rudimentary. It's functional but lacks on GUI and reads all data, then re-writes all files. I'll improve it soon (hopefully) with buttons to make possible to read and re-write only the needed file: news+concerts (share file), photos or videos.
And thats all XD
Well, thanks again for your comment :wink: