Mambo+G2 FAQ and Document
This topic will function as a gathering of info and putting together a FAQ and Documenten on embedding Gallery2 into Mambo. This will also contain a help file on the component and detailed description what everything means and does!
For this I ask you all to post questions and their answers if you know them, that are commonly ask. You also can contribute tutorial on many subjects regarding G2+mambo. Example: how to load different templates for different sub albums or how to link to a sub album. I’ll gather all info and make links here in this first post and ship the most up to date FAQ and Document with the component for back-end viewing.
So please help make this the most easily and user-friendly Gallery component Mambo can have!
FAQ
- Where can I find the most resent files?
Table of contents
- Install procedure:
- The actual install.
- Install messages explained.
- Configuration explained.
- Back-End overview
- Front-end overview
- css+template adjustments
- Sidebar adjustments
- Modules
- mod_gallery_block
- mod_album_tree
- mod_gallery_stats(not relaised)
- mod_gallery_comment(not relaised)
- mod_gallery_lastvisit(not relaised)
[/]
[/]
[/]
[/]
[/]
[/]
Posts: 430
@ In this post: Mambo + G2 or at mamboforge.net. I’ll keep both in sync and to the latest release. I’ll will work on the naming convention ;)
[/]
Posts: 430
chapter: Back-end overview, component version 2.0.6 or higher
Tools:
You have 3 tools you can use here and most likely 2 of them you will use after install, because they sync your mambo user base and groups to Gallery2. The first is quit important if you want your mambo users to view as users and not as guests. If you don’t do this, users that haven’t visited the gallery2 component will not exist in the gallery2 database and strange things will happen with modules outside the component page.
The last tool is there to remove the user groups if they are useless or you just want to get rite of them.
Using Mambo groups:
I’ll explain a bit about how you can use the user groups from mambo.
First, when you have synced the groups, the groups won’t have any specific rights attached to them. So don’t you worry about all those administrators you just synced.
Second, The users are synced only to there highest group they have access to. So they only exist in 2 groups: highest mambo group and “Registered Users
Posts: 430
chapter: Back-end overview, component version 2.0.6 or higher
User management
Here you will see an overview of the entire mambo user base and their status with in G2. You can see if mambo users are blocked and too which group they belong. It will also detect G2 sync problems, here is table with all the error messages and what they mean.
Posts: 430
chapter: Back-end overview, component version 2.0.6 or higher
Album Management
An overview of your gallery is given here, in a tree form. It will give you some data like: Last modified, warnings and album name. The warnings are self-explaining and can be handled by clicking on the album name it belongs to. This will bring up more specifics about that album and you can adjust title, keywords, summary and description. It will also show the current album highlight. Further more it will show links to parent album, child albums and a link to the owner of this album.
Posts: 164
How to set up com_gallery2* for the first time.
Keep in mind the component is designed to confirm the setting before proceeding.
Often times when users are setting up the component for the first time, they enter all the values at once and get confused as to what is wrong.
Follow this process one step at a time until you have your configuration complete.
During the setup you will have some optional setting to configure as well as some REQUIRED entries to make. The following three items will be required in order to proceed:
1. Full Path to Gallery G2:
2. Relative path to Gallery G2:
3. Path to Mambo:
The component is designed to confirm these setting before proceeding.
Therefore, first enter the "Full Path to Gallery G2:" ONLY and nothing else then hit "save".
If the Full path to Gallery G2 is set wrong you will get an error stating the Full path to Gallery G2 is incorrect.
If the Full path to Gallery G2 is set correctly, you will NOT get the error stating the Full path to Gallery G2 is incorrect. Instead, the component will look at the next item (Relative path to Gallery G2 and notice it is empty and give you an error stating "Relative path to Gallery G2 is incorrect". You can now proceed to setting the Relative path to Gallery G2.
Now that the Full path to Gallery G2 is correct and you see error "Relative path to Gallery G2 is incorrect", enter the Relative path to Gallery G2 and hit "Save".
If the Relative path to Gallery G2 is set wrong you will get an error stating the Relative path to Gallery G2 is incorrect. Try entering the correct setting and hit "save".
If the Relative path to Gallery G2 is set correctly, you will NOT get the error stating the Relative path to Gallery G2 is incorrect. Instead, the component will look at the next itme (Path to Mambo and notice it is empty and give you an error stating "Path to Mambo is incorrect". You can now proeed to setting the correct Path to Mambo.
Now that the Full path to Gallery G2 and the Relative path to Gallery G2 are correct and you see error "Path to Mambo is incorrect", enter the Path to Mambo and hit "Save" and repeat until it's set correctly.
Now you can chose your other options and you're done.
Posts: 430
KAC,
thxs!
michiel
Posts: 3
I'm having a problem setting it up.
I only barely know php, but i kinda have tracked down the problem.
I have gallery installed under http://www.mysite.com/mambo/gallery2
The only relative path to gallery it would accept was ./gallery2
the only path to mambo it accepts is /mambo/
it generates an embeduri of /mambo/index.php? etc
When the site is embeded, the url of the galleries becomes http://www.mysite.com/mambo//mambo/index.php? etc
I don't know whether it's generating the embed url incorrectly or the testing the path to mambo incorrectly.
Posts: 430
empath,
what is your gallery2 core version?
did you download from http://galleryupdates.jpmullan.com/G2/
Regards,
Michiel
Posts: 3
no, i didn't download it from there.
The version i have is gallery 2.0 beta 3, though.
Posts: 3
I think the problem is the path to mambo.
it should just be . or /
but it will only let me put in /mambo/
Posts: 430
empath,
Can you give the url to your site, and you have to download from that url it is more up to date and fixes some path problems!!
Regards,
Michiel
Posts: 2
Let's say that the path is correct, in my example:
/home/savagec1/public_html/components/com_gallery2
Yet it still give the "full path" error, even when the other path of /home/savagec1/public_html/administrator/components/com_gallery2 is given.
Edit to add:
Yes it's still able to find userfuncs.php in the Tools portion.
Posts: 430
savagecat,
hi the full path should piont to your gallery2 install, not the component install!
regards,
Michiel
Posts: 2
Silly me, I thought installing the gallery2 component would actually install it.
So I ftp gallery2 and give it the full path of
/home/savagec1/public_html/gallery2 and /home/savagec1/public_html
...and both bomb.
Posts: 2
Thanks for the mambo mods they have made my site much better.
On the random picture mod though when i install it makes the sidebars to larges so i have to scale the picture back to 120. the problem is not the size of the picture but the space around the picture does not decrease then you increase the size so it pushes the bar out making it larger, anywhere to change that?
Also where do i change teh border around it from blue to say black?
If you dont understand the first part my site is at www.piratesahoy.net
Posts: 34
Hi,
I got the same issue
My setup is a clean install of
- mambo 4.5.2.3
- g2 beta 4
- g2 component v2.0.6
I point the full path to the g2 beta 4 directory /home/w/westin/www/g2
G2 is running OK at [url]westin.nu/g2[/url]
Mambo is running OK at [url]westin.nu/cms[/url]
I still get the "Full path to Gallery2 is inorrect!" message
What am I missing?
Thanks for any input
Kind regards,
Thomas
Posts: 2
trailing "/" perhaps?
Posts: 430
savagecat,
don't understand your Q?
Regards,
Michiel
Posts: 430
bobbob1975,
this is css change, just look at the source and change this in the template css or mambo css.
thomaswestin,
try trailing slash as bobbob1975 pionts out report if this isn't working
Regards,
Michiel
Posts: 13
michiel_1981,
Your test site shows the Gallery 2 sidebar with the tree navigation. While I can get Gallery to do this natively I can't get the side bar to show it. I have seen a link to mod_album_tree in this thread but can't find it anywhere. Is this the answer to my quest?
Keep up the good work!
Posts: 430
speleo,
do you have the latest sidebar module installed?
regards,
Michiel
Posts: 13
I've got
Gallery 2 b4
mod_galleryside_v2.3.zip
com_gallery2_v2.0.6.zip
mambo 4.5.2
However I'm also seeing wierd stuff in that I can go into G2 native and change the [blocks] [album select] [selector type] and and nothing seems to happen. I'm running two sites and what works on one is not the same on the other. I need to do a bit more investigating to see if the issue is with the componenet, G2 or my brain.
Posts: 13
OK...I got my head around this now but still have an issue.
I had to go into the [display] [themes] [matrix] [Blocks to show in the sidebar] and turn on "Album Quick Links [DHTML]" to show the tree view in the G2 native sidebar.
Now when I go into [blocks] [album select] [selector type] and change the options I see the changes.
So it would seem that G2 works natively but the tree is lost when embedded. As far as I know I'm on the latest codebase:
To see what I'm talking about here is the native G2 http://www.darencilau.co.uk/gallery2/main.php and the mambo embedded http://www.darencilau.co.uk/index.php?option=com_gallery2&Itemid=45.
Is this something to do with going to beta 4 or in my configuration?
Posts: 34
Thanks a lot, the trailing slash solved it! I tried this at some stage also, but the problem is that when you hit save, the field is emptied. Then you get the next message about the relative path and the same thing there, hit save and the field is emptied. Easy to miss that the error message has changed when you have tried ten different ways already... Also with the mambo path.
Suggestion: Some info in the config form about a trailing slash would be good since pwd in putty etc doesn't give that. Also, if the fields could be verified in a step by step manner, as a wizard would help a lot, or at least some info about the above
Kind regards,
Thomas
Posts: 34
Hi, me again, two more issues
1. User Management
G2 component is configured with the paths OK
Now in the User Management I get this info:
Note: The Blocked text is rendered white in my browser (Firefox 1.0) so I didn't see this until I copy/pasted the text here!
So I ran the Tools / Sync Users & Groups, no errors but I still got the same info in User Management as above
Also, how do I unblock a user?
2. Albums
When I go here I get this info:
What am I doing wrong?
Thanks,
Thomas
Posts: 34
I've been scratching my head with the integration for a few hours and I was seeing this error as well as not getting the pictures showing and the album links were wrong. It finally occurred to me to disable the url rewrite functions in G2 and it all came good including getting rid of the error you are seeing above.
I take it using url rewrite in combination with the mambo component is not allowed, or is there someting in the configuration that can be tweaked to allow it to work correctly?
John
Posts: 430
jko,
it can be done, just look at my demo site but, it's to complicated to explain at the moment, working hard to get it user friendly.
regards,
Michiel
Posts: 34
Hi,
OK I disabled the two boxes that were checked in G2 / URL Rewrite (it was Show Object and Download objects) -Is this the way to disable it correctly? I still get the error in the Mambo component / Album management.
Also, if anyone could please tell me (a G2/Mambo newbie) how to unblock a user (see my previous post). Thanks,
/Thomas
Posts: 11
Hi there. I installed the Beta and the mambo components and all looks good. Your instructions for updating the mambo com are great and work perfectly. Now when I go to my gallery in the menu (like to Component) as the menu type it is embedded in a wrapper and not as pretty as your demo test site.
But I get an error as well. The pictures do not show up though the albums are there and wehn I click on an album, I get a path that does not exist:
http://www.mysite.com/v/snakes/IMG_0026.JPG.html
I am using 404SEF component but the same thing happens when i disable that component - so should not be the problem. Also the Gallery2 image block shows links to a photo but not the photo itself. When I click the link it opens the page above which does not exist.
The /v/ is NOT in my configuration.
The /snakes/ is the name of the album so that is cool.
Any ideas? Maybe is should be a differet type of menu link or it was not integrated corectly?
Cheers
Posts: 430
buddhaboa,
short urls, are giving problem, try setting it off for gallery2 in mambo and in gallery2.
I managed to get it working on 2 different sites, but it was a pain in the butt. I'm writing instructions on this until and a good clean configuration.
hints:
look at your embedded gallery2 short urls settings!
make sure the gallery2 rules come in front off mambo rules
debug and rewrite any errors in the rules
[edit]
Don't use wrapper, use component link!
goodluck,
Michiel
Posts: 11
michiel_1981
Just took short urls off in Gallery setup and it works now for displaying the pictures and links. Looks quite good
On the gallery2 image block I get teh following errors in my mambo site:
[/img]
Posts: 11
Hi there
I got the URLs to work given your feedback. Just tried integrating the gallery2 sidebar and I get this error when I go to my gallery:
Both the image block and the sidebar give errors in my mambo site. The Com Link now works though :P
Posts: 430
buddhaboa,
put your debug-mode to "buffered" in the gallery2 config file.
paste the extra info you receive after this in http://gallery.pastebin.com and place the link to the pastebin here.
thxs,
Michiel
Posts: 11
Thanks michiel_1981
I did the buffered option and pasted the output into the bin. Here is the link:
http://gallery.pastebin.com/326694
I hope you can figure out a fix for this...I am sure it is something I did wrong
Posts: 32509
buddhaboa, 1. there's no error in this pastebin entry. it's just a lot of debug output, but no error and certainly not the same as the one you had before.
2.please preserve the formatting when pasting the error. it's very hard to read if it's just a single huge line.
Posts: 11
Good Point Valiant,
Here is the error I get with the Gallery2 Sidebar http://gallery.pastebin.com/326828
Here is the error I get with the Mambo Gallery2 Image Block: http://gallery.pastebin.com/326832
Final problem is the gallery2 looks very small and compressed inside my mambo - I looked at teh various themes but cannot get it to appear as nice as with the Demo Site that michiel_1981 has is integrated on.
Does Gallery2 NEED to be in the same Database as my mambo instance? Currently it is in a separate database...
Posts: 430
buddhaboa,
gallery2 doesn't need to be in same database, but it is preferred! It will be faster because the components and modules can use the database engine from mambo and a second engine isn't started.
looks and feel of demo site, i have changed the matrix theme and did some css changes to make it work this way. Thxs for the complement ;)
regards,
Michiel
Posts: 11
Hi Michiel
I will work on the matrix theme and try to make it look as nice as you did - unless you can share what you have done already?
Any hints on what I did wrong to generate the Errors in the Gallery2 Image Block and Gallery2 Sidebar?
Posts: 61
Michiel,
I too interested in your blue theme I am using the same 247portal blue template for Mambo, (I hope you share with us)
Posts: 430
aravot,
pm me your e-mail adress and i'll send i to you.
regards,
Michiel
Posts: 11
Anyone have a solution to the Error in the sidebar and the image block that I am getting? I am not sure what I might have done wrong and wonder if reinstalling with fix it.
Posts: 34
I solved my problems myself. I had not to setup G2 component correctly (mirror users and the two following boxes need to be set to Yes...)
/Thomas
Posts: 2
----edit---
sorry, I just realized I should have posted this in another thread...
Hey all, glad I finally found this thread as I have been researching this problem for quite a while now--here it is: thanks in advance!
After installing gallery 1.5 with mambo 4.5.2 and realizing that exec() was permanenlty disabled on my hosting server--
I unistalled g1.5 and installed gallery2 core 0.9.32 with mambo component 2.0.6.B.1
-outside of mambo, ie, directly from the url, i can upload and view pics fine--when I link to G2 from Mambo, it shows fine, but the uploaded pics dont show, yet while it is loading the page, it shows the frame of the pic, and then shrinks down to the text--
The only errors I seemed to be getting is when I went to the "Album Management" part of 'components' in mambo-I got something like this:
nput Array does not match ?: SELECT DISTINCT g2_AccessMap.g_accessListId FROM g2_AccessMap
but then, it just stop producing that error, yet I still cannot see the pics on the frontend of mambo--any ideas?
I hope I was short, eloquent, yet succint--Thank you
btownyouth.com
Ego Eime
Posts: 4
Hi!
I have just installed Gallery2 beta4 and it works great.
Now I want to integrate it with mambo but get error on.Full Path to Gallery G2. I have tried several combination but I'm not really shure about what the Full path is.
I have installed it in c:/inetpub/www/gallery2 folder, and the g2data folder is in c:\g2data.
Witch one is the Full Path to Gallery G2: ????? :-?
Please help... / Tom
Posts: 430
tomSWE,
the first, g2data contains the photos, etz the first contains the program.
regards,
Michiel
Posts: 1
Can some please help me find the path to what this is asking
1. Full Path to Gallery G2:
2. Relative path to Gallery G2:
3. Path to Mambo:
My ftp to the compent is
ftp://smilepolice.id.au/public_html/components/com_gallery2/
Posts: 430
smilepolice,
what is your full server path to mambo?
What is your full server path to gallery2?
these are not ftp paths!
regards,
Michiel
Posts: 4
sorry but my confusion remains ;)
Is the full server path to Gallery 2 = http://blabla.com/gallery2/main.php ????
Posts: 430
tomSWE,
nope, that is your URL not a server path
your server path should /home/smilepolice.id.au/public_html/ or something
you can find your server path to mambo in your mambo config file!
just post that one and tell me in what directory you place your gallery2 install(not the component!!).
regards,
Michiel
Posts: 4
michiel_1981
I guess this is what u want.
Just posted the first 10 lines.
The Gallery2 installation is c:\Inetpub\www\gallery2
This site is running on a local network.
The server is as u can see a Windows Web Server
---code----
<?php
$mosConfig_offline = '0';
$mosConfig_host = 'localhost';
$mosConfig_user = '*****';
$mosConfig_password = '*****';
$mosConfig_db = 'mambo';
$mosConfig_dbprefix = 'mos_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = 'C:/Inetpub/www/mambo';
$mosConfig_live_site = 'http://localhost/Mambo';
$mosConfig_sitename = 'testsite';
---end code----