Mambo / Joomla! + G2

michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-06-01 14:42
drwhit73 wrote:
the embedding component will not install. Keep getting this error

Quote:
File /home/_/public_html/main/media/install_429db59a41ec4/mambo/gallery2.php does not exist!

Any ideas?

The number letter combinations after the install_seems to change every time. The latest was

Quote:
File /home/_/public_html/main/media/install_429dbb0199d0a/mambo/gallery2.php does not exist!

Hi,
you path seems to be incorrect
"/home/_/public_html/" do you have a directorie solely named "_"

this problem isn't the component, did you install other components experienced the same problem? could you give somemore info, how is the zip file named you try to install?

sorry i can't help you just without some more info,
Michiel

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Wed, 2005-06-01 15:45

Michiel,

You're right, I didn't know that. I'm not a programmer at all. Thanks for letting me know though!

I tried your mod_album_tree.zip module and it worked fine. I see what you did, it provides a complete list of all the albums from which you can click on.

I asked this question a while back and valiant replied something about using the template.

Take a look at the first two posts in this thread:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=29099&highlight=jump

Ideally, there shoudl be a way to call the actual jump to album block itself that's already built into the G2 sidebar.

 
drwhit73

Joined: 2004-02-01
Posts: 16
Posted: Wed, 2005-06-01 21:39
KAC wrote:
How are you installing it? At what point to do you get this error? Are you using the Component installer in the Admin panel of Mambo?

I am installing it throught the control panel. I get it after the com_gallery 2 folder is added and after the database changes have been made. It then fails with that error and does not install.

I noticed someone else had it too. From this thread.

Quote:
Hi,
you path seems to be incorrect
"/home/_/public_html/" do you have a directorie solely named "_"

this problem isn't the component, did you install other components experienced the same problem? could you give somemore info, how is the zip file named you try to install?

The _ in the path I put was just what I substituted for my user name in the path. I have not had problems with any other components. The zip file is mambo.zip. I downloaded it straight from the link on the first post of this thread.

On another note, the component file that was in the original Mambo + G2 thread installs without error.

Thanks

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Thu, 2005-06-02 00:05

drwhit73 : dirfix........ its not installing right cause u .ziped the wrong dir from the cvs file. and it's recommended to use the latest component since it has somewhat of a user synchronization.

 
drwhit73

Joined: 2004-02-01
Posts: 16
Posted: Thu, 2005-06-02 01:57

Thanks for the help. Got it installed properly.

 
drwhit73

Joined: 2004-02-01
Posts: 16
Posted: Thu, 2005-06-02 02:52

Ok, the embedding is working great now. Thanks for all the hard work.

Kerry

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-06-03 09:29

okay i have rewritten back-end and added some features:

userlist page

Quote:
You can view all user and see if they are synced with Gallery2.
if username is pushed you go too user_edit

user_edit

Quote:
summery:
# number of photo's
# number of albums
# album id's (working on album names also)
groups:
# show which groups user belong to
# ability to remove from group( not yet active because i have to check if removing from "Everybody" and "Registered Users" will bring complications!)
#adding to group( is in the making)

tools page

Quote:
# sync user to gallery2( at the moment only copies unsynced user to gallery2, this will change, user already synced will get update so it is perfectly sync ones again. )
# syn groups tp gallery2
# remove mambo groups from galler2

also made a front end adjustment, mambelfish support!

My question to the community, what would you like to see on the userlist and user_edit page and other good idea's are also welcome?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-06-03 10:09

michiel_1981, don't remove a user from the registered users and also not from the everybody group, G2 relies on that.
and i'd also ask the users first if they really need a feature like "remove user from g2 group...". i mean, they can still access site admin -> groups / users.

but of course your advancements sound great, just trying to come up with contructive criticism.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-06-03 10:18

valiant,

thxs, for contructive criticism. ;)

and I already thought i shouldn't do anything with those groups, i'll make sure they can't delete users from there if I'll include this feature.
further i posted because i want some feat back on this, if i should make it available or not and what people want.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-06-03 12:45

updated the album tree module!

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=143656#143656

[edit]
Opend the bugtracker at mamboforge.net

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Fri, 2005-06-03 14:39

michiel 1981,

I installed the 1.1 of the album tree and have problems.

The permission to all my albums are set for registered users only in the G2 admin panel. Therefore, if I install this module and leave the Mambo Module access to "Public", I get this error in the spot where this module should display (embedded):

Quote:
Fatal error: Undefined class name 'galleryembed' in /mywebsite.net/public_html/modules/mod_album_tree.php on line 26

If I set the Mambo Module access to "Registered", I can log in and see the complete list all the albums (like before) but once I click on an album to view it, I get this Gallery error covering the whole page un-embedded:

Quote:
Security Violation

The action you attempted is not permitted.

Back to the Gallery

Error Detail -
Error (ERROR_BAD_PARAMETER) : core.ShowItem can't be parsed

* in modules/core/classes/GalleryView.class at line 124 (gallerystatus::error)
* in main.php at line 278 (galleryview::loadview)
* in main.php at line 86
* in modules/core/classes/GalleryEmbed.class at line 140
* in mywebsite.net/public_html/components/com_gallery2/gallery2.php at line 228 (galleryembed::handlerequest)
* in mywebsite.net/public_html/index.php at line 182

System Information
Gallery version 2.0-beta-3+
PHP version 4.3.10 apache
Webserver Apache
Database mysql 4.0.23-standard
Toolkits ImageMagick, Gd
Operating system Linux sirius.xplic8.com 2.6.9-1.6_FC2smp #1 SMP Thu Nov 18 22:20:16 EST 2004 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Fri, 2005-06-03 14:43
michiel_1981 wrote:
My question to the community, what would you like to see on the userlist and user_edit page and other good idea's are also welcome?

I don't know if this is possible but I'd love to see statistics for each user.

I'd love to know when was the last time they viewed the gallery and what albums they looked at.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-06-03 14:51

KAC, i'd see this rather as a g2 functionality, as a module. of course you could then display the same data in a mambo page, but
- (user) statistics
- last online
- what albums they looked at (that's something that would need to be aggregated by a stats module)
are things that would be interesting not only for mambo, but for G2 standalone too.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-06-03 16:19

KAC,

what are your component settings?

i tried to duplicate but didn't manage to do it. I set all my albums registered view in all situations(logged out, logged in, module(all), module(registered only)) It works perfectly.

the strange thing is if you look at line number 26 i haven't started calling g2 yet, it was just getting all the config stuff.
So can you pm me a url or do i have it already?? So i can view your situation.

thxs,
Michiel

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Fri, 2005-06-03 16:36

michiel_1981,

I have the same problem as KAC with the album tree 1.1 module.

Kai

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-06-03 16:42

i found the problem, little error my part, something got loaded in a other module on my site. sorry i'll update it within 15 minutes.

[edit]
Mod_album_tree: fixed

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Fri, 2005-06-03 17:37

Tested 1.2 of album tree module:
The first error is gone, when I click on an albumlink in the module I receive the following error:

Quote:
Security Violation

The action you attempted is not permitted.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) :

* in modules/core/classes/GalleryView.class at line 124 (gallerystatus::error)
* in main.php at line 278 (galleryview::loadview)
* in main.php at line 86
* in modules/core/classes/GalleryEmbed.class at line 140
* in /afs/lsrv.de/1/w10385/web/test/mambo/components/com_gallery2/gallery2.php at line 228 (galleryembed::handlerequest)
* in /afs/lsrv.de/1/w10385/web/test/mambo/index.php at line 182

Thanks
Kai

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Fri, 2005-06-03 18:28

I also tested 1.2 and found the first problem gone and have the same problem as kai tom.

 
burner
burner's picture

Joined: 2005-03-21
Posts: 8
Posted: Fri, 2005-06-03 21:23

Everything works fine except these 2 error messages -

Mambo FrontPage -

Fatal error: Failed opening required 'http://localhost/gallery2/embed.php' (include_path='.;G:/Interphpdev/php/includes;G:/Interphpdev/php/class') in g:\interphpdev\www\mambo\components\com_gallery2\gallery2.php on line 77

Gallery 2 Admin

Date:
Warning: nl_langinfo() is not supported in this PHP build in g:\interphpdev\www\gallery2\modules\core\classes\GalleryPhpVm.class on line 100
06/03/05
Size: 0 items
Owner: Gallery Administrator

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sun, 2005-06-05 18:56

what kind of setup are you running, where is your gallery2 placed and where is mambo placed. Further your component settings would be nice to know.

thxs,
Michiel

 
n3n

Joined: 2005-06-14
Posts: 9
Posted: Tue, 2005-06-14 15:40

im gettint the error: File /usr/local/apache2/htdocs/mambo/media/install_42aef8d9c1c1b/gallery2.php does not exist!

when trying to install from the component page in mambo admin.
i used the mambo.zip as installation file and also tried with a zipped com_gallery2.

my mambo is installed in /mambo and my gallery is in /gallery2

any ideas on how to fix this problem ?

d3vlabs: in an earlier post you adviced someone to zip the right dir, which dir should this be ?

tnx

also whats the status on the integrated search for mambo and gallery2 ?

 
JupiterZen

Joined: 2004-03-14
Posts: 7
Posted: Tue, 2005-06-14 17:34
n3n wrote:
any ideas on how to fix this problem ?

d3vlabs: in an earlier post you adviced someone to zip the right dir, which dir should this be ?

The content of the mambo.zip is kind of confusing, but you should zip the directory containing the following files (including the images dir):

images (dir)
admin.gallery2.html.php
admin.gallery2.php
gallery2.php
gallery2.xml
install.gallery2.php
toolbar.gallery2.php
userfuncs.php

Installing that as a component should fix your problem ;-)

JupiterZen

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-06-14 17:58

JupiterZen, in what way is it confusing? please tell us how to improve / reorganize it. i'm not using mambo, just managing what goes into cvs etc.

 
JupiterZen

Joined: 2004-03-14
Posts: 7
Posted: Tue, 2005-06-14 18:22
valiant wrote:
JupiterZen, in what way is it confusing? please tell us how to improve / reorganize it. i'm not using mambo, just managing what goes into cvs etc.

Valiant,

It is confusing because the directory of an installed Mambo component is called com_componentname and the installable is usually a zipfile called com_componentname.zip

So I can see a lot of people trying to zip the com_gallery2 directory they find inside the mambo.zip in this thread or from cvs and then running into the same problem.

I know I did ;-)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-06-14 18:58

JupiterZen, so you'd recommend moving com_gallery2/gallery2/* to com_gallery2/. ? i.e. just get rid of the gallery2 folder in between?

 
JupiterZen

Joined: 2004-03-14
Posts: 7
Posted: Wed, 2005-06-15 00:17
valiant wrote:
JupiterZen, so you'd recommend moving com_gallery2/gallery2/* to com_gallery2/. ? i.e. just get rid of the gallery2 folder in between?

Yes, I think it would make more sense that way. And definately make it more intuitive.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-15 08:34

no offence, that sounds good to me. but i'd like to hear the opinion of at least of the devs that worked on the mambo integration code before we change this. hope one of them reads the forums.
deleting directories in the cvs requires the help of an sourceforge.net admin...

 
JupiterZen

Joined: 2004-03-14
Posts: 7
Posted: Wed, 2005-06-15 12:32
valiant wrote:
no offence, that sounds good to me. but i'd like to hear the opinion of at least of the devs that worked on the mambo integration code before we change this. hope one of them reads the forums.
deleting directories in the cvs requires the help of an sourceforge.net admin...

none taken ;-)

I understand you can't just go around changing stuff on your own just because you read it on a forum "somewhere" ;-)

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Wed, 2005-06-15 13:07

JupiterZen,

I'm running 4.5.2 and if I remove the "gallery2" folder from inside the com_gallery2, it will not install using the component installer in Mambo.

 
igonzo

Joined: 2005-06-15
Posts: 6
Posted: Wed, 2005-06-15 17:52

Hi all,

I installed G2 with Mambo 4.5.2 and i'm getting this error :

Fatal error: Undefined class name 'galleryembed' in c:\program files\easyphp1-8\www\components\com_gallery2\gallery2.php on line 87

Anyone can help me ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-15 18:36

i guess you're configuration paths are incorrect.

 
igonzo

Joined: 2005-06-15
Posts: 6
Posted: Wed, 2005-06-15 19:46

Thanks valiant,

It was in fact the paths.... Now it seems to work! But I can't see the pictures, I only see the outer frame ?!

I've another question : Why is it so damn slow ?
Is there any improvement ?

Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-15 20:23

i won't argue about the paths. either you are running php on windows and then you need paths with backslash or not.

@pictures:
got a link for us such that we can see what you mean?
are all pictures not shown or can you see the originals?

@performance:
G2 is far more powerful than G1, that's why it is slower than G1 for small installs.
once you add 10'000-20'000 files to G1, you'll see that G2 scales much better. G2 can handle huge galleries.
see the G2 faq for more details (php accelerators etc).

 
JupiterZen

Joined: 2004-03-14
Posts: 7
Posted: Wed, 2005-06-15 23:10
KAC wrote:
JupiterZen,

I'm running 4.5.2 and if I remove the "gallery2" folder from inside the com_gallery2, it will not install using the component installer in Mambo.

Are you just deleting it (this is not what i meant) or are you making the path to the files one step shorter (this is what i meant)? So the content of the gallery2 dir ends op a level higher inside de com_gallery2 dir.

I'm thinking it might be easier to just zip the Gallery2 directory (located inside the com_gallery dir and trying to install that zipfile as a component

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-06-16 05:54

lol, sorry. my last post is completely out of place. it's answer to another topic.

 
igonzo

Joined: 2005-06-15
Posts: 6
Posted: Thu, 2005-06-16 07:09

Thanks all,

Now it works fine and fast ! It's GREAT.

Another question :) :
How can I change the way it looks, I mean must I modify the Smarty templates of G2 ??!

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Thu, 2005-06-16 12:19
JupiterZen wrote:
KAC wrote:
JupiterZen,

I'm running 4.5.2 and if I remove the "gallery2" folder from inside the com_gallery2, it will not install using the component installer in Mambo.

Are you just deleting it (this is not what i meant) or are you making the path to the files one step shorter (this is what i meant)? So the content of the gallery2 dir ends op a level higher inside de com_gallery2 dir.

I'm thinking it might be easier to just zip the Gallery2 directory (located inside the com_gallery dir and trying to install that zipfile as a component

JupiterZen,

I delete the folder and move the files that were in that folder up one level. This leaves me with just the zip fle containing the files and no folders.

It will not install this way using the component install.

 
jdezarn

Joined: 2003-11-21
Posts: 8
Posted: Fri, 2005-06-17 20:26

I'm using Gallery 2 in Mambo 4.5.2 and I'm confused about the sidebar and album/item editing issues.

When using the sidebar module it disappears when I go into any sub-album. The way the module is set up, it will only show when a person is in the Gallery which makes perfect sense to me since it is of no use when viewing the forum, etc. So I have the gallery on the left main window with the sidebar module on the right which shows fine on the Gallery main page, but disappears when I click on an album.

2nd Q: No matter if I use the sidebar module or the sidebar within G2 I can't edit any items. The page just refreshes instead of going into an edit screen. For example; if I want to edit an album I click on the option in the sidebar menu, but instead of going into the album edit screen it just refreshes the album. The only time it works is if I use G2 outside of Mambo. I'd like to be able to allow my Mambo users to edit their own albums etc.

I've read through many posts and didn't see anything about these particular issues. I apologize if I overlooked where they have been brought up before. Thanks for your time.

Jamie

 
jdezarn

Joined: 2003-11-21
Posts: 8
Posted: Sat, 2005-06-18 15:21

Okay I figured out the 'why' for the second question. The links created by the sidebar go like this: (for Add Comment)

http://www.mydomain.com/index.php?option=com_gallery2
&g2_view=core:ItemAdmin&g2_subView=comment:AddComment&g2_itemId=7
&g2_return=http%3A%2F%2Fwww.mydomain.com%2Findex.php%3Foption%3Dcom_gallery2
&g2_returnName=album

when actually they should simply be (pardon my line breaks)

http://www.mydomain.com/index.php?option=com_gallery2
&g2_view=core:ItemAdmin
&g2_subView=comment:AddComment&g2_itemId=7

the g2_return seems to be unnecessary and messing up my edit functions, when I clear that from the URLs it works great. Could someone steer me in the right direction to get rid of that in the URLs?

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Sun, 2005-06-19 04:16

kdezarn,

The first problem you mention is VERY annoying. It's known problem. If you select the sidebar module to show on ALL pages, then it works.

I am wanting it to work just like you say. I want the sidebar to show at all times while browsing the gallery. Right now it only shows when on the main galler page.

I posted about this problem here:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=31460

 
jdezarn

Joined: 2003-11-21
Posts: 8
Posted: Sun, 2005-06-19 14:26

I have changed it to show on ALL pages for now just to get by, but the links still do not work because of the g2_return markup in the URLs. Like in my previous post. No matter if the sidebar module showed or not, the links never work unless I remove the end of the URL that begins with &g2_return

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-06-21 19:51
KAC wrote:
kdezarn,

The first problem you mention is VERY annoying. It's known problem. If you select the sidebar module to show on ALL pages, then it works.

Mostly this is because no Itemid is given in the embedUrl, the url should look like this:

index.php?option=com_gallery2&Itemid=?your Itemid?

this will solve your module trouble

grtz,
Michiel

ps: if this doesn'y help please pm me your url so i can look at it.
pps: This is checked in the next version and you are reminded that you didn't.

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Wed, 2005-06-22 13:33

michiel 1981,

Thanks for posting this fix. I have a nOOb question.

How do I edit the url link?

I have the "Picture Gallery" link in the top menu. I click it in Mambo Admin Menu Manager and it will not let me edit the URL. The component link comes up as " index.php?option=com_gallery2&Itemid=47" but I can't change it.

I did go to the G2 component settings and changed the embedurl to: "index.php?option=com_gallery2&Itemid=?your Itemid?" but that didn't help. I still only get the sidebar to show when clicking on the top menu link.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-06-22 14:30

KAC,

the part "?your Itemid?" you should replace with the number that is showing up in your url.

hope it helps,
Michiel

ps: this bug is fixed in the soon to be released version.

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Wed, 2005-06-22 14:52

What a frikin noob! :oops:

:lol: :lol: :lol: :lol:

I got it now, thanks Michiel.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-06-22 14:53

KAC,

no problem, happens to the best.

Michiel

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-06-23 11:26

Okay i just wanted to give you all a report what is happing on the component. Version 2 of the component is nearly complete, because of the drastic changes that where made, all modules have to be updated also.
Here some of the changes

  • All the url are being checked if they are correct and you have to fill in less. So less problems there.
  • Itemid bug fixed, you don't have to fill this in anymore!
  • Better quest and user handeling.
  • Basket remains for the session also if you go to other pages.
  • back-end sync tools for: user and groups(with different options)
  • back-end user list, displays if they exist in G2.
  • back-end user-details, shows:number of albums, number of photo's, Groups user belongs, Album details(name, id, parent id, creation date, last mod date, viewed, since_viewed_date, keywords, summary, description)

The modules will be updated and there will be some new ones. Like a module with latest comments, latest x photo's text-based with link, most x viewed photo's text-based with link, nice stats module(number of albums/foto/movies, total views, total size,total comments, etz)

grtz,
Michiel[/]

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Thu, 2005-06-23 12:19

Awesome job Michiel,

I have one module to request.

It would be great to have a module to use on the front page that shows an icon or something small stating an album/picture has been added/updated to the gallery.

I look forward to your V2.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-06-23 12:31

KAC,

no problem, that is a easy one ;)

Michiel

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-06-23 21:28

Okay everybody version 2 is here.

it is probably a bit buggy and not everything will work, but i need to test it on different servers and settings. So please report any problems you have and give the url to your site so i can see your problem.

You need to update your modules as well!

thxs,
Michiel

Don't use on live Site unless you know what you are doing!