Mambo 4.5.1

techn9ne99

Joined: 2004-11-08
Posts: 10
Posted: Thu, 2004-11-18 06:32

I can't get gallery to install in mambo 4.5.1.

It just says "installation file not found". I have verified it is going to correct directory. Has any one else got mambo intergration to work w/ this version of mambo?

 
techn9ne99

Joined: 2004-11-08
Posts: 10
Posted: Thu, 2004-11-18 06:41

It appears that the 4.5.1version of gallery is missing the installation and uninstallation files for mambo.

install.gallery.php
uninstall.gallery.php

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-11-18 06:46

No... Mambo changed the format of their xml file in 4.5.1.

You can download the correct gallery.xml from [url]http://cvs.sourceforge.net/viewcvs.py/*checkout*/gallery/gallery/contrib/mambo/gallery.xml?rev=1.3[/url]

 
techn9ne99

Joined: 2004-11-08
Posts: 10
Posted: Thu, 2004-11-18 07:48

That worked. Thanks.

 
rdebruijn

Joined: 2003-06-04
Posts: 3
Posted: Thu, 2004-11-25 14:26

Hi,

I just installed the latest version of Gallery en the gallery-component in my Mambo-installation, but I just keep getting the error 'Path must be a full server path to your Gallery'.
The path to my gallery is
'/home/httpd/vhosts/robertsweb.nl/subdomains/gallery/httpdocs/' and it is on a subdomain.
Has anybody experienced this before? Or is there just no possibility of merging Mambo & Gallery together if your Gallery is on a subdomain?
I did installn Gallery into Mambo before, when it wasn't on a subdomain.
If anybody could help me out here please... :-)

Thanks,
Robert

 
Yiendos
Yiendos's picture

Joined: 2004-11-28
Posts: 3
Posted: Sun, 2004-11-28 22:38

I've been trying to install gallery with mambo 4.5.1. I still new to this CMS and as such need help to incorporate this software.

The last time I installed a modue (Simpleboard) all I had to do was to install a new compontent adminstration > Components > Install/ Unistall. Point to the appropriate zip file and the forum was up and running.

I before I installed this zip file I did find the earlier post which said:

signe wrote:
No... Mambo changed the format of their xml file in 4.5.1.

You can download the correct gallery.xml from [url]http://cvs.sourceforge.net/viewcvs.py/*checkout*/gallery/gallery/contrib/mambo/gallery.xml?rev=1.3[/url]

So I thought the problem was with the gallery.xml file which I replaced with the revised code from the above link. I then added this to existing gallery zip file and tried to install this again.

Can anyone suggest where I am going wrong?

Cheers

Paul

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-11-29 03:02

Gallery can not be installed using Mambo's "upload component" method. You have to install Gallery on its own, and then point Mambo at the XML file that's already on your server in the gallery/contrib/mambo directory.

 
lib99

Joined: 2004-11-29
Posts: 2
Posted: Mon, 2004-11-29 20:30

Hi,

I've been struggling with the installation of Gallery 1.4.4-pl4 (with netpbm) with Mambo Server 4.5.1a on Linux OS for a week or so. I have successfully installed Gallery onto my site on it's own. I then go into Mambo Administration and select Install/Uninstall Components, then install from directory, point to the <system path>/gallery/contrib/mambo directory (where I have the updated gallery.xml file as posted earlier in this thread) and click install.

this all yields "Upload new component - Error" Installation file not found:
<system path>/gallery/contrib/mambo/

Any ideas? I've tried messing around with permissions, but I think they should be ok.

~Lars

 
donbonner

Joined: 2004-12-01
Posts: 1
Posted: Wed, 2004-12-01 21:49

Ok, I have the gallery up and working but can't seem to find a way to install it into mambo. How do I point Mambo at the xml file?

Thanks in advance

 
schoolsite

Joined: 2004-12-20
Posts: 24
Posted: Mon, 2004-12-20 07:38

Ok, here's what I've discovered (Gallery 1.4.4 and Mambo 4.5.1a)

1. Install both Gallery and Mambo and make sure they work on their own.
2. Grab the contrib/mambo folder, grab the xml file link from an earlier post and replace the xml file in the contrib/mambo folder (for this file, when you follow the link, DON'T copy and paste, do a file>save as. Not sure why but the first didn't work for me while the second did.)
3. Zip up the mambo folder
4. Log into Mambo Admin, do a components>install
5. go into Components>Gallery and put in your absolute path (if you don't know it, look in Site>Global Configuration, it's listed there) to gallery
6. Create a menu item, select component, Gallery
7. Go to your mambo page (ie not admin) and log in
8. Click on your gallery link and you should see all the admin functions

It all works well, *except* when I go to add pictures, it opens a new window and forces me to log into gallery again, where I expected it to be integrated with mambo, so something clearly isn't warking as it should. Any suggestions?

 
BrandonDMiller

Joined: 2004-12-20
Posts: 9
Posted: Mon, 2004-12-20 18:36

are your login username and password the same? When I upload pics it pops me out of mambo but it isn't that big of a deal

 
schoolsite

Joined: 2004-12-20
Posts: 24
Posted: Tue, 2004-12-21 00:58

I thought the point was that it would let anyone with a certain level of permission in Mambo edit Gallery? Why would the user even need a gallery account?

I'm installing 1.5, I'll see if that sorts it out.

 
schoolsite

Joined: 2004-12-20
Posts: 24
Posted: Tue, 2004-12-21 02:35

1. Install both Gallery (1.5, get it from http://galleryupdates.jpmullan.com/ ) and Mambo (4.5.1a) and make sure they work on their own.
2. Grab the contrib/mambo folder, grab the xml file link from an earlier post and replace the xml file in the contrib/mambo folder (for this file, when you follow the link, DON'T copy and paste, do a file>save as. Not sure why but the first didn't work for me while the second did.)
3. Zip up the mambo folder
4. Log into Mambo Admin, do a components>install
5. go into Components>Gallery and put in your absolute path (if you don't know it, look in Site>Global Configuration, it's listed there) to gallery
6. Create a menu item, select component, Gallery
7. Go to your mambo page (ie not admin) and log in
8. Click on your gallery link and you should see all the admin functions

It all works GREAT!

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-12-21 03:18

First, if you're downloading Gallery 1.5, use the XML file that comes with it. Don't replace it.

Second - why do you zip the folder? It's unnecessary.

 
BoulderDash

Joined: 2005-01-06
Posts: 7
Posted: Thu, 2005-01-06 14:31

Hey there,
First off.. thanks to all for the great installation information. I've got it running great, but my Gallery is empty. Which brings me to ask this:

Where in Mambo's Administrator does one create and add to albums?

Can it even be done in Administrator, or is the standalone Gallery to be used to add items? Thanks so much,
BD

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Thu, 2005-01-06 15:05

Hi,

you can admin the Gallery via the Mambo frontend when logged on as a privileged user.

Kai

 
BoulderDash

Joined: 2005-01-06
Posts: 7
Posted: Thu, 2005-01-06 15:20

Hey Kai,
Thanks for the help so far. I'm in the "Super Administrator" group and logged in; and have designated "-> Administrator" in the Gallery Component Admin Level and still don't see where to add/create anything.

Where should the controls appear? Thanks again!
BD

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Thu, 2005-01-06 15:34

Hi,

login to the Mambo frontend as admin and choose the Gallery component from your menu. You should see a dropdown box "Admin options" or a link "new album".

Kai

 
BoulderDash

Joined: 2005-01-06
Posts: 7
Posted: Thu, 2005-01-06 15:52

Darn,
Nothing is working as I feel it should (apologies). To whit:

- I installed the "Latest Stable Version of Gallery 1" (gallery-1.4.4-pl4.tar.gz) with Mambo 4.5.1a
- I downloaded the new "gallery.xml" from the post above (http://cvs.sourceforge.net/...)
- I was able to set up Gallery via the dropdown menu "Components > Gallery" (Path is correct, Admin Level is correct, Hiding Right-hand module)

And that's it... I don't see where any controls are, as "Components > Gallery" only lets me configure the above 3 items. I don't log in to the Admin from the front end (if that matters), I go directly to www.website.com/mambo/administrator. Also, I made sure that the Admin login/password were identical in the Gallery login as in the Mambo login.

Any idea why I see no controls? Again, I was able to configure Gallery and create a Menu Item in Mambo that displays it... but I cannot edit it in any way.

Thanks again,
BD

 
BoulderDash

Joined: 2005-01-06
Posts: 7
Posted: Thu, 2005-01-06 16:21

Hey there,
My fault, all. I didn't know that one couldn't control Gallery whilst logging in via the Administrator link. Apparently, one need to log in on the website front end (and since I had originally removed the "Login Form" menu, this wasn't possible). Alas, I've added it back and will use Gallery in that fashion.

Thanks!
BD

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Thu, 2005-01-06 20:37

Hi,

just for info, if you don't want to show the Login Form on your site unpublish it an create a new menuitem to your Mainmenu - Component - Login.
This will generate a link to login.

Kai

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Fri, 2005-01-07 07:41

I am able to add photos and edit the albums easily from the front-end admin in Mambo - awesome!

When I try and access the configuration wizard I am sent to a strange login page titled "Gallery Configuration". I've tried logging in with all the admin usernames and passwords that would apply and each receives "You must log in as an administrator to edit this server's configuration." Once you embed Gallery does it turn access to the configuration wizard off? Is there a way around this?

FYI - I have Gallery storing its albums in /mamboroot/images/stories/albums so that I can access my photos in any Mambo content. This sweet tip is from the MamboForum (probably from Jim G). I wouldn't think that this would effect the config wizard but I mention it here for completeness. Otherwise this is a vanilla Mambo 4.5.1a + Gallery v1.4.4-pl4 install with the Gallery Component from gallery-addons.com.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2005-01-07 08:03

gsbe, please start your own thread when you have a problem instead of adding to an existing one.

Your answer is this; You have to log in as a *Gallery* admin, not as a Mambo admin. (e.g. using 'admin' and the password you created during install)

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Fri, 2005-01-07 10:15
signe wrote:
gsbe, please start your own thread when you have a problem instead of adding to an existing one.

Your answer is this; You have to log in as a *Gallery* admin, not as a Mambo admin. (e.g. using 'admin' and the password you created during install)

I tried admin, in fact I tried every combination of admin and the superadmin username that I'm using in Mambo. There are no users that are recognized by the Gallery login. I verified this by trying the "email password" feature.

I looked for a userlist in the Gallery DB but there is no such thing - in fact there is no data in my Gallery DB. I looked in the .user folder in my albums location and didn't find any usernames there, either. Could they somehow have been deleted? As I mentioned, editing the Gallery while logged into the Mambo front-end works fine and I do have my album sitting inside literally inside Mambo (mamboroot/images/stories/albums/). I would like to edit my configuration and this isn't possible within Mambo as far as I can tell.

Sorry to continue the conversation in this thread...I thought this was a general Mambo thread and wasn't sure if this is a common problem.

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Fri, 2005-01-07 10:54

I had the same problem after copying the albums folder to the /images/stories directory via FTP. Using the shell to copy the albums folder solved the problem - in my case. Not sure, maybe FTP has changed the owner of the files?
Now I'm using a symbolic link to the albums directory: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=104381&highlight=#104381

Kai

 
bruce_np

Joined: 2005-01-11
Posts: 5
Posted: Tue, 2005-01-11 21:04

I have a strange problem:
The first time I click on the gallry link in the browser (IE and firefox)
Gallery thrashes the layout. If I click a second time on the link
everything is ok and works till I close the browser window.

If I open another window it is the same again.

I use:
Gallery v1.4.4-pl4
Mambo4.5.1a

Gallery is installed as a component.

Any suggestions?

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Tue, 2005-01-11 21:53
bruce_np wrote:
I have a strange problem:
Any suggestions?

If you provide a URL we'll take a look at it and try to help ya.

 
bruce_np

Joined: 2005-01-11
Posts: 5
Posted: Wed, 2005-01-12 07:35

Thanks a lot.
The url is:

http://www.ninjutsu.at

(last link on the main menu)

I thought it could be our template, but I also assigned different ones with the same result...

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Wed, 2005-01-12 09:33

bruce_np, what is Port80 Eclipse HTML Editor Plugin? When you first click the link the script is mixing up the order to output the HTML in. This seems fishy. What modifications have you made to Mambo?

 
bruce_np

Joined: 2005-01-11
Posts: 5
Posted: Wed, 2005-01-12 10:58

Thanks for the look.
I think that was a meta tag in the html put in by the html editor.
I removed it and still with the same result.

I dont know of any other changes than the template, that we made.

I tried to use a template that was shipped with mabo for the whole site with the same result.

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Wed, 2005-01-12 11:02

Is your Gallery config running in Standalone mode or embedded inside Mambo?

Which Mambo component did you use to install Gallery inside of Mambo?

 
bruce_np

Joined: 2005-01-11
Posts: 5
Posted: Wed, 2005-01-12 12:09

We use the gallery embedded inside Mambo.

Dont remember exactly how I installed the component ( was not straightforward - think I found a link to an xml file in some forum...)

The code of the component php file is the folowing:
----
/*
* $Id: gallery.php,v 1.2 2004/03/21 17:09:29 jenst Exp $
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
/* load the html drawing class */

$database->setQuery("SELECT * FROM #__gallery");
$param = $database->loadRowList();

/* extract params from the DB query */
$MOS_GALLERY_PARAMS = array();
foreach ($param as $curr) {
$MOS_GALLERY_PARAMS[$curr[0]] = $curr[1];
}

if (!realpath($MOS_GALLERY_PARAMS['path'])) {
echo _("Security Violation");
exit;
} else {
if (! defined("MOS_GALLERY_PARAMS_PATH")) {
define ("MOS_GALLERY_PARAMS_PATH",$MOS_GALLERY_PARAMS['path']);
}
}

print '<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="contentpane">' . "\n<tr><td>\n";
include(MOS_GALLERY_PARAMS_PATH . 'index.php');
print "</td></tr>\n</table>\n";

?>

 
gsbe
gsbe's picture

Joined: 2004-01-27
Posts: 33
Posted: Thu, 2005-01-13 12:32

bruce_np- is your problem fixed? Everything seems to line-up now when I visit your site.

 
bruce_np

Joined: 2005-01-11
Posts: 5
Posted: Thu, 2005-01-13 13:14

The problem is not quite fixed - but we found a workaround:
we included a reload the first time the galery is opended.

Not nice but it seems to work ;)

But if you are still interested in the problem, I think I can reproduce it.

 
scox

Joined: 2005-02-10
Posts: 3
Posted: Thu, 2005-02-10 15:02

Ok, because many people asked how we did it at ninjutsu.at:
so here's the quite terrible hack ^^

just put this peace of code on top of your template file:

<?php
if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
    $goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
    header($goto);
}
?> 

that's it, easy but not the best....

ok, i just figured aut, that the stupid delete function deletes 2 images if u relode the site, so:

if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
   if (!isset($_REQUEST['action']) || $_REQUEST['action'] != "delete") {
      $goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
      header($goto);
   }
}

i turend the error messages off, so i don't know if there occurs a warning... try it out and cahnge some lines if needed....

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Fri, 2005-02-11 00:57

Thanks for the hack. Seems like quite a few prople have this problem. You could probably quote the numbers better than I.

Cheers

 
bluebiker

Joined: 2005-02-13
Posts: 1
Posted: Sun, 2005-02-13 11:26

thanks a lot to Xandl alias bruce_np.

it works also at my page: http://bbn.olrato.de

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Wed, 2005-03-09 13:25
scox wrote:
Ok, because many people asked how we did it at ninjutsu.at:
so here's the quite terrible hack ^^

just put this peace of code on top of your template file:

<?php
if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
    $goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
    header($goto);
}
?> 

that's it, easy but not the best....

ok, i just figured aut, that the stupid delete function deletes 2 images if u relode the site, so:

if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
   if (!isset($_REQUEST['action']) || $_REQUEST['action'] != "delete") {
      $goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
      header($goto);
   }
}

i turend the error messages off, so i don't know if there occurs a warning... try it out and cahnge some lines if needed....

I´ve problem to get that code to work for me :cry:
Is it anything I have to change in the code to work with my site?

The template file that is to be changed, is it the Mambo template or a file in the Gallery?:roll:

Think the "Hack-code" is a good way to solve the problem! :D

 
deoman

Joined: 2005-03-10
Posts: 3
Posted: Thu, 2005-03-10 19:03

I also have som problems. Im using Gallery 1.5RC1

I have integrated it into Mambo 4.5.2 and when i click the gallery link, i get the mainpage from my usual gallery.

BUT; the links are all wrong; when i click a picture, the link looks like this:

http://index.php/?set_albumName=imagecatalogue&option=com_gallery&Itemid=42&include=view_album.php

the link is missing my domain name!

Strangely, some links got my domain name...

Ive checked the MySQL database, and the full path for the Gallery is there.

What am i doing wrong?

Running Apache 2 on WinXP

Path to Gallery:

C:\Programfiler\Apache Group\Apache2\htdocs\gallery

Could it be something with apache config? or the system not liking spaces in the path? or... im just confuzed

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Mon, 2005-03-14 21:18

*Bumb*
I would appreciate if Scox, Bluebiker or Bruce-NP could get me back on track what files is to be changed.

 
scox

Joined: 2005-02-10
Posts: 3
Posted: Tue, 2005-03-22 10:00
Chrillespix wrote:
*Bumb*
I would appreciate if Scox, Bluebiker or Bruce-NP could get me back on track what files is to be changed.

// Gallery Hack
if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
   if (!isset($_REQUEST['include']) || ereg("view", $_REQUEST['include'])) {
      $goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
      header($goto);
   }
}

should do the trick in your template html file (minor change, cause of problems with admin-section)

@deoman:
might be a probelm with your ammbo installation... i think the gallery is looking for the hostname when trying to build the links.... but can't help you there.... i'm not using windows

@bluebiker:
xandl == scox
bruce_np = xandl.ninjutsu.sensei ^^

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Tue, 2005-03-22 11:16

Thanx, Scox for your reply.
But I´m a dumbass and it is still not working for me.:-(

I´v tried to add that code at the top of my template file in mambo and a error code show:"Parse error: parse error, unexpected T_STRING"

The same error shows if i´m adding the same code at the top of index.php in Gallery. Is it another file in Gallery that has to be changed?

In which template file are you adding that code? the mambo-template or the gallery-template?

 
Chips

Joined: 2005-03-22
Posts: 1
Posted: Tue, 2005-03-22 21:15

Quick question - can the gallery use the Mambo database? (same database, username, password) - or does it HAVE to use its own?

Any help would be much appreciated.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2005-03-22 21:42

Gallery v1 doesn't use a database at all, so that's not an issue.

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Wed, 2005-03-23 16:00

Anyone else who knows? :roll:

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Tue, 2005-03-29 06:58

*bump*
Anyone else getting the same error?

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Thu, 2005-03-31 16:28

Problem solved! :D
Got some help from my brother with the code.

 
clorox

Joined: 2004-10-31
Posts: 4
Posted: Wed, 2005-04-06 07:08

I have a couple of questions for you:

Is this the code I need to use?

if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
if (!isset($_REQUEST['action']) || $_REQUEST['action'] != "delete") {
$goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
header($goto);
}
}

Also, which document do I put this code into? Can you tell me a directory/filename to be looking for? Thanks in advance, clorox

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Wed, 2005-04-06 07:40
clorox wrote:
I have a couple of questions for you:

Is this the code I need to use?

if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
if (!isset($_REQUEST['action']) || $_REQUEST['action'] != "delete") {
$goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
header($goto);
}
}

Also, which document do I put this code into? Can you tell me a directory/filename to be looking for? Thanks in advance, clorox

You put the code on top of Mambos template-index file.
The Code that worked for me was:
<?php
global $_REQUEST;

// Gallery Hack
if ($_GET['option']=="com_gallery" && !isset($_GET['rlcoe'])) {
if (!isset($_REQUEST['include']) || ereg("view", $_REQUEST['include'])) {
$goto = "Location: " . $_SERVER['PHP_SELF']. "?" . $_SERVER['argv'][0] . "&rlcoe=1";
header($goto);
}
}

?>

Hope you get it to work.

/Chrille

 
clorox

Joined: 2004-10-31
Posts: 4
Posted: Wed, 2005-04-06 09:02

Ok I tried this file:

/html/templates/index.html

and also my current (modified) template

/html/templates/rhuk_solarflare/index.html

and neither one worked. Can you give me the filename and directory structure I should be editing? Thanks so much!

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Wed, 2005-04-06 09:11
clorox wrote:
Ok I tried this file:

/html/templates/index.html

and also my current (modified) template

/html/templates/rhuk_solarflare/index.html

and neither one worked. Can you give me the filename and directory structure I should be editing? Thanks so much!

Don´t know why it is not working for you.
The index-file is the one in your:
/html/templates/rhuk_solarflare/index.html

/Chrille