From: Olivier S. <ob...@fr...> - 2008-10-19 19:55:13
|
Hi all, First of all, many thanks for phpWebSite, it's a wonderful piece of software that makes the management of my website much easier. I recently upgraded from 0.10.2 to 1.5.2 and while it is working fine now, I must say it was not an easy path to follow. Thanks to the help of many individuals, I got it working as I like, with a theme of my own and support for the French language everywhere. If you want to see the results, it's available here: http://www2.obones.com It's not "live" just yet (by live, I mean www instead of www2) as I need to check a few more things, but I'm quite confident I'm 99% done. If I'm writing to you today it's because along this course, I had to make quite a few changes inside phpWebSite's own source code and I would like to propose the changes to you. I know you are working on the next version (1.6.0) but I'm not sure all the issues my changes fix have been seen already. At first, I'll only post here a summary of the changes I've made. Then, if you are interested in them, I'll post the diff files (I'm using TortoiseSVN) for you to look at. So, here are the changes I had to do : Blog conversion: Take into account international characters in the content and summary url for the key points to message instead of comments which does not work anyway. Set summary in the key, it is used by the RSS module. Menu conversion: Take into account the fact that not all keys are to elements of the webpage module. core/class/Init.php: Take into account the fact that the ".UTF8" language Id might not be installed Look for mo files in the /locale folder by default for all modules, this makes life easier for translators/maintainers .htacess Add the RewriteBase directive, required on most servers mod/controlpanel/class/Link.php Translation of label and description at runtime to allow language change after installation. mod/controlpanel/class/Tab.php Translation of tab title at runtime to allow language change after installation. mod/blog/class/Blog.php Encode date/time in UTF-8 as month names may take accented characters If no content in the post, do not display the "read more" link mod/blog/class/Blog_User.php Exclude sticky entries from "recent blog entries" block Sticky entries show up on every page. mod/users/class/Form.php Replace spaces by non breaking spaces in the "Control Panel" link. mod/rss/class/Channel.php Encode the strings before output in the RSS file to avoid problems with unrecognized entities. mod/alert/class/Alert_Item.php mod/calendar/class/User.php mod/calendar/conf/config.php mod/comments/class/Comment_Item.php mod/comments/class/Comment_User.php mod/notes/class/Note_Item.php mod/pagesmith/class/PS_Page.php mod/photoalbum/class/Album.php mod/profiler/class/Profile.php mod/rideboard/class/Ride.php mod/search/class/Stats.php mod/users/class/Users.php mod/version/class/Approval.php mod/version/class/Restore.php trunk/mod/version/class/Version.php trunk/mod/webpage/class/Volume.php Encode date/time in UTF-8 Modified templates to respect the following structure: <div class="box"> <div class="box-title"> <h1>{PAGE_TITLE}</h1> </div> <div class="box-content"> </div> </div> The modified templates are those ones: blog/view.tpl menu/menu_layout/basic/menu.tpl miniadmin/mini_admin.tpl related/bank.tpl related/create.tpl related/edit.tpl users/usermenus/top.tpl webpage/page/basic.tpl webpage/page/prev_next.tpl webpage/page/short_links.tpl webpage/page/verbose_links.tpl I needed those changes to apply the correct styling in order to get the rounded box effect that I wanted. I also made changes inside the article module, but I'll contact the author directly. Let me know what you think of these changes, if you want them and under which format. Cheers Olivier |