If you're planning to use it in "bridged mode" (where users are redirected to the external gallery instead of having the gallery embedded in SMF), then you should install it in a sub-directory of SMF or the Image Chooser script won't work (it doesn't support a standalone G2 installation being on a separate subdomain). Otherwise you can install it wherever you want as long as it's on the same server and can be accessed by SMF.
The "Modification Parse Error" thing is a bug with PHP 5.2 and is something related to the size of the modification file (we haven't figured it out completely yet). You will need to install it manually (see the "help.txt" file that's included with the package, or http://docs.simplemachines.org/index.php?topic=402) if it won't install through the package manager. Someone has made a PHP 5.2 compatible package, but it is only for the regular version and not the "no-bridge" version. Beta 3.1 of the bridge (which should hopefully be released next week - I just haven't had time to test it) will split the modification into two separate files, which will allow it to install on PHP 5.2.
Hope that helps!
--------------------- The Oldiesmann SMF Project Manager SMF+G2 Integration Project - Beta3 Now Available!
Jetfighter82
Joined: 2007-04-20
Posts: 2
Posted: Sat, 2007-04-21 10:50
Thanks very much. My host allows me to switch between PHP versions so I switched to an earlier version, installed the package, and then switched back - seems to work fine now! Thanks!
This is probably going to be the last release before RC1.
Current plans for RC1 include:
Integration of Lightbox2 (including support for photo sets)
Move all the language strings to their own file
Try to fix the theme issues (fonts getting resized when G2 is embedded in SMF)
it is possible user the date of user of my forum smf for login with gallery?
i have to can for integration gallery2 with smf but there are more errors.
Oldiesmann
Joined: 2005-05-18
Posts: 151
Posted: Mon, 2007-06-18 19:32
the incredible wrote:
it is possible user the date of user of my forum smf for login with gallery?
i have to can for integration gallery2 with smf but there are more errors.
I'm having a hard time understanding your post... This integration will allow your users to login to the Gallery with their SMF username and password. If you're having errors, search the board on the project site, then post a topic there if you can't find a solution.
--------------------- The Oldiesmann SMF Project Manager SMF+G2 Integration Project - Beta3.1 Now Available!
serialg
Joined: 2007-07-25
Posts: 2
Posted: Wed, 2007-07-25 19:46
Hi,
I would like just to use the same user as SMF (with Gallery2). I don't want especially to use only one DB. I just would like to keep the two seperate database.
But I checked that the password from SMF and Gallery2 are not hashed in the same way.
I would like then to know how to use the hashed passwords from SMF in the Gallery2 login process.
Thanks.
Oldiesmann
Joined: 2005-05-18
Posts: 151
Posted: Wed, 2007-07-25 21:28
Simple. When you go to "action=gallery" for the first time, the script checks to see if your username is registered in the gallery.
If it isn't, you are asked to enter your forum password. After verifying that this password is correct, the password you entered is passed to the appropriate function in Gallery2, which will automatically encrypt it using G2's method.
If your username is registered, then your forum password will not be used for your G2 account until you update the "account settings" section of your forum profile.
Hope that helps! Let me know if you have any other questions
--------------------- The Oldiesmann SMF Project Manager SMF+G2 Integration Project - Beta3.1 Now Available!
loffy
Joined: 2006-01-12
Posts: 4
Posted: Wed, 2007-09-19 08:19
I like your integration, but it is overkill for my needs. What is the simplest way of getting Gallery to use SMF users? I don't need any further integration, just that.
Oldiesmann
Joined: 2005-05-18
Posts: 151
Posted: Mon, 2007-09-24 17:34
loffy wrote:
I like your integration, but it is overkill for my needs. What is the simplest way of getting Gallery to use SMF users? I don't need any further integration, just that.
Sorry for not seeing this sooner - somehow I missed the email notifying me of this post
Although I've already responded to your PM regarding this, I'll post here as well since it may help other users in the future.
The integration is quite configurable, so it's easy to make it as simple as a bridge between SMF+G2 without the user profile links, g2 image stuff, etc.
The settings for the bridge are as follows:
Mode - Disabled (disables integration and all related features), Embedded (embeds the gallery inside SMF) and Bridged (redirects users to the standalone gallery after they've registered)
Link membergroups - If checked, this will synchronize group membership between SMF and G2, allowing you to set up quotas and permissions based on how many posts a user has made or what group they're in.
Hide gallery sidebar - If checked, the G2 sidebar will be hidden and all HTML will for it will be put in a separate variable. This is great for fixed-width themes or those using another portal/CMS (allowing you to put the sidebar in a portal/CMS block).
Show user profile links - If you have the Members module installed in Gallery2, this will display a link to their Gallery profile on their forum profile.
Show user album links - If you have the User Albums module installed in Gallery2, this will display a link to the user's User Album in their forum profile (assuming they have one), and will also display a nice camera icon linking to the album in their posts.
Enable G2 Image Chooser - Check this box to enable integration of the G2 Image Chooser script (this will also enable a new tab in "Features and Options" where you can configure various settings for that script).
You also have the ability to specify which membergroups can access the gallery (this is mainly useful for the embedded version and doesn't actually change any permissions in Gallery2).
--------------------- The Oldiesmann SMF Project Manager SMF+G2 Integration Project - Beta3.1 Now Available!
j3cubcapt
Joined: 2006-08-17
Posts: 39
Posted: Thu, 2008-01-31 03:19
Sorry, This does not belong here, but I do not know how to delete it.
Can anyone shed light on what might be causing this?
Error (ERROR_MISSING_OBJECT)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 180 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 293 (gallerystorageextras::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (mysqlstorage::loadentities)
in modules/core/classes/GalleryCoreApi.class at line 2382 (galleryentityhelper_simple::loadentitiesbyid)
in modules/core/classes/GalleryTheme.class at line 1243 (gallerycoreapi::loadentitiesbyid)
in themes/classic/theme.inc at line 118 (classictheme::loadcommontemplatedata)
in modules/core/classes/GalleryTheme.class at line 916 (classictheme::showalbumpage)
in modules/core/classes/GalleryView.class at line 325 (classictheme::loadtemplate)
in main.php at line 386 (showitemview::doloadtemplate)
in main.php at line 87
in main.php at line 80
Oldiesmann
Joined: 2005-05-18
Posts: 151
Posted: Wed, 2008-04-09 13:14
Just a quick update for those who haven't been following the development on the project site...
I have been hard at work on the next version of this integration (RC1), and am hoping to release it within the next week. The new version has already been installed on the project site for testing.
Changes in the new version:
Fixed several typos that completely broke the functions added to SSI.php
Added a workaround to attempt to solve problems caused by $_SESSION['g2_user'] not being set when trying to link your forum account to an existing gallery account
Moved "Hide Gallery Sidebar" from a global setting to a theme setting so you can choose whether or not to show it for each theme
Moved language strings to their own language files
Attempted to fix issue with SMF's "who's online"
Updated to the latest version of the G2 Image Chooser script
Support for Lightbox 2 via bbcode
Support for SMF 2.0 Beta 3 Public
--------------------- The Oldiesmann SMF Project Manager SMF+G2 Integration Project - RC1 Coming Soon
LinuxFanatic
Joined: 2009-06-03
Posts: 1
Posted: Wed, 2009-06-03 21:18
Hi Oldiesmann,
first of all thanks a lot for this modification
I installed the "Non-Bridged" Version of this modification on my SMF forum. Than I configured all relevant values in "Admin -> Features and Options -> Gallery" (like "Path to Gallery", "URL to Gallery" and "Gallery Mode" as "Bridged").
The "Gallery" - Link in the navigation bar is also working properly (- it is linked to the Gallery's url). But if I or other registered members of our SMF forum opening the Gallery over this link, than we are not logged in into the gallery automatically. And if we try to login into the Gallery with the SMF account, than we can't do it. Gallery shows that password are incorrect ...
So my question: How can I do it, that a registered user is automatically logged into Gallery, if the user is online in the forum ?
Hope that you understand my English, because English is not my native Language ( I'm from Austria ).
Best regards,
Gürkan
Oldiesmann
Joined: 2005-05-18
Posts: 151
Posted: Sun, 2009-09-27 20:34
Make sure you have the cookie settings set up in the G2 admin center. That should keep them automatically logged on in the gallery after they login to the forum. Not sure why Gallery would give them a password incorrect error when they tried to log in with their SMF user details, as long as they've already created their gallery account.
--------------------- The Oldiesmann SMF Webmaster SMF+G2 Integration Project - RC1 now available!
TomGarage
Joined: 2009-09-29
Posts: 2
Posted: Wed, 2009-09-30 03:48
Deleting as I have asked the same question on the SMF forum.
TomGarage
Joined: 2009-09-29
Posts: 2
Posted: Mon, 2009-10-05 14:10
Is it possible for a user to upload images to their gallery when they are creating a new post or replying to a post ? I see that they can add images already uploaded to the gallery, which is a GREAT feature. Just wondering if this is possible; it would save a few steps.
themichael
Joined: 2003-05-08
Posts: 14
Posted: Fri, 2010-02-26 17:50
I have installed smf_g2_RC1_1-1 successfully but I do not have a Gallery tab in the Feature and Options section. If I go directly to the url (/forums/index.php?action=featuresettings;sa=gallery) there is a tab with no label and a blank settings window. [IMG]http://img251.imageshack.us/img251/7498/clipboard01sio.th.jpg[/IMG]
I am stuck on where to go from here. I am unable to post over at galleryproject.oldiesmann.us. Registration doesn't seem to be working.
You're using the English-UTF8 language pack. The package only includes the default (regular) "English" language file.
Download the English-UTF8 language files from here and copy both files to your Themes/default/languages folder.
What happens when you try to register on the project site? Registration is working fine for me.
--------------------- The Oldiesmann SMF Marketing Team member SMF+G2 Integration Project - RC1 now available!
themichael
Joined: 2003-05-08
Posts: 14
Posted: Sat, 2010-02-27 04:09
After I hit agree, the next page is blank. A refresh loads the forums. I haven't received an email.
Almost home - I am missing the link to the gallery on the forum menu. If I use ?action=gallery then it works.
EDIT - using the default theme the link is there. Now to fix my theme...
Posts: 151
If you're planning to use it in "bridged mode" (where users are redirected to the external gallery instead of having the gallery embedded in SMF), then you should install it in a sub-directory of SMF or the Image Chooser script won't work (it doesn't support a standalone G2 installation being on a separate subdomain). Otherwise you can install it wherever you want as long as it's on the same server and can be accessed by SMF.
The "Modification Parse Error" thing is a bug with PHP 5.2 and is something related to the size of the modification file (we haven't figured it out completely yet). You will need to install it manually (see the "help.txt" file that's included with the package, or http://docs.simplemachines.org/index.php?topic=402) if it won't install through the package manager. Someone has made a PHP 5.2 compatible package, but it is only for the regular version and not the "no-bridge" version. Beta 3.1 of the bridge (which should hopefully be released next week - I just haven't had time to test it) will split the modification into two separate files, which will allow it to install on PHP 5.2.
Hope that helps!
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3 Now Available!
Posts: 2
Thanks very much. My host allows me to switch between PHP versions so I switched to an earlier version, installed the package, and then switched back - seems to work fine now! Thanks!
Posts: 151
Beta3.1 has been released
See first post in this topic and/or http://galleryproject.oldiesmann.us/index.php?topic=353.0 for more info.
This is probably going to be the last release before RC1.
Current plans for RC1 include:
Integration of Lightbox2 (including support for photo sets)
Move all the language strings to their own file
Try to fix the theme issues (fonts getting resized when G2 is embedded in SMF)
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3.1 Now Available!
Posts: 1
it is possible user the date of user of my forum smf for login with gallery?
i have to can for integration gallery2 with smf but there are more errors.
Posts: 151
I'm having a hard time understanding your post... This integration will allow your users to login to the Gallery with their SMF username and password. If you're having errors, search the board on the project site, then post a topic there if you can't find a solution.
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3.1 Now Available!
Posts: 2
Hi,
I would like just to use the same user as SMF (with Gallery2). I don't want especially to use only one DB. I just would like to keep the two seperate database.
But I checked that the password from SMF and Gallery2 are not hashed in the same way.
I would like then to know how to use the hashed passwords from SMF in the Gallery2 login process.
Thanks.
Posts: 151
Simple. When you go to "action=gallery" for the first time, the script checks to see if your username is registered in the gallery.
If it isn't, you are asked to enter your forum password. After verifying that this password is correct, the password you entered is passed to the appropriate function in Gallery2, which will automatically encrypt it using G2's method.
If your username is registered, then your forum password will not be used for your G2 account until you update the "account settings" section of your forum profile.
Hope that helps! Let me know if you have any other questions
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3.1 Now Available!
Posts: 4
I like your integration, but it is overkill for my needs. What is the simplest way of getting Gallery to use SMF users? I don't need any further integration, just that.
Posts: 151
Sorry for not seeing this sooner - somehow I missed the email notifying me of this post
Although I've already responded to your PM regarding this, I'll post here as well since it may help other users in the future.
The integration is quite configurable, so it's easy to make it as simple as a bridge between SMF+G2 without the user profile links, g2 image stuff, etc.
The settings for the bridge are as follows:
Mode - Disabled (disables integration and all related features), Embedded (embeds the gallery inside SMF) and Bridged (redirects users to the standalone gallery after they've registered)
Link membergroups - If checked, this will synchronize group membership between SMF and G2, allowing you to set up quotas and permissions based on how many posts a user has made or what group they're in.
Hide gallery sidebar - If checked, the G2 sidebar will be hidden and all HTML will for it will be put in a separate variable. This is great for fixed-width themes or those using another portal/CMS (allowing you to put the sidebar in a portal/CMS block).
Show user profile links - If you have the Members module installed in Gallery2, this will display a link to their Gallery profile on their forum profile.
Show user album links - If you have the User Albums module installed in Gallery2, this will display a link to the user's User Album in their forum profile (assuming they have one), and will also display a nice camera icon linking to the album in their posts.
Enable G2 Image Chooser - Check this box to enable integration of the G2 Image Chooser script (this will also enable a new tab in "Features and Options" where you can configure various settings for that script).
You also have the ability to specify which membergroups can access the gallery (this is mainly useful for the embedded version and doesn't actually change any permissions in Gallery2).
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3.1 Now Available!
Posts: 39
Sorry, This does not belong here, but I do not know how to delete it.
Can anyone shed light on what might be causing this?
Error (ERROR_MISSING_OBJECT)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 180 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 293 (gallerystorageextras::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (mysqlstorage::loadentities)
in modules/core/classes/GalleryCoreApi.class at line 2382 (galleryentityhelper_simple::loadentitiesbyid)
in modules/core/classes/GalleryTheme.class at line 1243 (gallerycoreapi::loadentitiesbyid)
in themes/classic/theme.inc at line 118 (classictheme::loadcommontemplatedata)
in modules/core/classes/GalleryTheme.class at line 916 (classictheme::showalbumpage)
in modules/core/classes/GalleryView.class at line 325 (classictheme::loadtemplate)
in main.php at line 386 (showitemview::doloadtemplate)
in main.php at line 87
in main.php at line 80
Posts: 151
Just a quick update for those who haven't been following the development on the project site...
I have been hard at work on the next version of this integration (RC1), and am hoping to release it within the next week. The new version has already been installed on the project site for testing.
Changes in the new version:
Fixed several typos that completely broke the functions added to SSI.php
Added a workaround to attempt to solve problems caused by $_SESSION['g2_user'] not being set when trying to link your forum account to an existing gallery account
Moved "Hide Gallery Sidebar" from a global setting to a theme setting so you can choose whether or not to show it for each theme
Moved language strings to their own language files
Attempted to fix issue with SMF's "who's online"
Updated to the latest version of the G2 Image Chooser script
Support for Lightbox 2 via bbcode
Support for SMF 2.0 Beta 3 Public
---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - RC1 Coming Soon
Posts: 1
Hi Oldiesmann,
first of all thanks a lot for this modification
I installed the "Non-Bridged" Version of this modification on my SMF forum. Than I configured all relevant values in "Admin -> Features and Options -> Gallery" (like "Path to Gallery", "URL to Gallery" and "Gallery Mode" as "Bridged").
The "Gallery" - Link in the navigation bar is also working properly (- it is linked to the Gallery's url). But if I or other registered members of our SMF forum opening the Gallery over this link, than we are not logged in into the gallery automatically. And if we try to login into the Gallery with the SMF account, than we can't do it. Gallery shows that password are incorrect ...
So my question: How can I do it, that a registered user is automatically logged into Gallery, if the user is online in the forum ?
Hope that you understand my English, because English is not my native Language ( I'm from Austria ).
Best regards,
Gürkan
Posts: 151
Make sure you have the cookie settings set up in the G2 admin center. That should keep them automatically logged on in the gallery after they login to the forum. Not sure why Gallery would give them a password incorrect error when they tried to log in with their SMF user details, as long as they've already created their gallery account.
---------------------
The Oldiesmann
SMF Webmaster
SMF+G2 Integration Project - RC1 now available!
Posts: 2
Deleting as I have asked the same question on the SMF forum.
Posts: 2
Is it possible for a user to upload images to their gallery when they are creating a new post or replying to a post ? I see that they can add images already uploaded to the gallery, which is a GREAT feature. Just wondering if this is possible; it would save a few steps.
Posts: 14
I have installed smf_g2_RC1_1-1 successfully but I do not have a Gallery tab in the Feature and Options section. If I go directly to the url (/forums/index.php?action=featuresettings;sa=gallery) there is a tab with no label and a blank settings window.
[IMG]http://img251.imageshack.us/img251/7498/clipboard01sio.th.jpg[/IMG]
I am stuck on where to go from here. I am unable to post over at galleryproject.oldiesmann.us. Registration doesn't seem to be working.
_____________________________________
Forum version: SMF 1.1.11
Forum url: http://www.photokenosha.com/forums
Gallery URL = http://www.photokenosha.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.8 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.1.30, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux gator148.hostgator.com 2.6.28.9 #54 SMP Tue Feb 9 18:09:11 CST 2010 i686
Default theme = matrix
Posts: 151
You're using the English-UTF8 language pack. The package only includes the default (regular) "English" language file.
Download the English-UTF8 language files from here and copy both files to your Themes/default/languages folder.
What happens when you try to register on the project site? Registration is working fine for me.
---------------------
The Oldiesmann
SMF Marketing Team member
SMF+G2 Integration Project - RC1 now available!
Posts: 14
After I hit agree, the next page is blank. A refresh loads the forums. I haven't received an email.
Almost home - I am missing the link to the gallery on the forum menu. If I use ?action=gallery then it works.
EDIT - using the default theme the link is there. Now to fix my theme...