[Linpha-cvs] SF.net SVN: linpha: [4830] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <fan...@us...> - 2008-01-29 20:01:44
|
Revision: 4830 http://linpha.svn.sourceforge.net/linpha/?rev=4830&view=rev Author: fangehrn Date: 2008-01-29 12:01:16 -0800 (Tue, 29 Jan 2008) Log Message: ----------- updating some files Modified Paths: -------------- trunk/linpha2/docs/dev/TODO.txt trunk/linpha2/docs/dev/external_libraries.txt trunk/linpha2/docs/dev/linpha2.specs.txt trunk/linpha2/lib/js/LinThumbnails.js Added Paths: ----------- trunk/linpha2/lib/js/prototype/ trunk/linpha2/lib/js/scriptaculous-js/ Removed Paths: ------------- trunk/linpha2/lib/js/prototype-1.6.0/ trunk/linpha2/lib/js/scriptaculous-js-1.8.0/ trunk/linpha2/linpha2.specs.txt Modified: trunk/linpha2/docs/dev/TODO.txt =================================================================== --- trunk/linpha2/docs/dev/TODO.txt 2008-01-29 14:55:11 UTC (rev 4829) +++ trunk/linpha2/docs/dev/TODO.txt 2008-01-29 20:01:16 UTC (rev 4830) @@ -29,6 +29,11 @@ - compress javascripts (prototype and scriptaculous) they are now nearly 200KB big +- php session + limit the session cookie not only to domain, but also to full url path + we cannot use the same session in localhost/linpha1.0 and localhost/linpha2.0 + -> session_set_cookie_params() + ## Big Todos - Switch to strict mode @@ -82,9 +87,33 @@ - Bracket Support, enable by default, only if old version found, disable it, or require imagemagick > "6.1.4" +############################################################################ + Open questions +############################################################################ + +- thumbnail size, set a max size (for example 150px), to be able to switch + the size on fly + +- image cache plugin automatically turned on? + in normal image view, image is displayed javascript based the largest possible + -> we're going to have problems with the image cache, as size ever changes.. + -> we already have this problem in the slideshow + /* edit bzrudi */ + I think we should have the largest possible thumb on filesystem 300px? + smaller ones should be resized by browser. + + i'm thinking about a dynamic image cache + lets say i'm requesting an image between 800x600 and 1024x768 i will get the image 1024x768, + between 1024x768 and 1310x983 i will get an image with 1310x983 + we would have calculate a good value of the different image sizes handling thecompromise + between size of the image and difference in size + + + +############################################################################ DONE - ==== +############################################################################ - how to handle common language strings like "Successfully updated data.", "Submit", "Access denied", "Check file permissions" ?? i suggest using define('LIN_STR_SUBMIT', "Submit"); in the language file Modified: trunk/linpha2/docs/dev/external_libraries.txt =================================================================== --- trunk/linpha2/docs/dev/external_libraries.txt 2008-01-29 14:55:11 UTC (rev 4829) +++ trunk/linpha2/docs/dev/external_libraries.txt 2008-01-29 20:01:16 UTC (rev 4830) @@ -19,18 +19,6 @@ - ptviewer 3.1.2 (http://webuser.hs-furtwangen.de/~dersch/) -- gmapper 1.0 - - to avoid relative path problems: - marker(), otherMarker(), tabMarker(), linkMarker(), mapMarker(), directions(), geocode(): - replaced all - marker( ... , $img = "143.png" , ... ) - $dims = getimagesize($img); - echo "var image = new Array(\"$img\",$dims[0],$dims[1]);\n"; - with - marker( ... , $markerImage , ... ) - echo "var image = new Array(\"$markerImage[0]\",$markerImage[1],$markerImage[2]);\n"; - - increased the number of paragraphs "no image at this zoomlevel" used to auto zoom out - - PHP_JPEG_Metadata_Toolkit_1.11 CHANGES Modified: trunk/linpha2/docs/dev/linpha2.specs.txt =================================================================== --- trunk/linpha2/docs/dev/linpha2.specs.txt 2008-01-29 14:55:11 UTC (rev 4829) +++ trunk/linpha2/docs/dev/linpha2.specs.txt 2008-01-29 20:01:16 UTC (rev 4830) @@ -94,25 +94,3 @@ and use the admin login to get an impression, really cool ;-) - something simple: http://82.165.8.199/typo3cms/exotec-design.de/index.php?id=89 - -############################################################################ -Open questions -############################################################################ - -- thumbnail size, set a max size (for example 150px), to be able to switch - the size on fly - -- image cache plugin automatically turned on? - in normal image view, image is displayed javascript based the largest possible - -> we're going to have problems with the image cache, as size ever changes.. - -> we already have this problem in the slideshow - - /* edit bzrudi */ - I think we should have the largest possible thumb on filesystem 300px? - smaller ones should be resized by browser. - - i'm thinking about a dynamic image cache - lets say i'm requesting an image between 800x600 and 1024x768 i will get the image 1024x768, - between 1024x768 and 1310x983 i will get an image with 1310x983 - we would have calculate a good value of the different image sizes handling thecompromise - between size of the image and difference in size \ No newline at end of file Modified: trunk/linpha2/lib/js/LinThumbnails.js =================================================================== --- trunk/linpha2/lib/js/LinThumbnails.js 2008-01-29 14:55:11 UTC (rev 4829) +++ trunk/linpha2/lib/js/LinThumbnails.js 2008-01-29 20:01:16 UTC (rev 4830) @@ -3,7 +3,7 @@ * * check performance: var start = new Date().getTime(); - alert( (new Date().getTime() - start) ); + alert( (new Date().getTime() - start) + 'ms' ); * */ @@ -153,6 +153,23 @@ * see also http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=JavascriptStringConcatenation !! * * update: using the DOM functions with createElement etc. we would be at least 2 times slower!! + * + * this is the way to go: + var i, j, el, idx, html; + idx = 0; + html = []; + html[idx++] = "<table>"; + for (i = 0; i < 1000; i++) { + html[idx++] = "<tr>"; + for (j = 0; j < 5; j++) { + html[idx++] = "<td></td>"; + } + html[idx++] = "</tr>"; + } + html[idx++] = "</table>"; + el = document.createElement("div"); + document.body.appendChild(el); + el.innerHTML = html.join(""); */ if( (img_nr-1) % nr_cols == 0) { Copied: trunk/linpha2/lib/js/prototype (from rev 4811, trunk/linpha2/lib/js/prototype-1.6.0) Copied: trunk/linpha2/lib/js/scriptaculous-js (from rev 4811, trunk/linpha2/lib/js/scriptaculous-js-1.8.0) Deleted: trunk/linpha2/linpha2.specs.txt =================================================================== --- trunk/linpha2/linpha2.specs.txt 2008-01-29 14:55:11 UTC (rev 4829) +++ trunk/linpha2/linpha2.specs.txt 2008-01-29 20:01:16 UTC (rev 4830) @@ -1,118 +0,0 @@ -LinPHA2 Specs -11. Sept. 2005 by bzrudi - -Part 1: Overview -============================================================================== -These are my first ideas about LinPHA2. Things may (will) change as -days go by. The two most important things when talking about LinPHA2 are the -new XHTML/CSS layout for easier customization and the classed based rewrite. - - -Part 2: Features -============================================================================== - -Must Have: -- XHTML/CCS layout (even the menu?) - - don't think about wether to place the folder structure on the left or right side - -> make both (and a lot other) possible with css!!! -- new installer -- unlimited subfolders -- new permission framework (take care of subfolders too) -- option to have thumbs stored in FS rather than in DB (speed improvement) -- sort images by EXIF date -- make LinPHA "includeable" do no longer require to run as standalone app -- provide a clean plugin interface -- complete new, clean and fast DB design (incl. table structures) -- remove need to place images under /albums (windows users can't symlink) - In other words, don't hardcode -- port most of the 1.0 features - -Nice To Have: -- user upload directories -- auto rotate images by EXIF header -- and some of the features already in the RFEs - -Part 3: Coding -============================================================================== -- PHP >= 5.0 only (make use of the new OOP features, exceptions, protected - methods, new constuctor and so on) -- lang files as arrays, no longer just vars -- only class based -- phpDocumentor style documentation for *ALL* classes methods and headers - (this is required for an clean API documentation, which is very important!) -- all own methods get a "lin" prefix, class names start Uppercase -- would be nice if we can define some coding format - - wether to use single or doulbe quotes in html attributes (maybe..) - - which function to use to encode html data - all php output where quotes and other signs may break the html design - (except ids and md5sums) needs to be encoded - which function to use? - - urlencode() -> doesn't work in <a href="" title="<?php echo $title; ?>"> - - rawurlencode() - - htmlspecialchars() -> will use this: htmlspecialchars($str, ENT_QUOTES) - - htmlentities() - - smart_htmlspecialchars() from phpmeta used several times in forms in linpha1 - ? - - ? -- php session - limit the session cookie not only to domain, but also to full url path - we cannot use the same session in localhost/linpha1.0 and localhost/linpha2.0 - -> session_set_cookie_params() - -Part 4: External Libs -============================================================================== -- AdoDB DB Abstraction Layer (maybe we will switch to PHP 5.1 internal - abstraction layer later, so make sure not to use to much of AdoDB specific - features which will require a rewrite later ;-)) -- PHPmailer for all email stuff -- PHPmeta for all the EXIF/IPTC stuff -- getID3 for all Video stuff -- PHPThumb for all image related manipulation (needs testing!) - - Links: - CSS/ Javascript - - Rounded Corners http://kalsey.com/2003/07/rounded_corners_in_css/ - - Menu http://www.tanfa.co.uk/css/examples/menu/tutorial-h.asp - - CSS Zen Garden http://www.csszengarden.com/tr/deutsch - - Float Tutorial http://css.maxdesign.com.au/floatutorial/ - - CSS Layouts, sehr ausfuehrlich http://www.thestyleworks.de/tut-art/layout_div.shtml - - http://www.quirksmode.org/viewport/ !! - - min-/max-width in IE: http://www.cssplay.co.uk/boxes/minwidth.html - http://www.svendtofte.com/code/max_width_in_ie/ - - Fenster ueberwachen http://de.selfhtml.org/javascript/beispiele/fensterueberwachen.htm - - -Part 5. main menu -============================================================================ -- use a css only menu? -- use something like this: http://www.milonic.com/mfa/2004-February/003609.html ? - (looks really nice) - /* edit bzrudi */ - - looks pretty good but isn't under the terms of the GPL) - A good (well working) replacement may be the admin menu from the Joomla CMS, see - http://opensourcecms.com/index.php?option=com_content&task=view&id=2097 - and use the admin login to get an impression, really cool ;-) - -- something simple: http://82.165.8.199/typo3cms/exotec-design.de/index.php?id=89 - -############################################################################ -Open questions -############################################################################ - -- thumbnail size, set a max size (for example 150px), to be able to switch - the size on fly - -- image cache plugin automatically turned on? - in normal image view, image is displayed javascript based the largest possible - -> we're going to have problems with the image cache, as size ever changes.. - -> we already have this problem in the slideshow - - /* edit bzrudi */ - I think we should have the largest possible thumb on filesystem 300px? - smaller ones should be resized by browser. - - i'm thinking about a dynamic image cache - lets say i'm requesting an image between 800x600 and 1024x768 i will get the image 1024x768, - between 1024x768 and 1310x983 i will get an image with 1310x983 - we would have calculate a good value of the different image sizes handling thecompromise - between size of the image and difference in size \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |