Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:22 pm EST

Geeklog Forums

Complete Guide to Integrating Gallery into Geeklog


Jameson

Anonymous

I just finished spending hours integrating Gallery into Geeklog. After reading through several articles and comments on how to integrate the two systems, I decided to try and help everyone out by summarizing it all into one little package.

(**warning** It's not pretty, but it works!)

To make things a bit simpler for everyone I made a zip file with all the code and instructions that you'll need to seamlessly integrate Gallery into Geeklog. You can download the zip at: http://www.discobiscuit.com/extras/gl_gallery_integration.zip. I'm not sure which versions this will work with, but I integrated Geeklog 1.3.5 with Gallery 1.2.5.

I've also included the code that displays random images in a PHP Block.

I hope that this gives everyone more time playing rather than working. =D

: Jameson

 Quote

Status: offline

Tony

Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
A URL to a working version would help people too! Also, does the login work with your solution?
The reason people blame things on previous generations is that there's only one other choice.
 Quote

Jameson

Anonymous

Ooops! Sorry about that! ={

Here's the link to my photo album.

http://www.discobiscuit.com/gallery

And yes, this solution does merge the Geeklog login with Gallery. In order for people to have admin access to the entire gallery they must also have root access to Geeklog. I've created a public album in my gallery where I give only gallery_tester permission to add pictures and to delete them. To test the system log into my site with the following information:

Username - gallery_tester
Password - tester

Best of luck everyone!

Jameson

 Quote

Jameson

Anonymous
I forgot to mention that since the public album directory name is "hidden-public" the random PHP Block on my front page will not display pictures inside this album. Jameson
 Quote

Status: offline

Cregar

Forum User
Junior
Registered: 03/31/02
Posts: 23
After using your installation, I get the error:

Parse error: parse error in /Library/WebServer/Documents/secure_area/Gallery/init.php on line 172 Fatal error: Cannot instantiate non-existent class: albumdb in /Library/ WebServer/Documents/secure_area/Gallery/albums.php on line 34

Any help would be apprecated
Cregar
--
"Get Geeked"
Cregar
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
If I were gay I'd kiss you Jameson! Unless you're a woman and then I'd do it if my wife shuts her eyes ;-) I've been looking for some time for someone to summarize this in one place. When you say you've integrated the logins, which usename/password takes precedence? Does it mean you only have Geeklog UN/PW and no gallery? Or the opposite? And most important in my application, can I still give permissions to specific galleries only to certain users? I have some family-only photos. Thanks again! -Alan
 Quote

Anonymous

Anonymous
I ended up with the same error... I had to give up? anyone find an answer?
 Quote

Anonymous

Anonymous
Sounds like you are trying to integrate gallery version 1.3 which has a number of changes. You may want to read this article and series of replies. Gallery version 1.3 made changes to it class objects and the previous integration instructions will not work.
 Quote

leoparr

Anonymous
I followed you instructions in your package, now I got that error in my index.php page. Fatal error: Call to undefined function: com_siteheader() in /home/......./html_wrap/wrapper.header on line 44 line 44 is: COM_siteHeader(); What can be wrong?
 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
I installed Gallery and it worked fine. After I "integrated" gallery with an existing Geeklog installation, I get a blank screen when I enter the Gallery URL. I get NO error messages. I'm using Gallery.1.3.1-cvs-b7 Ideas?
 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
I backed out of Jameson's integration and went back to Adrian's integration.

Adrian's integration instructions worked to the point that Gallery is now wrapped inside Geeklog. HOWEVER, the "login" option is NOT available even though the "slideshow" feature does have a link in ablum views.

As a test I re-installed the init.php that comes with Jameson's integration package. When you click on the Gallery link, you get a blank screen and NO error messages.

The site I'm doing this at is jomari.com. These photo albums are part of the Digital Art Desktops and Postcards site.

Currently I have Adrian's integration in place. Any ideas of what may be causing the blank screen of death with Jameson's integration?

John Hughes

 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
I realized I had not installed all of Adrian's patch. Jameson's User.php and UserDB.php in the classes/geeklog do not work. I replaced them with Adrian's User.php and UserDB.php patches. At this point everything worked EXCEPT if a user was not logged in it caused an error in the classes/Album.php at around 1037 I commented out these lines #$loggedIn = $gallery->userDB->getLoggedIn(); #if ($perm[$loggedIn->getUid()] && # strcmp($gallery->user->getUid(), $everybody->getUid())) { # return true; #} As far as I can tell at this point, Gallery and Geeklog are now integrated and working. When I sign on as a Root user I have access to all Gallery admin features. As an anonymous user I see the galleries but not the login option. John Hughes
 Quote

Jameson

Anonymous
Sorry, but the reason that you are having problems integrating Gallery with Geeklog is because my instructions are for Gallery 1.2.5 and Geeklog 1.3.1. I should have made that more clear.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Actually, the instructions worked fine for me integrating Gallery 1.2.5 with Geeklog 1.3.6 (straight off CVS). So thank your very much :-) The only issue I'm having is that the first two letters from the text linking to an album (the one which is "album01" etc. by default) are missing. The link itself is working fine. I'll figure this out eventually ... bye, Dirk
 Quote

Anonymous

Anonymous
I'm running Geeklog v1.3.5sr2 Gallery v1.3 i integrated using Adrian's patch and it all seemed to work fine when i was logged in. when i logged out, and looked at the gallery, it was showing me the links to edit everything still. i'm assuming it's not supposed to considering i'm not logged in. so i closed all of my browsers to kill all of the sessions, and then tried to look at my gallery, and received the below error: Fatal error: Call to a member function on a non-object in /path/to/gallery/classes/Album.php on line 1037 i was wondering if anyone else had come accross this, and how to fix it. please email me bfrench@ematic.com
 Quote

Anonymous

Anonymous
ok, i found another integration for this located at : http://blweb.langfamily.ca/geeklog/public_html/mod_docmgmt/visit.php?lid=14 his seems to work fine
 Quote

All times are EST. The time is now 10:22 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content