Subject: 4images and Geeklog Integration

Posted on: 27/01/03 12:39pm
By: nurseryboy

Hey guys,

After a few requests for a way to integrate 4images into Geeklog, Blaine and I got together and made it happen. Here is a little list of some of the features that we added:

- It allows 4images to be totally wrapped inside of Geeklog. The 4images templates can easily be edited to fit your site.
- It comes with an easy user migration script to move all user information to the 4images database.
- When a user is logged into Geeklog, they are also logged into 4images with their unique uid and same username. You do not need to log in and out through both. Geeklog handles all of the information.
- When a user registers, they are added to the gallery also. Also, when the user/admin edits their info, their gallery info is changed also.
- Plus all of the great features already part of 4images.

You can download the hack here.

Included is a readme file that explains how to do the integration step by step. It also lists two sites running the gallery, so you can see what it would/could look like.

Hope you guys like it Smile

Matthew

4images and Geeklog Integration

Posted on: 27/01/03 04:17pm
By: Anonymous

Are statistics in geeklog updated with statistics for 4images like in the geekary? Does the geeklog search also search 4images? where are the sites where I can see this integration. Couldn't find them in the zip file. Wonderful. Still looking to see if I should use this or the next release of geekary, which is also based on 4images and very tightly integrated into geeklog.

4images and Geeklog Integration

Posted on: 27/01/03 07:03pm
By: Anonymous

The zip file that you have for us to download is a bit screwy. There are two sets of most of the files, one set inside the other.

4images and Geeklog Integration

Posted on: 27/01/03 07:28pm
By: Anonymous

Good job guys. I love 4images. Moshiach

Error after integration

Posted on: 27/01/03 08:18pm
By: Anonymous

I get this error after doing the installation: Fatal error: Cannot redeclare class template in /services/webpages/l/i/linford.net/geeklog/system/classes/template.class.php on line 62 Any idea how to fix this?

A little fix

Posted on: 27/01/03 09:50pm
By: nurseryboy

Sorry guys,

Don't know why, but somehow the zip got a little messed up. I probably wasn't paying attention when I did it.. lol. The right version is available at the same place, under the same name.

There was also a little problem with the readme. It was missing one line that needed to be replaced. You can go: here to view the fix for it. The updated zip also fixes that problem.

For those who would like to see 4images working on a GL site, you can go to:
http://www.cweb.ws/gallery/ or http://www.nextide.ca/gl137/

Once again, sorry about the confusion.

Matthew

4images and Geeklog Integration

Posted on: 27/01/03 09:57pm
By: nurseryboy

Here are a few answers:

- 4images keeps its own statistics, and I believe GL will log all the hits to it, since it is integrated into GL now.
- 4images has its own search, seperate from GL. If this was a plugin, then it would be using GL's search.
- You can see the sites at: http://www.cweb.ws/gallery/ or http://www.nextide.ca/gl137/

Hope that answers them.

Matthew

A little fix

Posted on: 28/01/03 02:27am
By: Anonymous

I was trying out 4images on your site cweb. When I tried to send an email card, I got the following error: Email Error: RCPT TO invalid mail server response: 550 , Recipient unknown Is this problem just local to you or something everyone will experience? Also, can you tell me why 4 images extends to the right but GL's template doesn't go with it? I'm just starting to check out the three packages to see which one I like. You guys did a nice job here.

4images and Geeklog Integration

Posted on: 28/01/03 05:21am
By: rav

This is very cool. Thanks! With that being said, it might be a bit buggy? Seems that the user loses their logged on credentials after making all the changes during the install.. For example: User logs in, then visits the gallery and is no longer logged into either site. User logs in again, and is logged into both sites. User leaves the gallery, and tries to edit some sort of admin function (so far thats the only thing I've tested) and again, user loses his/her credentials, and is forced to log in again. Hope this is a minor thing, or maybe I just did something wrong. Smile

A little fix

Posted on: 28/01/03 09:14am
By: nurseryboy

About the email, that is just a local problem. No one else should expirence it. And about GL not being on the right hand side, you can easily change that to have GL put the column there. Just edit the page_footer.php, replace: echo COM_siteFooter(); with: echo COM_siteFooter(true); That should do it Smile Matthew

4images and Geeklog Integration

Posted on: 28/01/03 09:18am
By: nurseryboy

rav, One suggestion. Make sure that you are accessing 4images through the same url as your Geeklog site. Say your GL site is: http://www.mygeek.com/ You need to access 4images through: http://www.mygeek.com/4images (or whatever you called the gallery dir) You cannot have http://mygeek.com/4images or http://gallery.mygeek.com That messes up Geeklog's cookies. Make sure that isnt happening and let me know how it goes. Matthew

4images and Geeklog Integration

Posted on: 28/01/03 11:09am
By: Anonymous

BLaine and Matthew are at it again! I love 4images and your integration worked great without too much effort! A couple of things: (1) Any chance you guys will whip out a couple of support blocks? Some suggestions in order of priority would be 1) Random Image 2) New Images 3) Popular Images (They have a way users can rate images) Just some suggestions (: (2) Even after being integrated I am not 100% happy with the way 4images looks wrapped inside GL. I want it to be more transparent like your site Matthew where you don't even know 4images has loaded. Right now I have a massive 4images header, a random image block when I am in 4images. It looks like a stand-alone system wrapped inside another as opposed to just an image module. How did you make yours look so transparent Matthew? Thanks a lot guys!

4images and Geeklog Integration

Posted on: 28/01/03 11:13am
By: Anonymous

This doesn't happen with my integration, but what does happen is if I logout of geeklog, then go back in to the 4images without relogging on to GL I am then logged in again? This is just wierd and more of an annoyance for testing then anything.

4images and Geeklog Integration

Posted on: 28/01/03 12:13pm
By: alinford

To make things look more integrated, just edit the html files in 4image's template/default directory.

4images and Geeklog Integration

Posted on: 28/01/03 12:26pm
By: Anonymous

Any chance Matthew can post his html files? I really like his integration (:

A little fix

Posted on: 28/01/03 12:51pm
By: Anonymous

Okay, thanks. I thought the e-card feature was kinda neat and was hoping the problem was just local.

4images and Geeklog Integration

Posted on: 28/01/03 01:55pm
By: Anonymous

If you log out of Geeklog, you should be logged out of 4images, if it is integrated. Once you log back in, you should be logged into 4images also. It is just like any other program for Geeklog. You can test it at my site: http://www.cweb.ws/gallery/ Matthew

Sorry

Posted on: 28/01/03 01:57pm
By: nurseryboy

Sorry, that previous comment was from me.. I just wasn't logged in. Matthew

4images and Geeklog Integration

Posted on: 28/01/03 01:59pm
By: nurseryboy

Sure, I can post my html files.. but I won't be able to do it until this evening, once I get back from work. Matthew

4images and Geeklog Integration

Posted on: 28/01/03 02:04pm
By: Blaine

The template files are not that hard to edit - once you figure out which ones. Take a look at the demo site I setup here which is just a clean Geeklog 1.3.7 install, 4images integration with modified 4images templates.

I have removed the 4images and voting features as example - by removing the tags like {vote} and {comment} in the templates. Those are not the exact tags.

You edit the templates online from the 4images control and the main templates to start with are home and category. I also changed the tables sizes from a fixed pixel format to percentage.

Blaine


Sorry

Posted on: 28/01/03 02:07pm
By: nurseryboy

Please disregard the comment this is posted under.. lol. It was posted in the wrong place. Matthew

4images and Geeklog Integration

Posted on: 28/01/03 03:16pm
By: alinford

I installed 4image and everything worked just great. I then tried to do the integraiton and I am having a couple of problems. Both issues seem to be related in that any file in the admin directory just shows up as a blank page in my browser: 1. The gluser_migrate.php file does not working for me. When I click the button, I end up with a blank page, and it is not importing the users from geeklog. 2. If I add a new user to geeklog, it does show up as a user in 4images, but when I click the control panel in 4image (when logged in as that user), it ends up at a blank page. So, basically, I can see the the gallery, navigate through and even add new images when logged in as the new user I created. The problem is that I can not get to the admin area. any ideas?

4images and Geeklog Integration

Posted on: 28/01/03 07:44pm
By: Anonymous

Yeah, I've done that. I have a /4images dir right off my public_html.

4images directory

Posted on: 28/01/03 08:17pm
By: alinford

Does the 4images directory need to be inside gl directory? I setup GL like this: public/gl I setup 4images like this: public/4images This worked fine when 4images was on its own, but now that it is integrated, I have run into a couple of problems.

4images directory

Posted on: 28/01/03 08:55pm
By: nurseryboy

It needs to be inside of the public_html directory. You can name the gallery directory whatever you want though. What is your site's url? I would like to see what problems you are having. Thanks, Matthew

4images and Geeklog Integration

Posted on: 28/01/03 08:59pm
By: nurseryboy

Alrighty,

If anyone would like to use the theme I made for 4images (what I am using at Country Web) you can download it here. Just make sure to backup your current template dir just in case.. Have fun Smile

Matthew

4images directory

Posted on: 28/01/03 10:00pm
By: alinford

Here is a url: http://www.linford.net/4image You can login with user:newuser pass:newuser The problem I am having is that the admin area only only brings up blank pages. This happeneed when I tried to run gluser_migrate.php as well as any attempts to use the Control Panel.

4images and Geeklog Integration

Posted on: 29/01/03 03:45am
By: samstone

Just wondering why 4images? How is it better than Gallery?

4images and Geeklog Integration

Posted on: 29/01/03 09:20am
By: nurseryboy

Good question. I guess it is just a matter of preference. They seem to be layed out a little differently for one thing. I never used gallery, so I can't give you the differences though. I just had noticed that a few people were asking for a way to integrate 4images into Geeklog, so thats what we did. All I can really suggest you do is check out one of our sites to see 4images in action. You may be able to get a feel for its features and how it differs from Gallery. Matthew

4images and Geeklog Integration

Posted on: 29/01/03 10:14am
By: Anonymous

Awesome Matthew, thanks!

4images and Geeklog Integration

Posted on: 29/01/03 02:08pm
By: nurseryboy

Sure Smile

4images and Geeklog Integration

Posted on: 29/01/03 05:31pm
By: Anonymous

I have run Geekary and Gallery and was not too happy with either package. I am just starting to play around with 4images since you released the integration. What it does look like is a heck of a lot more customizable. Gallery is a little more difficult to customize requiring some serious PHP skills for example if you want to change the way the sub albums are laid out on the front page. That said they are all pretty good packages

Started Over

Posted on: 29/01/03 06:46pm
By: Anonymous

I have started over with the integration. When I get to the step where I use gluser_migration.php I get an error: Fatal error: Call to undefined function: com_siteheader() in /services/webpages/l/i/linford.net/public/gl/4images/admin/gluser_migrate.php on line 29 Do you know what this could be?

I know what is wrong, but how do I fix it?

Posted on: 29/01/03 11:14pm
By: Anonymous

Ok, after a lot of screwing arround, I have figured out what is wrong: When I fill in the path to my lib-common.php file in 4image/includes/sessions.php, it only works if I use a document relative path. If I use a site relative path, it just gives me a blank page. If I try using absolute paths or url's it does not work either. I can use a document relative path, but the path is different for 4image/index.php (../gl/lib-common.php) and 4image/admin/index.php (../../gl/lib-common.php). Since both files get the path from the 4image/includes/sessions.php file, I can make one or the other work, but not both at the same time. Now the question is, How do I fix this?

I know what is wrong, but how do I fix it?

Posted on: 29/01/03 11:34pm
By: alinford

My workaround fix was to create a gl directory and put a copy of lib-common.php in it. I then put that directory in the document relative spot from 4image/admin. So, 4image is referring to 2 different lib-common.php files, but It is working.

Found a bug

Posted on: 29/01/03 11:42pm
By: alinford

Love this now that I have it going. I found what I believe is a bug. When you delete a user from GL it does not get deleted from 4image as well.

Found a bug

Posted on: 30/01/03 01:07am
By: Blaine

Good to hear Alan - but thats not a bug. We did not add the hook into GL. Was not overlooked just decided that no one deletes geeklog users Wink There was a lot of interest in this application so we just focused on the must-haves. There is more that can be done. Blaine

4images and Geeklog Integration

Posted on: 30/01/03 04:34am
By: etegration

so 4images is something like gallery? as i http://gallery.sf.net what are the better functions 4images have?---http://www.etegration.com http://itcow.etegration.com

I know what is wrong, but how do I fix it?

Posted on: 30/01/03 09:30am
By: nurseryboy

alinford, Read my reply to your post on my site. That should fix it. Matthew

4images and Geeklog Integration

Posted on: 30/01/03 09:34am
By: nurseryboy

etegration, Check out our sites to see its functionality. They are both listed under the comment intitled "A little fix". I haven't used gallery or geekary to any extent, so I know very little about the differences between them. That is why I suggest you check the sites out to see for yourself. I may be able to set you up as a 4images admin for a little if you would like to see how that works also. Matthew

4images and Geeklog Integration

Posted on: 30/01/03 09:02pm
By: Anonymous

How about the first part of the questions regarding the blocks? Any chance of a random image or new galleries?

4images and Geeklog Integration

Posted on: 31/01/03 09:25am
By: Anonymous

This mayby a stupid question! I am running geeklog 1.3.6 so can i use 4images Integration??

Got it done

Posted on: 02/02/03 04:17pm
By: alinford

I finally Geeked my site and used 4images for the gallery.
http://www.linford.net

4images and Geeklog Integration

Posted on: 17/02/03 04:05am
By: Anonymous

I have gone through the integration install/patch/hack... 4 times now with the same result. When exicuting the gluser_migrate.php from my browser i get the following message..

"Adding your Geeklog user: Anonymous to the 4images user table. 1062: Duplicate entry '1' for key 1"

.... The users from both 4images and geeklog are not being updated. Also i am unable to log into 4images/admin after the integration. i have double checked and followed the README to the letter to no avail. any ideas? any help would be greatly appreciated Thanx,
Jughead

4images and Geeklog Integration

Posted on: 17/02/03 08:14am
By: Blaine

You will need to delete all the user records in the 4images_users table. There must have been a duplicate name. Running the gluser_migrate program will then repopulate all the geeklog users to the 4images_users table. Note: You will need to manually edit the userlevel to '9' for atleast one user to get the 4images control panel - the 4images_users table. Blaine

4images and Geeklog Integration

Posted on: 17/02/03 11:37pm
By: Anonymous

Thanx Blaine,
The migration worked good, however I am unable to log into 4images thru geeklog Frown If I use the default template that came with 4images I am able to log into 4images, but still unable to access the 4images control pannel. Using the default template from the integration.ZIP when I log into geeklog it does not log me into 4images. The page is http://www.theleprechaun.net/geeklog/public_html/4images Also on the admin login page for 4images, when logging in there it returns the login page as if I submited the wrong username or password (which is not the case) I have seen what can be done with geeklog and 4images and am very impressed, I can't wait to have a site of that quality. Thanx for your contributions to geeklog they have made the internet fun again! Big Grin
Thanx again,
Jughead
http://www.theleprechaun.net/

4images and Geeklog Integration

Posted on: 18/02/03 09:05am
By: Kybla

I think yes, I'm running 4images even with GL 1.3.5.

4images and Geeklog Integration

Posted on: 20/02/03 09:50pm
By: Anonymous

Tested with an intention to switch from Gallery. Impressed with a lot of settings. But, Gallery is better for me for the following reasons. - Picture quality is much better with Gallery. And they are uniform. - Gallery provide the original size when you click on the big picture. So your friend can download the best quality picture. With 4images, after you resize the image, not only the quality is heavily reduced, the original picture is gone. - With gallery you can upload images 5 or more at a time. With 4images you can load only one at a time, plus it doesn't let you go if you don't name it. - With Gallery you have a slide show. Not a big deal, but nice. With 4images, you have to hack it. It's a hard dicision, but quality and ease of use is more important for me than the features. So I vote for Gallery. Sam

4images and Geeklog Integration

Posted on: 24/02/03 11:54pm
By: Anonymous

I followed the instructions, and the user migration worked fine. When I try to access either the main page or the admin page, they are blank. I was using Geeklog 1.36 and just today started over and installed 1.37 sr1. Then reinstalled 4images, everything working fine without the integration. Go thru the integration again and the same thing. Just blank pages. Dunno what I am doing wrong? Any help would be appreciated. Marc

4images and Geeklog Integration

Posted on: 25/02/03 12:42am
By: Anonymous

I found my problem. I did not set the path in sessions.php to lib-common.php

4images and Geeklog Integration

Posted on: 29/07/03 11:59am
By: Anonymous

I\'m still searching for a migration skript, that allows to migrate the users from geeklog to 4images AND the users from 4images to geeklog. The Problem is, that i have both: a running geeklog site with users and a 4images gallery with different users. And I want to combine both sites, and all users should be able to login once to use the whole site. i don\'t know anything about php, thats the biggest problem Mr. Green

Re:4images and Geeklog Integration

Posted on: 29/07/03 01:10pm
By: Blaine

There is a script included in the Geeklog integration archive to create new 4image user records for every geeklog user. The other changes to the Geeklog files will then maintain the new 4images user records. You have to manually edit the 4image users record if you want the user to have 4images admin rights. You should remove all current 4images user records. So this is a way to go from Geeklog to 4images. I\'ve not written nor planning to write anything to go the other way. If you need this contact me offline.

Re:4images and Geeklog Integration

Posted on: 20/10/03 01:42am
By: Anonymous

Any chance of a random image block?

4images and Geeklog Integration

Posted on: 14/03/04 01:57pm
By: Cybass

Hi!
I've installed GL and 4images and tried to integrate. I think it has worked but no i have a problem.
How can I add the "4images Gallery" to the menu?
Sorry, it's my firts time working with GL.
One more question: How to display the gallery in GL? I don't want it on a blank site, it should look like this site:http://www.cweb.ws

Sorry for my bad english!

EDIT: found a hack for 1.3.8 and it works perfect now

4images and Geeklog Integration

Posted on: 15/03/04 09:56am
By: Turias

[QUOTE BY= Cybass] Hi!
I've installed GL and 4images and tried to integrate. I think it has worked but no i have a problem.
How can I add the "4images Gallery" to the menu?
Sorry, it's my firts time working with GL.
One more question: How to display the gallery in GL? I don't want it on a blank site, it should look like this site:http://www.cweb.ws

Sorry for my bad english!

EDIT: found a hack for 1.3.8 and it works perfect now [/QUOTE]

If you still need to add it to the menu, edit your header.thtml file in your theme folder and add the link manually using HTML.

4images and Geeklog Integration

Posted on: 23/03/04 12:48pm
By: Anonymous

Thx Turias!
One new problem:
New GL users are not in the 4images user table. Somebody new where I did a mistake in the integration?

4images and Geeklog Integration: registration error

Posted on: 27/11/04 03:44pm
By: Anonymous

I've got the integration working in many respects, except I'm seeing a strange error when processing new registration requests.

After one has entered a user ID and an email address and the request is submitted one is taken to http://www.kornkob.com/kobblog/users.php and all that is displayed is the error: An SQL error has occured. Please see error.log for details.

The error log text is as follows:
Sat Nov 27 15:25:33 2004 - 1146: Table 'databaseUID.4images_users' doesn't exist. SQL in question: UPDATE 4images_users SET user_email='testingintegrate AT kornkob.com',user_icq='',user_homepage='http://www.test.com' WHERE user_id=6
Sat Nov 27 15:26:42 2004 - 1146: Table 'databaseUID.4images_users' doesn't exist. SQL in question: INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('7','2','kobtest','','integrationtest at kornkob.com','1','1','0','2004-11-27 15:26:$S','','','','','','','')


Now, the email gets sent and the account is created for use.

Similar behaviors occur when a user attempts to update their account infromation. The changes save but the bland error comes up and error.log is updated in a similar fashion.

Thoughts? Help?

4images and Geeklog Integration

Posted on: 12/03/05 10:34am
By: Anonymous

I have an established 4images site. Is there any way I can easily integrate geeklog into it?

4images and Geeklog Integration

Posted on: 07/04/05 07:05pm
By: Anonymous

[QUOTE BY= kornkob] I've got the integration working in many respects, except I'm seeing a strange error when processing new registration requests.

After one has entered a user ID and an email address and the request is submitted one is taken to http://www.kornkob.com/kobblog/users.php and all that is displayed is the error: An SQL error has occured. Please see error.log for details.

The error log text is as follows:
Sat Nov 27 15:25:33 2004 - 1146: Table 'databaseUID.4images_users' doesn't exist. SQL in question: UPDATE 4images_users SET user_email='testingintegrate AT kornkob.com',user_icq='',user_homepage='http://www.test.com' WHERE user_id=6
Sat Nov 27 15:26:42 2004 - 1146: Table 'databaseUID.4images_users' doesn't exist. SQL in question: INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('7','2','kobtest','','integrationtest at kornkob.com','1','1','0','2004-11-27 15:26:$S','','','','','','','')


Now, the email gets sent and the account is created for use.

Similar behaviors occur when a user attempts to update their account infromation. The changes save but the bland error comes up and error.log is updated in a similar fashion.

Thoughts? Help? [/QUOTE]


I'm having very similar problems as kornkob. Was this fixed somewhere that I missed?

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=21440