ResourceSpace Changes to SVN Trunk on 2009/08/21 by http://fabricatorz.com This readme accompanies the file feedback.php which should be added to the pages directory, and resourcespace-eyeball-2009-08-21.patch which should be applied once inside the installed resourcespace directory like so. The patch is against revision 1257 of http://svn.montala.net/svn/resourcespace cd /YOUR/RESOURCESPACE patch -p0 < resourcespace-eyeball-2009-08-21.patch * Added a simple uploader option to the edit.php so that one can use the following URL to quickly upload files to resourcespace: http://YOUR/RESOURCESPACE/pages/edit.php?simple=1&ref=-1&java=true * This means many many changes to pages/edit.php, longer term that file should be rewritten in my opinion. * Added some more robust code for refreshing the bottom frame, if it needs updating in pages/upload_java.php * In pages/collections.php added code for custom config option, $global_css which by default is set to the standard css location of: $global_css = "$baseurl/css/global.css"; REASON: At present, can't completely override CSS, resulting in bulky extra css which has to be overrode, plus not good structure of documents for having a folder such as $baseurl/css/CUSTOM/mystyle.css which is friendly for custom installs using svn:externals * In pages/collections.php added $colour_css option: $colour_css = "$baseurl/css/eyeball/Col-eyeball.css"; If $userfixedtheme set, then previous code used so no installation will be broken. Also, code works for passing in colourcss from URL. * In pages/collections.php added hook replacestylesheets which will also allow for a complete override of all stylesheet via a plugin. The emphasis on this is COMPLETELY, to avoide unknown cascades and to trim down resourcespace total download size. * In pages/colletions.php added save saved search with a quoted query as the title of the search, which appears as if saving a subcollection, but its just a query * Added some code documentation to include/collections_functions.php and option to refresh_collection_frame to allow disabling $k. * Added code to include/collections_functions.php and documentation, to allow for saving a search with a string as saved search. * added support in include/general.php for the $custom_separator in the pager function * In include/general.php added functions to check if a url and email address are valid. Also, added two functions for printing a common alert box and a common message box throughout the site. Right now the css for this is in the feedback.php, but the patch also adds it to css/global.css in the right place. It allows for styled commons ways to message a user. There is also a function print_alert_from_array() which allows one to pass in an array of errors which are printed in a box with class alert. * In include/general.php added hooks replaceheadernav1 which at present can't be completely overridden. Also Added a custom php variable to allow for overriding top nave called $custom_top_nav_override, which is off until set true. * In include/general.php added a hook replaceheadernav2 for the second set of header navigation which can't at present be completely overwritten. * Not included in this patch, but have created plugin which allows for playing back previews through quicktime, available here: svn co http://svn.fabricatorz.com/fab_public/trunk/projects/eyeballnyc/resourcespace/players * added configuration options, all I have in my config.php, but directions for including are below... * Added pages/feedback.php as a feedback form, included in attachment * Added following strings for feedback form to language/en.php: # NOTE: The following should be added to the language/en.php if accepted $lang['feedback'] = 'Feedback'; $lang['feedback_intro'] ="Please fill out the following form and click submit."; $lang['feedback_subject'] = 'Feedback Submission from the Web'; $lang['feedback_success'] = 'Thanks for submitting feedback! We will do our best to get back to you quickly.'; // added option for custom override of top navigation // You need the following to purge all links suggested by resourcespace // and not just to add on new links with custom nav. // below see the commented out structure I sought. $custom_top_nav_override = true; /************ * I added the following fields for nice intuitive user interface, but this is * not in the patch and should not be included. $lang['projects'] = "Projects"; $lang['users'] = "Users"; $lang['home'] = "Home"; $lang['searchresults'] = "Search Results"; $lang['help'] = "Help"; $custom_top_nav[0]["title"]=$lang["home"]; $custom_top_nav[0]["link"]="$baseurl/pages/home.php"; $custom_top_nav[1]["title"]=$lang["projects"]; $custom_top_nav[1]["link"]="$baseurl/pages/collection_manage.php"; // NOTE: This is how you call the simple uploader with simple=1 // one could also run this code for the flash uploader to make it simple $custom_top_nav[2]["title"]=$lang["upload_files"]; $custom_top_nav[2]["link"] ="$baseurl/pages/edit.php?simple=1&ref=-1&java=true"; $custom_top_nav[3]["title"]=$lang["users"]; $custom_top_nav[3]["link"]="$baseurl/pages/team/team_user.php"; $custom_top_nav[4]["title"]=$lang["searchresults"]; $custom_top_nav[4]["link"]="$baseurl/pages/search.php"; $custom_top_nav[5]["title"]=$lang["help"]; $custom_top_nav[5]["link"]="$baseurl/pages/help.php"; $custom_top_nav[6]["title"]=$lang["feedback"]; $custom_top_nav[6]["link"]="$baseurl/pages/feedback.php"; *************/ // overrides for the main stylesheets. I also added a hook to be able to // replace the entire documents CSS on-demand, see the patch for this $colour_css = "$baseurl/css/custom/Col-custom.css"; # Uncomment and set the next line to lock to one specific colour scheme (e.g. greyblu/whitegry). $userfixedtheme="custom"; // Currently there is >  all throughout the codebase...this is a // style and should be configurable. I replaced all the custom separators // with an option. The master config is set to the old default shown below: $custom_separator = "> "; // I prefer without so would include this in my config.php // $custom_separator = ""; // The following strings I added in the patch to language/en.php because they // are needed for the simple uploader $lang['entername'] = "New collection name"; $lang['upload_title'] = "Title(s)"; // also added feature for simple uploader to quickly name a custom saved search $lang['save_saved_search'] = 'Save "Title" as saved search';