PostNuke + G2

thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-11-18 22:13

You can't really edit the html for the sidebar block.. the G2 API generates it and passes it back to the integration app. The latest version in CVS has an option to switch off having the sidebar in a separate block.

Regards,
Mike

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Sun, 2006-11-19 19:58

I changed from database locking to file locking and it seems to have gotten rid of the issue. Why would database locking work in standalone, but not in embedded?

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Tue, 2006-11-21 17:04

Sorry.. I can't answer that one.. ironically IIRC it's meant to be file locking that is more unreliable on Windows.. but I'm not convinced it has anything to do with PostNuke.. you could try posting to a more general forum.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Tue, 2006-11-21 17:10

Still working on the group synchronization... proving to be slightly more complex than the user synchronization. If anyone wants to contribute then I need an icon for the PostNuke administration menu. You'll get in the credits.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Wed, 2006-11-22 02:23

mGallery2 package now up on the NOC. Please report any bugs there.

Regards,
Mike

 
boricua

Joined: 2005-11-26
Posts: 44
Posted: Fri, 2006-11-24 19:04

Hi:

Nice news indeed!!!!!!!!

One question. Can I have three admin account within PostNuke and one within Gallery 2?? I mean three admins in PostNuke and one in Gallery2...

Thanks.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Tue, 2006-11-28 12:57

You can have as many as you like in either. The Admin groups are not linked.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Thu, 2006-11-30 01:23

Just in case it wasn't clear.... http://noc.postnuke.com/projects/mgallery2/
C'mon..... get downloading.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Fri, 2006-12-08 00:30

I think the name mGallery2 is the clue to answer that. To be honest I haven't tried but as far as I know the integration and embedding API is not applicable to 1.x

Regards,
Mike

 
wctrd

Joined: 2006-12-09
Posts: 1
Posted: Sat, 2006-12-09 11:59

Has anyone been able to get the mGallery2 PostNuke module to work on a windows system? I think the problem is with the "Base Directory" & "Gallery2 URI" settings in the admin configuration page. The default paths where for UNIX based systems, I need the correct paths for a Windows system, please help!!!

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Sun, 2006-12-10 01:29

Sorry, mine's on linux also so I can't help you, but FYI I just tested this and it worked great, also made albums for all 750+ of my users.

I wasn't sure what the check mark for side block was, so I didn't check it.. if it's suppose to stop the side bar from coming up, it didn't work.. but i'm guessing it's for something else

Thanks, this is something i've been waiting for.

Gallery version = 2.2-svn core 1.1.16
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, SquareThumb, Thumbnail, Gd, LinkItemToolkit
Acceleration = partial

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sun, 2006-12-10 01:59

The intention of the sidebar block check box is to put the gallery2 side menu into a separate postnuke block.... or not. Some people like it that way.. some don't. Make sure you are using the latest version from the NOC for that feature.

Regards,
Mike

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Mon, 2006-12-11 07:35

tonight I downloaded the newest gallery2 SVN and tried this with a new install..

a couple things i've noticed, does anyone else see these?

a user now isn't added to gallery until they login to postnuke and goto the gallery2 module (last time all users were pulled in at once) but I like this better since not all 700 users still come to my site.

I've also noticed that the "your album" link doesn't show when looking at gallery2 within postnuke but I can see it if logged in as same user on stand alone --edit-- Duh make sure you have the check mark for a link checked in user album settings --

last (this isn't about the module) but themes are set different in the site admin, but not sure if this causes any problems (like the above)

see below for ver info

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Wed, 2006-12-13 16:15
curbob wrote:
a user now isn't added to gallery until they login to postnuke and goto the gallery2 module (last time all users were pulled in at once) but I like this better since not all 700 users still come to my site.

It can happen several ways. Resynch users will do your entire PostNuke user and group database. If you setup the hooks correctly then users/groups should be created/updated/deleted dynamically as you create/update/delete them in PostNuke. And lastly as you have found it will try to create a user in gallery2 if it does not exist when you access the module.

Regards,
Mike

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Wed, 2006-12-13 19:18

Thanks Mike..

I had tried the resync but it still hadn't added all my users (i had worked before with a previous copy of gallery2) maybe there is info put into a postnuke sql table saying it already synced all the users.. not sure.. (this was just a FYI)

but i'm not complaining, actually it works better for me to have the user and their albums created when they connect to gallery, since probably 200 of my users don't go to the gallery.

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
johnlutz

Joined: 2006-11-28
Posts: 2
Posted: Thu, 2006-12-14 18:50

Sorry if this is the wrong place for this, but can't really find the right place.

I am running Postnuke .762 and tried embedding Gallery2. Everything works just fine outside of Postnuke. Problem I have inside is that there is no login for anyone. I only need a few people to have access, but it G2 does not seem to be getting permissions from Postnuke. I am assuming something is setup wrong.

I tried the Resynch Users and Groups which I thought might pull over the pn data into G2, but I get an error:
Error (ERROR_MISSING_OBJECT) : 3 GalleryGroup
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 142 (gallerycoreapi::error)
in modules/core/classes/GalleryCoreApi.class at line 2424 (galleryentityhelper_simple::loadentitybyexternalid)
in /home/therealt/public_html/trgnet/modules/mGallery2/pnadmin.php at line 305 (gallerycoreapi::loadentitybyexternalid)
in /home/therealt/public_html/trgnet/includes/pnMod.php at line 735
in /home/therealt/public_html/trgnet/index.php at line 108

If I go back and try it again it says this:
You are not authorized to carry out this operation

It keeps giving me either the first or the second error. I don't even know if this is the button that will fix my login issue, but that is the only thing I see to try. Has anyone have an answer on why it is not recognizing me as having permissions to admin the gallery inside of pn? I have myself as admin on everything and i added Gallery as well just in case it needed to be specified. Help please....

Also, is there a way to get rid of the Register link at the top or will that go away when it recognizes users? Thanks for any help.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-12-16 12:57
johnlutz wrote:
Sorry if this is the wrong place for this, but can't really find the right place.

I am running Postnuke .762 and tried embedding Gallery2. Everything works just fine outside of Postnuke. Problem I have inside is that there is no login for anyone. I only need a few people to have access, but it G2 does not seem to be getting permissions from Postnuke. I am assuming something is setup wrong.

I tried the Resynch Users and Groups which I thought might pull over the pn data into G2, but I get an error:
Error (ERROR_MISSING_OBJECT) : 3 GalleryGroup
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 142 (gallerycoreapi::error)
in modules/core/classes/GalleryCoreApi.class at line 2424 (galleryentityhelper_simple::loadentitybyexternalid)
in /home/therealt/public_html/trgnet/modules/mGallery2/pnadmin.php at line 305 (gallerycoreapi::loadentitybyexternalid)
in /home/therealt/public_html/trgnet/includes/pnMod.php at line 735
in /home/therealt/public_html/trgnet/index.php at line 108

If I go back and try it again it says this:
You are not authorized to carry out this operation

It keeps giving me either the first or the second error. I don't even know if this is the button that will fix my login issue, but that is the only thing I see to try. Has anyone have an answer on why it is not recognizing me as having permissions to admin the gallery inside of pn? I have myself as admin on everything and i added Gallery as well just in case it needed to be specified. Help please....

Also, is there a way to get rid of the Register link at the top or will that go away when it recognizes users? Thanks for any help.

Make sure you have the latest version of mGallery2 from the NOC. If you do then please post this as a bug at http://noc.postnuke.com/projects/mgallery2/. Include in your submission "select pn_uid,pn_name from pn_users;" "select * from pn_groups;" "select * from pn_group_membership;" "select * from g2_ExternalIdMap;" "select g_id,g_userName from g2_User;" "select * from g2_Group;" and "select * from g2_UserGroupMap;". None of this should contain any sensitive data.

Make sure you have the synchronize checkbox ticked in the admin menu in PN. Another thing to try would be to "delete from g2_ExternalIdMap;" and try to resynch again... but preferably after submitting the above information otherwise it will be more difficult to find the original problem.

"You are not authorized to carry out this operation" is just PN security... nothing to do with the mGallery2 module. Try not to use the browser back button or you will run into this a lot.

Regards,
Mike

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Tue, 2006-12-19 20:32

How would you link to a random pic

within gallery it says
<?php @readfile('http://www.cmudfly.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

but that opens the gallery outside of postnuke.. I also tried using a php block and adding
@readfile('http://www.cmudfly.com/index.php?module=mGallery2?g2_view=imageblock.External&g2_blocks=randomImage');

any ideas?

----------------------------------------------

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Tue, 2006-12-19 20:48

ok sorry, i found the block in postnuke to do the random pic. I only need to change the title and date, not to be shown, but it looks good

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Tue, 2006-12-19 23:12

I enabled short URLs because some forums (PNphpbb) will not link to a pic in gallery2 if it's a script, but if you have short URLs in gallery enabled it will work.
Problem is all the links with the embeded gallery2 doesn't work.
instead of
/index.php?module=mGallery2&g2_itemId=5795

it changes to

/v/owner-rides/

any ideas how to work with this?? :)

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
dynamic21

Joined: 2006-12-23
Posts: 2
Posted: Sat, 2006-12-23 22:17

I'm having a problem that I saw was resolved on a different mGallery2 support forum. However, the forum was in a different language, and Google's translation was still quite difficult to understand.

First, here's my Installation info:

Gallery Version: 2.1.2
PHP Version: 5.1.1
Webserver: Windows NT
Database: mySQL 5.0.24
Postnuke version: .764

*Notes: My Gallery2 stand-alone installation is working great. No problems that I've seen thus far. I've installed/initialized/activated mGallery2 module in Postnuke with no problems.

Problem:

(I'll go through the steps I took throughout the process, as I've found some answers to questions that have been seen asked here)

Initially, trying to view the mGallery2 module would produce a blank white page with no errors. There was definitely an error, however my theme that was installed wouldn't allow me to see them. So, for anyone who gets a blank white page when trying to view mGallery2, change your theme until you see the displayed error when trying to view mGallery2.

The error said it couldn't open "embed.php" in the specified Base Directory... Meaning I'd entered the incorrect Base Directory within the mGallery2 Administration. So, I corrected that (I think I did, or else I don't think I would've gotten rid of that error), and now get this error:

"Fatal error: Class 'GalleryEmbed' not found in C:\...\modules\mGallery2\g2helper.php on line 59"

I've been stuck on this error for the past 14 hours and trying to figure out what I'm doing wrong. Are there ANY directories that need write permissions that I've missed?

Again, it seems this error was solved here: http://support.pn-cms.de/module-CMS_Support_Forum-viewtopic-topic-22901.htm
but it's so difficult to decipher it, with or without the Google translation.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sun, 2006-12-24 11:49
dynamic21 wrote:
I'm having a problem that I saw was resolved on a different mGallery2 support forum. However, the forum was in a different language, and Google's translation was still quite difficult to understand.

First, here's my Installation info:

Gallery Version: 2.1.2
PHP Version: 5.1.1
Webserver: Windows NT
Database: mySQL 5.0.24
Postnuke version: .764

*Notes: My Gallery2 stand-alone installation is working great. No problems that I've seen thus far. I've installed/initialized/activated mGallery2 module in Postnuke with no problems.

Problem:

(I'll go through the steps I took throughout the process, as I've found some answers to questions that have been seen asked here)

Initially, trying to view the mGallery2 module would produce a blank white page with no errors. There was definitely an error, however my theme that was installed wouldn't allow me to see them. So, for anyone who gets a blank white page when trying to view mGallery2, change your theme until you see the displayed error when trying to view mGallery2.

The error said it couldn't open "embed.php" in the specified Base Directory... Meaning I'd entered the incorrect Base Directory within the mGallery2 Administration. So, I corrected that (I think I did, or else I don't think I would've gotten rid of that error), and now get this error:

"Fatal error: Class 'GalleryEmbed' not found in C:\...\modules\mGallery2\g2helper.php on line 59"

I've been stuck on this error for the past 14 hours and trying to figure out what I'm doing wrong. Are there ANY directories that need write permissions that I've missed?

Again, it seems this error was solved here: http://support.pn-cms.de/module-CMS_Support_Forum-viewtopic-topic-22901.htm
but it's so difficult to decipher it, with or without the Google translation.

I think your base directory is still wrong. What values do you have in the admin panel and what is the actual path to where the gallery2 code is installed ?

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sun, 2006-12-24 11:52
curbob wrote:
I enabled short URLs because some forums (PNphpbb) will not link to a pic in gallery2 if it's a script, but if you have short URLs in gallery enabled it will work.
Problem is all the links with the embeded gallery2 doesn't work.
instead of
/index.php?module=mGallery2&g2_itemId=5795

it changes to

/v/owner-rides/

any ideas how to work with this?? :)

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

Just testing this myself now and initially seems to be working ok. Do you have short URLs working in PostNuke in general ?

Regards,
Mike

 
dynamic21

Joined: 2006-12-23
Posts: 2
Posted: Sun, 2006-12-24 20:48

My website is http://www.dragonsofdraconis.com

I have Gallery2 installed in my main root. So, you can access my Gallery by going to http://www.dragonsofdraconis.com/gallery2

Which is what I have as my base directory: http://www.dragonsofdraconis.com/gallery2

UPDATE: SOLVED!!

You're absolutely right... even though I was pointing it to the gallery2 directory, I was using the web URL... I should've been using C:\... which I've done, and is now fixed!!! Thanks!

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Mon, 2006-12-25 21:28
wctrd wrote:
Has anyone been able to get the mGallery2 PostNuke module to work on a windows system? I think the problem is with the "Base Directory" & "Gallery2 URI" settings in the admin configuration page. The default paths where for UNIX based systems, I need the correct paths for a Windows system, please help!!!

Just to make it clear... on a Windows system... Base Directory... which is the absolute pathname to your gallery2 install in the filesystem... should be something like:

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\gallery2

Gallery2 URI... which is the the absolute path to your gallery2 install in the local web space... should be something like:

/gallery2

Regards,
Mike

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Mon, 2006-12-25 23:46
thaughbaer wrote:
Just testing this myself now and initially seems to be working ok. Do you have short URLs working in PostNuke in general ?

Regards,
Mike

yes, short URL's work correctly (in postnuke) on my site

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Tue, 2006-12-26 15:57
curbob wrote:
thaughbaer wrote:
Just testing this myself now and initially seems to be working ok. Do you have short URLs working in PostNuke in general ?

Regards,
Mike

yes, short URL's work correctly (in postnuke) on my site

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

In that case I would guess you have a problem in your .htaccess. Can you post it here ?

Regards,
Mike

 
mobiGeek

Joined: 2003-10-28
Posts: 5
Posted: Thu, 2006-12-28 08:19

I've hard-coded the maxSize parameter to the call to randomImage so that the generated image fits within my PN theme's border. In particular, I modified pnblocks/random.php line 110 changing:


'show' =&gt; 'title|date')

to:


'show' =&gt; 'title|date', 'maxSize' =&gt; '135')

Anyone want to give me a pointer as to where I have to look to add this maxSize so that I can modify the value via the admin panel, save the value, and reference it in this template rather than having a hard coded value?

Thanks,
mG.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Thu, 2006-12-28 15:23
mobiGeek wrote:
I've hard-coded the maxSize parameter to the call to randomImage so that the generated image fits within my PN theme's border. In particular, I modified pnblocks/random.php line 110 changing:


'show' =&gt; 'title|date')

to:


'show' =&gt; 'title|date', 'maxSize' =&gt; '135')

Anyone want to give me a pointer as to where I have to look to add this maxSize so that I can modify the value via the admin panel, save the value, and reference it in this template rather than having a hard coded value?

Thanks,
mG.

Log it as a feature request at the NOC.

Regards,
Mike

 
mobiGeek

Joined: 2003-10-28
Posts: 5
Posted: Thu, 2006-12-28 20:31
thaughbaer wrote:
Log it as a feature request at the NOC.

Done, thanks!

mG.

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Sat, 2006-12-30 17:21

Since the Postnuke htaccess is a bit large, i'm just going to link to them (changed them to txt so you can read without downloading)

http://www.cmudfly.com/files/PN-htaccess.txt Postnuke's htaccess

http://www.cmudfly.com/files/g2-htaccess.txt G2's htaccess

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Sat, 2006-12-30 19:38

@curbob:
Which PN-Version are you running?
Seems to be PN 0.761
Please update to the newest 0.764
It's quite important. (For Security and for the mGallery2-Module)

Your .htaccess-file is very very old.

Do you really want to use pnphpbb2? I know a lot of sites, which were hacked because of pnphpbb2?

Why did you paste the content of the g2-htaccess into your root-htaccess?


Carsten-Volmer.de

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Fri, 2007-01-05 01:43

I didn't paste the content into that htaccess it must have auto added it.

I will check my installs.. also I think I had tried to move my 10K messages from pnphpbb to forums but it didn't work..
thanks for the reply and i'll see what happens

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
curbob

Joined: 2003-10-06
Posts: 70
Posted: Wed, 2007-01-10 20:40

Ok, I updated postnuke, got rid of the gallery2 code in the PN htaccess (still cant for now change to pnforums)
I cleared out my htaccess for gallery2 and tried it again.

URL rewrite still dont work.

Activating URL rewrite within postnuke:
it does change the url to /v/owner-rides/ but I think it should be /gallery2/v/owner-rides/ but even if i manually type what it should be, it doesn't work.

with a clear htaccess file i tried to activate URL rewrite for gallery2 it's self and it worked stand alone, but still not in PN.
So it's got to be something in PN or PN's htaccess.

http://www.cmudfly.com/files/PN-htaccess.txt Postnuke's htaccess

thanks for your help

Gallery version = 2.2-svn core 1.1.25
PHP version = 4.4.3 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/3

 
kaveman

Joined: 2003-04-18
Posts: 7
Posted: Thu, 2007-02-15 13:32

I have two questions:

1. Does mGallery2 should synchronize users and groups?? (I have some error message when doing sync but all users are synchronized)
“BŁĄD: Wywołano nieznaną funkcję: Groups_adminapi_getnamebygid()
gid => 4” -> this means call to unknown function??

2. If mGallery2 synchronize only users how can I set permissions to galleries in base of postnuke groups I’ve tried something like this:

Group1 mGallery2:: RestrictedAlbum ::* Comments
AllGroups mGallery2:: RestrictedAlbum ::* None

But it’s not working.

Gallery version = 2.1.2
PHP version = 4.4.2 apache
Webserver = Apache
Database = mysqlt 4.1.21-standard
Acceleration = full/2

 
kaveman

Joined: 2003-04-18
Posts: 7
Posted: Thu, 2007-02-15 13:37

Ok I'm sorry my mistake i found a solution

 
laurin1

Joined: 2007-03-05
Posts: 1
Posted: Mon, 2007-03-05 01:57

I've installed mgallery and gallery2, but the users will not synchronize and I'm not getting any errors.

 
norsejeff

Joined: 2007-03-06
Posts: 14
Posted: Wed, 2007-03-07 22:10

I have this module, and when I click a link, it does nothing at all. Also it's messing up my side block's CSS. Maybe this is too old for the version of gallery I have? I also get some errors when I try to run the block....

Error (ERROR_CONFIGURATION_REQUIRED)

* in modules/core/classes/GalleryEmbed.class at line 851 (gallerycoreapi::error)
* in /mnt/Target01/328594/www.vgrealms.com/web/content/modules/mGallery2/pnblocks/random.php at line 109 (galleryembed::getimageblock)
* in /mnt/Target01/328594/www.vgrealms.com/web/content/includes/pnBlocks.php at line 134
* in /mnt/Target01/328594/www.vgrealms.com/web/content/modules/Xanthia/pnuserapi.php at line 606
* in /mnt/Target01/328594/www.vgrealms.com/web/content/modules/Xanthia/pnclasses/Xanthia.php at line 212
* in /mnt/Target01/328594/www.vgrealms.com/web/content/themes/VG/theme.php at line 139 (xanthia::do_themeheader)
* in /mnt/Target01/328594/www.vgrealms.com/web/content/header.php at line 42
* in /mnt/Target01/328594/www.vgrealms.com/web/content/header.php at line 45
* in /mnt/Target01/328594/www.vgrealms.com/web/content/index.php

That's what I get instead of a random image block. I've configured the two fields in the admin section to exactly where they should be...

http://www.vgrealms.com/index.php?module=mGallery2

Take a look see there.

 
norsejeff

Joined: 2007-03-06
Posts: 14
Posted: Sat, 2007-03-10 07:11

I got the intergration to work perfectly now. It turns out it was my HTML messups that caused it not to work. Now the only problem I'm having is with the side block. I still get that same error. I'll have to find out whats wrong on my own I guess (scary thought!)

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Sat, 2007-03-10 13:33

Is anyone still maintaining this? I updated my random block with some new features, such as maxSize and frames, but I'm not sure how to submit the changes.

 
norsejeff

Joined: 2007-03-06
Posts: 14
Posted: Sun, 2007-03-11 00:47

So your random block is working correctly? I'm jealous. Did you have to do anything special to get it to work? Also, where'd you installed Gallery2 at? Maybe because I have gallery2 installed in the modules folder its messing up?

But for your problem, try going into pnRender in the admin menu and delete cache and delete compiled templates. I usually have to do this whenever I change a block.

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Mon, 2007-03-12 02:17

I have gallery installed in the modules/mGallery2 folder. Works great.

 
norsejeff

Joined: 2007-03-06
Posts: 14
Posted: Tue, 2007-03-13 05:13

What a brilliant idea. I've got to try this.

Nope, nothing changed. I still get the same error.......... Wonder what the deal is.

After much searching, I found you need to have the image block module downloaded and installed. I got it working now. I just need to find out how to make the module look different now.

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Tue, 2007-03-13 12:38

I stumbled on to that solution last night as well. I disabled the image block accidentally and saw the exact error you were getting. I was going to post this morning, but you beat me to it. :) I haven't tried making the module look different, though. Just using the default matrix theme.

 
tsm1mt

Joined: 2006-12-31
Posts: 2
Posted: Fri, 2007-03-16 05:25
dynamic21 wrote:
UPDATE: SOLVED!!

You're absolutely right... even though I was pointing it to the gallery2 directory, I was using the web URL... I should've been using C:\... which I've done, and is now fixed!!! Thanks!

With a little insight from this thread, I have my rewrite working.. mostly. Gallery2 in PN.

In my case, I have G2 in /~tsm1/gallery2 and PN in /~tsm1/postnuke

Sometimes I get "v/v/" in the URL, and when I change the size of an image (from the regular to fullsize) it repeats a large portion of the URL.

http://www.tmcom.com/~tsm1/postnuke/v/Green1973ScoutII/Green732005/2005GreenDiscBrake/dcp_0007.jpg.html

Becomes

http://www.tmcom.com/~tsm1/postnuke/v/Green1973ScoutII/Green732005/2005GreenDiscBrake/v/Green1973ScoutII/Green732005/2005GreenDiscBrake/dcp_0007.jpg.html?g2_imageViewsIndex=1

Duplicating the "v/Green1973ScoutII/...." bit a second time in the URL to resize the image.

This also happens at times when going to another album.

Did I foul up a setting or does yours work like that, too?

I'm running G2 in a multi-site setup if that matters.

mGallery2 in PN Base dir is "/home/tsm1/www/gallery2" with URI of /~tsm1/gallery2

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Sun, 2007-03-18 02:05

If you want to see an example of the modifications I've made to mGallery2 on my site, feel free to look at http://www.styrophobia.org/

If anyone is interested, I can try to make an upgrade package to upload to the NOC. FYI - the transform hook uses simple bbcode-like code. It looks like this:

[mg2]itemId[/mg2]

I'd like to enhance it so it can take args, but I can't think of a clean way to do it. One thing I've considered is:

[mg2=itemId showOwner=1 showDate=1 showTitle=1 fullSize=1 maxSize=100 albumFrame=bamboo itemFrame=dots]

 
Mooncastyre
Mooncastyre's picture

Joined: 2005-07-03
Posts: 4
Posted: Fri, 2007-03-23 10:36

I upgraded my Gallery from 1.5 to 2.2. Has been a huge undertaking and quite a pain. But has seemed to be worth it (so far). My standalone Gallery works great, but can't get it to integrate with my Postnuke.

Gallery 2.2
Postnuke 0.764

I downloaded mGallery 2, installed into my modules folder, and thought I followed all the install directions.

My random and specific blocks come up blank and the sidebar isn't coming up at all.

Is it a path issue when I try to configure mGallery2?

Base directory: /home/content/s/e/l/selyne/html/modules/Gallery
URI: /Gallery

Should the URI be /modules/Gallery? Forgive me, but it's 5:30AM and I've been trying to fix this all night. My eyes are crossing at this point.

Any help would be greatly appreciated!

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Fri, 2007-03-23 14:00

Yes, the G2 URI needs to be the full path from the web root to the G2 installation. Looks like yours is /modules/Gallery

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Fri, 2007-05-11 13:27

I'm not sure what you're asking exactly and I don't use Gallery1 anymore. This forum is for Gallery2 + Postnuke. The mGallery2 module embeds Gallery2 into Postnuke and there was no core code modification required for that until Gallery 2.2.1 (Double Double). Postnuke and Gallery2 both use Smarty as their templating engines and Gallery2 makes some calls to its own Smarty plugins after Postnuke's have been loaded, so there are two files that need to be modified in Gallery 2.2.1 to work with Postnuke .764. There is more information in this thread or in the mGallery2 v0.2 release documentation.

 
maddruid

Joined: 2006-11-01
Posts: 15
Posted: Fri, 2007-05-11 13:31

I have released a new version of the mGallery2 module. This release adds many more features to the random image block and adds a transform hook. There is also documentation on how to use Scribite+TinyMCE+G2image to easily add images to your content. MOre information can be found at the Postnuke site here.