From: Chris K. <ck...@ya...> - 2004-10-21 23:37:27
|
Hi everyone- We are looking for someone that would be interested in writing up part of the packaging script for Gallery 2 that would create a Mac OS X Installer.app package for installing Gallery 2. Something that did the following would be idea: -let the user choose what database engine they want to use and make sure it is configured properly and running. (Oracle, Postgres, MySQL) (10.4 and coredata and if someone was really ambitious...) -install globally to /Library/WebServer/Documents/gallery2 or /Users/~username/Sites/gallery2 -fire up the default web browser and get them started configuring -direct them to documentation on how other people can see their site. Apple probably has this lying around somewhere. I talked with some of the people that work on Fink (fink.sf.net) and they have some scripts that they use to make their Installer package here: http://cvs.sourceforge.net/viewcvs.py/fink/scripts/bindist/ This could probably serve as a basis or at least give some ideas. Anyways, if you are interested in helping out let us know or just write the thing :) -Chris Kelly |
From: Chris K. <ck...@ya...> - 2004-10-21 23:50:36
|
Chris Kelly wrote: > I talked with some of the people that work on Fink (fink.sf.net) and > they have some scripts that they use to make their Installer package > here: http://cvs.sourceforge.net/viewcvs.py/fink/scripts/bindist/ This > could probably serve as a basis or at least give some ideas. Pasted the wrong URL.. http://cvs.sourceforge.net/viewcvs.py/fink/scripts/installer/ |
From: Phil R. <jen...@ju...> - 2004-10-22 19:39:35
|
Hi, I've joined this list as I'm working on some changes to the Gallery component for Mambo and I'm having some problems with following what's going on inside Gallery. My questions concern version 1.4.4-pl2 The Mambo component for Gallery currently sets up a define MOS_GALLERY_PARAMS_PATH and then include()'s the Gallery index.php page into the Mambo layout. What I am trying to achieve with my component is to allow the Mambo administrator to set an "albumname" parameter for the menu item in Mambo that uses the Gallery component and then set the required variables, before Gallery is included, to point it at that album. The reason behind wanting to achieve this functionality is that Mambo will now allow you to create more than one menu entry with the same component and to have different "parameters" for each menu entry. This will hopefully allow people to create proper Mambo menu entries pointing to particular albums within Gallery and have Mambo format its menus correctly for the existing CSS (Mambo adds an id="active_menu" to the link). When a link is clicked on in mambo you get a url like http://www.justthesepeople.co.uk/component/option,com_gallery/Itemid,64/ which basically says use the component called com_gallery and get its parameters from menu itemid 64. (Sorry if I'm teaching anyone to suck eggs here I just don't want to assume you've used Mambo before :) ) At present the only way to view a particular album is to create "URL" menu item which merely point to the full URL including query string variables to view a particular album, and due to the way Mambo works this does not set up the menu formating correctly. To create the functionality I want I need a menu item pointing to the gallery component with parameters for the menu item specifying the album name to be shown. I believe I need to create the $include variable (in this case "view_album.php") and the $set_albumName variable before then including the index.php from Gallery. I've found through trial and error that simply giving these variables global scope and setting them before including the Gallery index.php causes peculiar problems. If I set these variables and then include index.php before the gallery has been visited normally (i.e. without setting the variables and visiting the normal Gallery root) then the script goes into infinite redirects to the URL for the root album. If I have visited the gallery normally and then try to visit it with the component setting the variables before the include then gallery displays the previously visited page. I assume this is because I'm screwing up the way gallery deals with these variables in relation to some information stored in a session. I'm afraid I'm having trouble working out what I need to do to set these variables in a manner which does not cause these problems. Can this be solved by include()ing some of the initialisation scripts from Gallery into my component first and creating the correct classes for Gallery to function normally? Also whilst searching for clues in the script I found these lines in init.php, * item. +2 DB calls. <sigh> */ $db = $gallery->database{'mambo'}; $results = $db->query('SELECT id FROM ' . $gallery->database{'user_prefix'} . "components WHERE link='option=$GALLERY_MODULENAME'"); $row = $db->fetch_row($results); $componentId = $row[0]; $results = $db->query('SELECT id FROM ' . $gallery->database{'user_prefix'} . "menu WHERE componentid='$componentId'"); $row = $db->fetch_row($results); I don't know how actively changes are being made to the 1.x version of Gallery but these seem to be a bit over the top and I believe can be safely replaced simply with $MOS_GALLERY_PARAMS['itemid'] = $Itemid; I've changed this in my install and tested it using the standard Mambo component and it seems to cause no problems. This also means that should the same component be used twice in the menu's the correct ID is used for the breadcrumb menu as the original code effectively pulls a random ID from the database. Sorry for posting such a long ramble as my first post to this list. Hope I've managed to explain myself clearly too :) Phil 'jentulman' Rennie |