Mambo / Joomla! + G2

dave132

Joined: 2005-07-18
Posts: 4
Posted: Tue, 2005-08-09 16:56

I have had G2 Beta 4 working with the latest Gallery Component for a couple weeks. It was working greatI haddn't checked it since last week and today I am getting this error.

Warning: mkdir(/home/jasonupt/public_html/com/gallery2/g2data/cache/module/useralbum/0/1): Permission denied in /home/jasonupt/public_html/com/gallery2/modules/core/classes/GalleryPlatform.class on line 598

Warning: rename(/tmp/14.incBQCTwz,/home/jasonupt/public_html/com/gallery2/g2data/cache/module/useralbum/0/1/14.inc): No such file or directory in /home/jasonupt/public_html/com/gallery2/modules/core/classes/GalleryPlatform.class on line 465
Error
Error (ERROR_PLATFORM_FAILURE) :

* in modules/core/classes/GalleryTemplate.class at line 268 (gallerystatus::error)
* in modules/core/classes/GalleryTemplate.class at line 198 (gallerytemplate::_initcompiledtemplatedir)
* in modules/core/classes/GalleryTheme.class at line 922 (gallerytemplate::fetch)
* in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
* in main.php at line 285 (showitemview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 155
* in /home/jasonupt/public_html/com/components/com_gallery2/gallery2.php at line 91 (galleryembed::handlerequest)
* in /home/jasonupt/public_html/com/index.php at line 182

please help...

 
Guy_Incognito

Joined: 2005-08-12
Posts: 1
Posted: Fri, 2005-08-12 00:25

Hey Everyone,

Ok I'm having a problem getting the gallery2 component to work with my mambo site. I checked everywhere for a solution, but nobody seems to have the answer.
I have gallery 2 rc1 core version working great not intergrated in mambo. It is also installed under the same root as mambo. Ok, here is where my problem is.

When i try to install the gallery2 2.0.6 component for mambo I use the admin component install feature, brose the file, then click upload. The install does not complete and i get this error.

Fatal error: embed(): Failed opening required 'embed.php' (include_path='.:/usr/local/lib/php') in /homepages/2/d112432979/htdocs/mambo/components/com_gallery2/userfuncs.php on line 64

Anyone have any ideas on what's going on here?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-08-12 08:57

dave132,

sorry no clue yet, i'll try a find it and report back.

Guy_Incognito,
your the second one how comes with this error, i'll investigate it this weekend.

regards,
Michiel

 
spct2003

Joined: 2005-08-07
Posts: 5
Posted: Fri, 2005-08-12 14:32

Reposting this from earlier in the thread since it got no responses:

I'm using:

Gallery 2 RC1
com_gallery2 2.0.6
Mambo 4.5.2
Gallery2 Random Image Block v2.3

This was all working for the previous Gallery Beta (flippin' sweet). I actually uninstalled and installed RC1 and now everything works except the Random Image Block which gives this error in place of the random image on the side bar:

Fatal G2 error
Here's the error from G2:
Error (ERROR_CONFIGURATION_REQUIRED)
in modules/core/classes/GalleryEmbed.class at line 761 (gallerystatus::error)
in /home/tonyandn/public_html/modules/mod_gallery_block.php at line 57 (galleryembed::getimageblock)
in /home/tonyandn/public_html/includes/frontend.html.php at line 264
in /home/tonyandn/public_html/includes/frontend.php at line 122 (modules_html::module2)
in /home/tonyandn/public_html/templates/rhuk_solarflare_ii/index.php at line 35
in /home/tonyandn/public_html/index.php at line 204

Any ideas?

 
erikgreywolf

Joined: 2005-08-13
Posts: 2
Posted: Sat, 2005-08-13 05:29

I need to add a sub album for each user when their inital album is created and looking at userfuncs.php thought perhaps it might be as simple as adding a second set of statements in the function g2_user_album(). I have been tried everything but can't seem to get the second album created using this method.

I know that the GalleryCoreApi::createAlbum requires a rootalbum id and I suspect that I am not providing the correct integer in that field (since it isnt working)..... I am quite unsure of the proper sql to get the rootalbum id of the initial album created in the first part of the function.

can anyone help with the code block that I would need to append to the g2_user_album function to accomplish this?

many advance thanks.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-13 07:00

spct2003,

sorry might have slipped through, you need to configur or activate a module in gallery2. And most likely the random image module.

regards,
Michiel

erikgreywolf,
why do you wan to creare a second, a user can do this on his own?
but if you want, this isn't problem.
Store the id from the last creation and recall the same function at the end using the stored id and the new albumname, owner, etz.

regards,
Michiel

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-13 07:17

All with header probems install
the nightly snapshot of 8/12/05 RC1 or later

regards,
Michiel

 
malthazor

Joined: 2003-04-03
Posts: 33
Posted: Sat, 2005-08-13 14:08

Installed 8/13/05 RC1 and restored my unmodified index.php file. Header warnings are gone. Thanks for all the hard work!!!!!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-13 14:16

malthazor,

great to here, i'll post it on mamboforge.net.

regards,
Michiel

Then an other thing, i have crashed with my bike to slippery roads and i have a broken collarbone and this is quite anoying and painfull when doing a lot op things, typing included. because of this, i wont be attending this forum a lot the next week, because it is exhausting to be up do things like getting dressed, shower. So programming and helping will not be on my todo list for this week but resting and doing things what normally would take second in 10 minutes :(

regards,
Michiel

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Sat, 2005-08-13 14:32

michiel_1981, get well soon!

Best regards,
Kai

 
spct2003

Joined: 2005-08-07
Posts: 5
Posted: Sat, 2005-08-13 15:07
michiel_1981 wrote:
spct2003,

sorry might have slipped through, you need to configur or activate a module in gallery2. And most likely the random image module.

Thanks Michiel - I checked it and I had unpublished the random image module so I activated it and other than finding no images to pull from, it seems to work fine but the Gallery 2 Image Block module still spits out that error I listed above.

I checked the configurations for both and there is nothing I can see that I should change that would affect the error it's spitting out.

Any other ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-08-13 15:15

spct2003, ERROR_CONFIGURATION_REQUIRED
-> activate the imageblock module (not just install it).
and if you think it's active, check again and make sure it's still the same error.

 
erikgreywolf

Joined: 2005-08-13
Posts: 2
Posted: Sat, 2005-08-13 17:41
michiel_1981 wrote:
spct2003,

sorry might have slipped through, you need to configur or activate a module in gallery2. And most likely the random image module.

regards,
Michiel

erikgreywolf,
why do you wan to creare a second, a user can do this on his own?
but if you want, this isn't problem.
Store the id from the last creation and recall the same function at the end using the stored id and the new albumname, owner, etz.

regards,
Michiel

I am not allowing my users to create albums, and have a specific client request to add a public and private album when the user logs on.... I am not seeing in the code a variable for the newalbum root.id -- isnt that created when the createalbum is called the first time?? which would mean a query would need to be made... (which is where I am having difficulty)...

so basically a query that would present me with the root album for the user album just created... would enable me to create the second call to the createalbum function.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-13 18:05

erikgreywolf,

wait for the bext version, i have changed then automatic album generation, at is much cleaner and can be changed quit easely, but as i have posted above(page 24).
I have not the strength, to work on mambo component at the moment.

regards,
Michiel

 
spct2003

Joined: 2005-08-07
Posts: 5
Posted: Sun, 2005-08-14 01:32
valiant wrote:
spct2003, ERROR_CONFIGURATION_REQUIRED
-> activate the imageblock module (not just install it).
and if you think it's active, check again and make sure it's still the same error.

It's activated (published, right?). Here's the website.

Here's the error again:

Fatal G2 error
Here's the error from G2:
Error (ERROR_CONFIGURATION_REQUIRED)
in modules/core/classes/GalleryEmbed.class at line 761 (gallerystatus::error)
in /home/tonyandn/public_html/modules/mod_gallery_block.php at line 57 (galleryembed::getimageblock)
in /home/tonyandn/public_html/includes/frontend.html.php at line 264
in /home/tonyandn/public_html/includes/frontend.php at line 122 (modules_html::module2)
in /home/tonyandn/public_html/templates/rhuk_solarflare_ii/index.php at line 35
in /home/tonyandn/public_html/index.php at line 204

Again, this all worked just fine before I installed G2 RC1. I never had an issue at all.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-14 11:34

spct2003, no it isn't.
go to your gallery, click on site admin, click on modules, activate the image block module.

 
spct2003

Joined: 2005-08-07
Posts: 5
Posted: Sun, 2005-08-14 14:05
valiant wrote:
spct2003, no it isn't.
go to your gallery, click on site admin, click on modules, activate the image block module.

Ahh - it needs to be activated through gallery, not mambo. I don't even have an image block module, I did check there for anything off. I'll go try to find it to download and install. Thank you - I knew it must be something I just wasn't connecting the dots on.

 
shomann

Joined: 2005-08-14
Posts: 1
Posted: Sun, 2005-08-14 21:46

Guys, I am new to gallery integration with Mambo and I am running into a problem.

I am using the very latest builds of G2 (8/13) and the mambo component. Gallery install is straightforward and downright easy. However, when I set up the component, the config won't let me change the Path to Mambo. Right now it just lists the URL to my site and if I change it, it gives the incorrect path error.

On the Mambo site, the data shows up properly (names of albums, etc.) but the images do not show. When clicking on the album/image I get an file not found page.

I think this all ties into the component not letting me change the settings. Advice? Suggestions? Thanks!

my site:

http://gearheadx.com/index.php?option=com_gallery2&Itemid=32

gallery:

http://www.gearheadx.com/gallery2

 
aravot
aravot's picture

Joined: 2005-03-05
Posts: 61
Posted: Mon, 2005-08-15 02:53
michiel_1981 wrote:
malthazor,

great to here, i'll post it on mamboforge.net.

regards,
Michiel

Then an other thing, i have crashed with my bike to slippery roads and i have a broken collarbone and this is quite anoying and painfull when doing a lot op things, typing included. because of this, i wont be attending this forum a lot the next week, because it is exhausting to be up do things like getting dressed, shower. So programming and helping will not be on my todo list for this week but resting and doing things what normally would take second in 10 minutes (

regards,
Michiel

Sorry to hear that, Get well soon wishes

 
kenharvey

Joined: 2004-08-17
Posts: 1
Posted: Tue, 2005-08-16 05:25

Hi all,
I am rather new to Mambo and Gallery. I have been following this thread because I have been setting up a website using Mambo and am at the point of installing Gallery. Having done a fair bit of searching and reading forums on integrating a photo gallery into Mambo it seemed the best option was Gallery and this forum has been pretty active.
I have been picking up that the favoured way of installing Mambo and gallery is the structure
hosted_site/mambo/gallery. That's fine for one site but seems to me that for each hosted_site you will need to be having a duplication of both Mambo and Gallery. Is this so? Or is there another way?

Is there a list somewhere of what to install and in what order? And where to get everything from? (Obviously I already have Mambo. I have downloaded Gallery but not installed it yet)

 
Todd_1215
Todd_1215's picture

Joined: 2005-08-16
Posts: 6
Posted: Tue, 2005-08-16 19:59

Hello, I'm a newbie to this forum but not that new to Gallery 1.x. I am new to using Gallery2 though.

The Issue:
I've installed both Mambo 4.5.2.3 and Gallery G2+ from CVS. I've configured both Mambo and Gallery and was even able to get the com_gallery2 component under Mambo configured. What happens when I try to launch into Gallery from my mambo menu item all I get is a "500 Internal Server error". I've tried debugging from Mambo but since I get a 500 error I don't get any debugging info. I don't have access to the http server logs as my ISP has restricted on access to the access log.

Is there any tips anyone can give me in troubleshooting this issue?

mambo site [http://www.oconnorfamilyonline.com]
g2 site [http://www.oconnorfamilyonline.com/gallery2]
Menu Item Link from within mambo[http://www.oconnorfamilyonline.com/index.php?option=com_gallery2&Itemid=28]

 
Lombi
Lombi's picture

Joined: 2005-08-16
Posts: 4
Posted: Wed, 2005-08-17 00:57

I just spent a couple of hours going trough all the 25 pages of this topic :P

Anyways, major props to michiel for developing this, hope you get well soon, can't wait for the next update from you!

Keep it up, mate.

 
Geraint

Joined: 2005-08-17
Posts: 6
Posted: Wed, 2005-08-17 10:24

The mambelfish language switcher does nothing at present and titles etc are only displayed in the default language ("english").

The reason for this is that in the file gallery2.php the call to G2helperclassswitchlang($iso_client_lang, $mosConfig_locale); does nothing.

If you change the line from

$lang = "english";G2helperclassswitchlang($iso_client_lang, $mosConfig_locale);

to

$lang = G2helperclassswitchlang($iso_client_lang, $mosConfig_locale);

The global variable $lang is reset by the mambelfish languge setter etc. and the image annotations switch language are required.

Geraint

p.s. A neat piece of work!

p.p.s. Can you start a sub-forum for Mambo integration - trawling through 25 pages is ridicuous!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-08-17 12:24

Geraint,

could you give some more info? on this

or send me a modified file?

regards,
Michiel

 
Lombi
Lombi's picture

Joined: 2005-08-16
Posts: 4
Posted: Wed, 2005-08-17 16:24

By the way, michiel: you could also look at http://www.thegillis.net/programming_papers/php/mambo,_xaneon,_and_gallery_sef_extension.html which has all the insights of modifying the seo urls with the com_gallery1 extension installed.

Just a thought.
Lombi

 
Lakys

Joined: 2005-06-26
Posts: 55
Posted: Sun, 2005-08-21 03:46

I have a big error message in the G2 sidebar when a new registered user has logged in. The error is fixed once the tool sync users procedure has been run.

I wonder if anyone has already written a small patch in Mambo code to automatically sync new user to Gallery G2 when a new username has been created in Mambo.

Thank you in advance!

edit: I have finally added myself a call to the tool function in registration.php. It is working fine as it should now :)

 
guyver

Joined: 2005-08-17
Posts: 11
Posted: Sun, 2005-08-21 06:39

what i've noticed about the integration is that, the emails registered via mambo were used as the usernames for G2. For some reason, the passwords didn't work though. if the users can log into g2 with their emails and pswd, it'd be good enough for me, but unfortunately..it didn't work :(

 
Lakys

Joined: 2005-06-26
Posts: 55
Posted: Sun, 2005-08-21 06:44
guyver wrote:
what i've noticed about the integration is that, the emails registered via mambo were used as the usernames for G2. For some reason, the passwords didn't work though. if the users can log into g2 with their emails and pswd, it'd be good enough for me, but unfortunately..it didn't work :(

Ah I had that problem too, but it was because I used Mambo Plus and not the original Mambo.
But it can be fixed. Have a look there if you are interested or wait for the 2.07 component.

 
guyver

Joined: 2005-08-17
Posts: 11
Posted: Sun, 2005-08-21 08:51
Lakys wrote:
guyver wrote:
what i've noticed about the integration is that, the emails registered via mambo were used as the usernames for G2. For some reason, the passwords didn't work though. if the users can log into g2 with their emails and pswd, it'd be good enough for me, but unfortunately..it didn't work :(

Ah I had that problem too, but it was because I used Mambo Plus and not the original Mambo.
But it can be fixed. Have a look there if you are interested or wait for the 2.07 component.

thanks dude.. :):):):)):)

 
wahwahbaby

Joined: 2005-08-22
Posts: 3
Posted: Mon, 2005-08-22 06:04

I've enabled the Create new Album config at my Mambo G2 config and also enabled it at the Stand alone Gallery 2 Config(Set my options to Create album AFTER Access and not after new registration)

When I login using my test account, I see the message:
You currently don't have a photo album, but you're entitled to one. Create my album! Remind later!

When I click on Create my Album it just returns to the gallery main page without any new albums made for my test account.

I have too many users already so making the settings to make new albums if a user registers instead of After Access is not an option of mine.

Please help.
Btw, is there a website for G2 Mambo? This single topic is really long so I can't find my answers here (im a beginner at this)

 
wahwahbaby

Joined: 2005-08-22
Posts: 3
Posted: Mon, 2005-08-22 07:03

Hi I've fixed the album for each users. It seems that it will only work if the user clicked on the Your Album link :)

Another question:
How do I remove the text that appears when the user dont have an album yet? The one that says:
You currently don't have a photo album, but you're entitled to one. Create my album! Remind later!

I don't need that so I would like to remove it, It will only bring confusion to my users.

Thanks and more power!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Mon, 2005-08-22 14:47

wahwahbaby,

hi, if you disabled it in mambo backend, it will not come up.

regards,
Michiel

 
dgrant

Joined: 2004-01-08
Posts: 9
Posted: Tue, 2005-08-23 15:46

I'm getting a PHP error at the top of the page, when I click on the Gallery2 component (which I've linked to from a menu item I created).

Warning: Cannot modify header information - headers already sent in /var/www/www.davidgrant.ca/htdocs/mambo/index.php on line 194

Warning: Cannot modify header information - headers already sent in /var/www/www.davidgrant.ca/htdocs/mambo/index.php on line 195

Warning: Cannot modify header information - headers already sent in /var/www/www.davidgrant.ca/htdocs/mambo/index.php on line 196

Warning: Cannot modify header information - headers already sent in /var/www/www.davidgrant.ca/htdocs/mambo/index.php on line 197

Warning: Cannot modify header information - headers already sent in /var/www/www.davidgrant.ca/htdocs/mambo/index.php on line 198

What is going on?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-08-23 19:38

dgrant,

it seams the bug is back, let me get some more info on this.

regards,
Michiel

 
dgrant

Joined: 2004-01-08
Posts: 9
Posted: Tue, 2005-08-23 20:47

BTW, I am running the following versions:

gallery-2.0_rc1
mambo-4.5.2.3
com_gallery2-2.0.6

 
wahwahbaby

Joined: 2005-08-22
Posts: 3
Posted: Wed, 2005-08-24 08:57
michiel_1981 wrote:
wahwahbaby,

hi, if you disabled it in mambo backend, it will not come up.

regards,
Michiel

Where can I edit this? I would like to change the text and add some images here and there.

 
STSC

Joined: 2005-03-14
Posts: 10
Posted: Thu, 2005-08-25 18:24

In RC2 I don't see this warnungs any more, but } ?> } ?> } ?> !??

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Fri, 2005-08-26 18:41

Okay, this is possibly the world's stupidest question - as EVERYONE must be experiencing this problem, so there is probably already a workaround.
But I swear I've searched and searched and found nothing on it.

When clicking on adding a picture, Gallery2 knocks the crap out of my Mambo fixed-width template. I MAY be using the wrong template - the one that came with Gallery2 fresh from the install. I've also stipulated that the left modules NOT be shown (within Gallery 2, though I wonder how a user would then add a picture?) - but they're showing up anyway when clicking on Add a Picture.

And I've read about the "integration template" - but can not find it.

At any rate, it'd obviously be a LOT easier to figure out how to make Gallery2 NOT break my template, than recode it for Gallery2 to become a variable width template.

Any ideas? And again, my biggest apologies is if this is has already been covered somewhere.

Also, to help with searching, just gonna toss in a few keywords:

break template, break width, broken template, too wide

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-08-26 19:35

mambocreed,

which component version are you using?
And probably you need to alter the gallery2 template if it breaks your mambo template i haven't looked much into the template engine and css alteration. Somebody else maybe?

regards,
Michiel

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Fri, 2005-08-26 21:54

Michiel,

Thanks for responding so quickly - I'm using 2.0.6

Also, this G2 Integration sub-board is quickly turning into a big mess :)

Is there anywhere we can request that they set up sub-boards for us? I'd be willing to dedicate my time to moving these posts around and putting them under the right topics.

Obviously, this thing has gotten completely out of hand :) - and it's only gonna get worse if it's not broken up, sooner than later.

As it stands, I think I'm gonna just attempt to yank Gallery2 away from Mambo and redesign my template around it, using Matrix as a base.

The way things are, there's really no way to find an answer to any problems - unless you're willing to troll through 26 pages, plus another umpteen pages under the other topic.

I'm just hoping that, if this is going to be the base of operations, we might be able to organize things a bit better?

Also, the Gallery sidemodule I'm using - I can't figure out how to control what information shows up inside it, and I can't turn off the internal side modules -

I think maybe it might be a good idea to create a Mambo internal template based on Matrix that's chosen when someone picks the integration - and somehow have that communicate to the sidemodule you've created?

But as is, it's so unwieldy as an integration (not that you haven't done an AWESOME JOB) but I think I'm better off just redesigning around Gallery2 for now and just using the registration integration you've provided.

But is there any way to at least call a cron job to run your sync-up or something 'til there's a better solution for that?

And again - the BIGGEST problem right now is that this forum has gotten completely out of control.

It's fairly impossible for anyone to post information that might be helpful to someone else - in hopes that someone else might be able to find it. Again, I can probably recreate a template for Gallery2 faster than I can hunt through 26 pages of posts looking for a solution.

My post was just a "cry for help" that, somewhere within this quagmire, the information had already been posted :)

Let me know what I might be able to do to help.

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Fri, 2005-08-26 22:11

This sounds what I'm looking for:

MINOR HACKS (.tpl and .css)

:: albumbody hack for album background to match the
:: background of your cms (Mambo)

:: css font size/style hack for breadcrumbs font to
:: match the typesetting of your cms (Mambo)

:: gallery/xhtml/codename buttons removal to clean up the gui

:: top pathbar hack to remove G2 welcome message, since there is no user integration yet

But I don't see a file related to that in the MamboForge file base.

At any rate, I can't understand how I might accomplish:

1) Controlling the information presented in the Gallery Sidebar Module. It doesn't seem to have a counterpart within the Gallery2 admin.

2) The Gallery Random Image module doesn't properly return control to Mambo, breaking other modules (SMF Bridge, for instance) - no album can be selected either for it, so if users are posting pictures, there's a chance that a pornographic image could be presented to all users. So it really can't be used on a multi-user site, as far as I know, without specifying a particular picture (which kills the random part of it).

3) The default matrix theme defies the component in presenting its own sidemodules, regardless of the settings.

My guess is that you've had a tough enough time getting it to where it is today - but for me, those are all major issues that make those features impossible to implement.

But again - who's going to troll through 27 pages and tell me, "Hey, I had that same problem - here's how I fixed it."

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-27 06:29

mambocreed,

first i'm setting up a dedicated support board at dev.4theweb.nl visit that one.

then:

  1. The gallery sidebar module, takes over the sidebar of gallery2, so most likely you select the setting to not show the sidebar in the component config. Then you can just adjust the normal sidebar settings in gallery2 and the changes will be visible in the module sidebar.
  2. Random image, is a random image, you could exlude albums that have guest uploading or something. But If you give users access there is always the change that pron will enter your site. So set a specefiek upload album and move images ones you have confirmed there not pron or something else you don't like.
  3. What do you mean, the random module break mambo?
  4. defies the component rules, which versions are you using, this was a issue when we crossed a core version but i adjusted for this to my knowledge or somehing has changed and i have adjust the component again, mind you these 2 pieces of software are moving to a stable release but currently still a lot has to be done.

regards,
Michiel[/]

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Sat, 2005-08-27 06:49

Michiel,

Awesome!

1) There are some hardcoded settings in Gallery2 (forms set to 60) that obliterate any chance of integrating the script into a 760 fixed width layout. Gallery forces 2 columns in various situations - and there's simply no room for a 3rd column. So I just yanked it and removed ALL modules on the pages where Gallery is present.

2) I'd like to set Random Image to only pull from one album. Is that possible? If I can restrict it from pulling from the member-created albums, that would also be cool. But I don't know how to do that?

3) This is the word I got on the Random Image Module - not techie enough to understand it:

For some reason, the Gallery random picture module operates outside Mambo’s global environment, and does not return to it properly, so none of the variables defined in SMF are retained after the Gallery module is executed.

SMF refers to Simple Machines

4) Yeah, that's the problem I was referring to in 1. Right now, there seems to be a column hard-coded to run to the left - and with the 60-width forms, it takes up the whole page.

Also, on the porn bit, do you know if there's any "reporting" available for Gallery2? I don't really care about porn - but I know it can suck my bandwidth - plus it's banned on my server.

So it'd be nice to at least have a reporting mechanism for users on that type of thing. Maybe they'll police themselves a bit.

Thanks for all your help.

And, for anyone else who needs to remove the "60" on the forms, just use a robust text editor and do a folder "search and replace" through the entire module directory in Gallery2. Search for "60" and replace with "40" (include quotes) or whatever you like, then zip that up, remove the module directory under Gallery2 on your server, and replace with the modified files. There are 17 files that require modification, spread throughout the modules directory.

But you can still expect problems with other parts, like "Custom Fields", which also take up a huge chunk of real estate and will break a 760 fixed-width template, pretty much no matter what you do. I've posted the problem in Support, but they're so busy with other stuff, it's not a high priority and probably won't be fixed any time soon.

And this code lays outside the "templates" directory - so you can't conquer it any other way than hardcoding.

Thanks again.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-27 07:01

1) This has to change in gallery2 then.

2) There are 2 possible ways, you can set on a per album bases if the should be included in the image block or not. second, you can set the module to only show random images from 1 album. Just specefie the itemId in the module used for specefiek.

3) To which random image module are you refering? And yes smf bridge gives me a headache to, the screw with the mambo core files so maybe we won't work nice together, this component doesn't touch any code files but uses them where ever it can, so problems are known.

4)reporting i don't know maybe a custom hack has been made but i don't know of any one. please report back if you find one ;)

regards,
Michiel

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Sat, 2005-08-27 07:17

Michiel,

Thanks again. On

2) I still don't understand what you're telling me - I'll take a closer look at it, though.

3) I'm referring to the Random Image Module created with your project, available on MamboForge. The Mambo module. And I'm not a coder - but I do know that the official SMF Bridge (not the one from MamboHacks) doesn't modify any core Mambo files. It's all "over my head" - but it might be something you might check out with the SMF guys - they're very cool, and extremely helpful.

4) Yeah, that's a big one - I can't believe there's not a HUGE demand for it. Spamming comments is bad enough - imagine the porno companies coming in and taking over your multi-user gallery.

Thanks again for all your help.

Also, one other BIG question :)

Is there ANY way to run the user sync as a cron job?

And if I turn off user registration for Gallery2 within Gallery2 (I can't remove the "Register" links from Gallery2 using your component) - will the integration method you've employed still be able to register new members for Gallery2?

If I could turn off Gallery2 registration, then automatically run the user sync every 5 minutes or so, that might work until we have a better solution?

Basically, we're taking pictures at parties to promote our site - and only registered members (of Mambo and therefore Gallery2) can view the full-size pictures.

Thanks.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-27 08:10

mambocreed,

2) i'll try to explain it in more detail. You can use the module to show only random images from 1 album or sub tree, you have to fill in the album id into the form field "Item id" you can find this in the back-end module manager of mambo.

you can also exlude albums from ever showing up in the image block going to "edit album" the tab "album" and scroll down until the "image block" settings and adjust those to your needs.

regestritation can be deactivated savely, mambo takes care of it.

cronjobs is possible just get the code from admin.gallery2.php and adjust it so it can be run as a cronjob.

regards,
Michiel

 
mambocreed

Joined: 2005-08-26
Posts: 19
Posted: Sat, 2005-08-27 08:39

Thanks again!

I use SMF Bridge in place of Mambo registration. Wondering if I can place that code into that file, and automatically run that sync every time someone registers?

Also, I'm sure this shows my complete ignorance, but why is it that the sync isn't run every time someone registers?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-27 08:49

mambocreed,

because there are no hooks in mambo yet, that can tell me that there is new registration, this is planned to be in 4.5.3 of mambo. but all the issues around mambo at the moment i'm suprised the could release yesterday.
if the smf bridge takes over the mambo one i wonder if the new system will work?

regards,
Michiel

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2005-08-30 09:00

UPDATE: Nevermind, nevermind. I was able to install it... it installed as a component, not a module. My duh.

Configuring is a different thing. I battle that one out.

Ok, bonehead question here. Am not a Mambo guru but have good skills in other CMS.

Question... how can I install the com_gallery2_v2.0.6.1.zip manually?

zlib is not available on the particular server. I unzipp and retarred the files and structure. Still failed using the upload function. I unzipped the files and maintained the structure in the ../com_installer/module directory and tried that. Error came back and said "XML setup file is not for a "module"...

Am stuck. Sorry to chew up bandwidth on this, but help anyone?

tx, drhiii

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-08-30 09:53

drhiii,

use the component installer not module installer!
unzip maintaining folder structure and upload to tmp directory and piont the component installer there! Last time i did that was 6 months ago so i might be wrong.

regards,
Michiel