Page 2 of 4
Re: Gallery2 Integration
Posted: Wed Nov 23, 2005 5:29 am
by calboy
after d/l and install function.gallery2.zip from untested_plugins page. got the following error msg:
"Parse error: parse error, unexpected $ in /homepages/1/d144327366/htdocs/plugins/function.gallery2.php on line 73"
can anyone let me know what went wrong?
btw what's up w/ the new module "SimpleViewer Gallery", is it a replacement of gallery2? but there's nothing to d/l yet. i'll keep an eye on it.
Re: Gallery2 Integration
Posted: Wed Nov 23, 2005 9:57 am
by petert
calboy wrote:
after d/l and install function.gallery2.zip from untested_plugins page. got the following error msg:
"Parse error: parse error, unexpected $ in /homepages/1/d144327366/htdocs/plugins/function.gallery2.php on line 73"
can anyone let me know what went wrong?
Somebody already did, a few weeks ago in this thread.
I had a problem using the function.gallery2.php. It has an error on line 39, there shouldn't be the bracket. It also seems that on line 37, it should be showSidebarBlocks for the latest version of Gallery2. Hope this helps in case it's not working for others. Sorry, I don't know how to/if I can update the file in the wiki, perhaps someone would like to look into it.
Re: Gallery2 Integration
Posted: Thu Nov 24, 2005 1:07 pm
by paul
Where can i download the module?
Re: Gallery2 Integration
Posted: Fri Nov 25, 2005 7:20 pm
by Tho
petert wrote:
calboy wrote:
after d/l and install function.gallery2.zip from untested_plugins page. got the following error msg:
"Parse error: parse error, unexpected $ in /homepages/1/d144327366/htdocs/plugins/function.gallery2.php on line 73"
can anyone let me know what went wrong?
Somebody already did, a few weeks ago in this thread.
Can someone post the code?
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 5:49 am
by KnightWolfJK
Okay, after almost an hour of poking around the Forge, then the wiki, then the forums, then Google cache, I couldn't find this plug-in (aka module? extension? tag? doodad?). While the wiki is truly a source of infinite wisdom

I finally found it under Downloads >> Tags >> Untested Tags. *whew*
On a semi-related note: what's up with the crossover between the wiki, the downloads, and the Forge? They seem to all (either currently or in the recent past) attempt to perform the same function, which is providing add-ons (whether they be tags, modules, extensions, etc) for users and developers. Is there a current source of info on what's what, because I'm lost. Couldn't find anything in the "News" section.
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 6:36 am
by KnightWolfJK
Well, could you believe I had never clicked to read Page 2 of this post? *lol* Wait, don't answer that.
I updated the Wiki with links to the Forge and the Downloads section, maybe the changes will stay for a few minutes.
I guess what I was alluding to was this: is there a general news area (forum post, static page, etc) that explains the different areas where files are available, and what's what? I think my problem is that I took mental notes on plugins, tags, and extensions that I wanted from the site about a month ago, and now I'm having a tough time finding things. Although I understand that growth=progress...
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 6:57 am
by KnightWolfJK
Not sure yet, Gallery's CVS server is slagging tonight and it's not done installing yet. I hope to post results tonight.
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 9:14 am
by tho
I can see my Gallery in CMSMS but when I click on an album i get an error. (Page can not found)
Have someone a solution?
(Gallery2 + cmsms 0.11B5)
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 9:18 am
by KnightWolfJK
Well, I've had luck and no luck, simultaneously.
Notes: When I first uploaded, I got an error about "unexpected $ in line 73" which was previously mentioned, so I removed the erroneous bracket from Line 39. Also previously mentioned, I changed "showSidebar" to "showSidebarBlocks" on Line 37.
My site structure is as follows:
-Server Root
--Web Root (CMSMS)
---Gallery2
... so I edited Line 28 to read
Code: Select all
require_once(dirname(__FILE__) . '/server_root/web_root/gallery2/embed.php');
and uploaded the file to /plugins.
From there I got confused. It doesn't show up under User-defined tags. But I followed someone's previous tip of creating a new page with {gallery2} as the content, and I get a boatload of NOCACHE errors (see attached).
I test the user_agent plugin and it's working fine, so I don't think it's my install. The details above the NOCACHE error suggest that either myself or the plugin have something with the paths to embed.php configured incorrectly. I'll play with it in the morning, my brain's fried.
Sidenote 1: Okay, so it's listed under Extensions >> Tags and not Extensions >> User-defined Tags. But, from the Tags page:
To install user submitted tags into your cmsms package... [...] Then browse to Extensions -> User-defined tags in the Admin Panel, and see it listed there.
My mistake, or the documentation's mistake?
Sidenote 2: I count three people using this successfully so far, Chad (duh), Tim Bornholtz, and Bill Jensen. Of course they're all Guests so I can't send a PM.

Can you guys offer any suggestions?
[attachment deleted by admin]
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 9:30 am
by westis
Hi KnightWolfJK,
The old wiki that contained tags and modules has been entirely removed (all the modules and tags that were found there were moved to the Downloads section and after the forge was introduced, most of them have been moved to there). The wiki that you may refer to is an experiment page for the documentation that is not used for public use.
We're still thinking about the best structure for extensions downloads, now that the forge should be the main place for that, but several modules and tags have not yet been registered as projects in the forge, and therefore not available to download there.
But indeed, it's more logical to look for downloads under the downloads link and then miss the forge, which is the main place for it... This is all transitional, so we need to come up with what site structure is better. Sorry if it may be confusing...

Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 9:39 am
by KnightWolfJK
Westis: Thanks- I [eventually] clued in on the assumption that it was all transititional. Is there a particular forum thread or static page or some place I can check (often) for major and/or minor changes to the infrastructure? Something akin to the changelog to the sitemap?
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 10:07 am
by westis
KnightWolfJK wrote:
Westis: Thanks- I [eventually] clued in on the assumption that it was all transititional. Is there a particular forum thread or static page or some place I can check (often) for major and/or minor changes to the infrastructure? Something akin to the changelog to the sitemap?
Hmm, actually there isn't at the moment... But we probably should have a news section for site changes indeed. We'll talk it over on IRC and see what solution is best.

Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 10:32 am
by JohnJohn
Hi KnightWolfJK
I managed to get the Gallery2 integrator working without too many problems. As others have pointed out it contains a few errors that you have to fix.
I think my server structure is the same as yours - gallery2 is in the CMCMS directory
The key word you seem to have missed is in line 27 where it says:
Code: Select all
// change this for the relative path to embed.php
NB: relative
My line 28 is therefore:
Code: Select all
require_once(dirname(__FILE__) . '/../gallery/embed.php');
Hope this helps.
Re: Gallery2 Integration
Posted: Mon Nov 28, 2005 4:59 pm
by KnightWolfJK
JohnJohn wrote:
The key word you seem to have missed is in line 27 where it says:
Code: Select all
// change this for the relative path to embed.php
NB: relative
My line 28 is therefore:
Code: Select all
require_once(dirname(__FILE__) . '/../gallery/embed.php');
Hope this helps.
Thanks. You're right, I totally missed that. It worked- the NOCACHE errors are gone and Gallery2 is loading data but not images- I think I can track it down though. Thanks again
Re: Gallery2 Integration
Posted: Tue Nov 29, 2005 5:14 am
by JohnJohn
Glad that helped. If memory serves I also had to mess about with lines 31 and 32 to get it to point properly at the directory where Gallery2 is installed. That might help with your 'not showing images' issue?