g2bridge-serbanc files

serbanc

Joined: 2006-05-19
Posts: 314
Posted: Fri, 2007-11-23 10:13

Dear all,
Please find attached the Michiel's g2bridge files patched and modified. Those files are not new, they exist in this form for roughly one year by now, on various servers, forums.

What has been solved and what are the differences:
1. [solved] user sync between joomla and gallery
2. [solved] user logged out of joomla/ not logged out of gallery
3. [solved] mod_comments and mod_stats are working
4. [new] useralbum creation from joomla
5. [new] useralbum menu entry from joomla (or redirection)
6. [new] keywords cloud - it allows the display of keyword clouds from gallery into a joomla module

Usage.
- install as any other component/module in joomla.
- configure G2bridge component in joomla
Components->Gallery 2->Settings
Gallery 2 Path = /path/to/gallery2/files/gallery2/embed.php
Gallery 2 Url = /gallery2/ (typically)
Login URL = /index.php?option=com_login or /index.php?option=com_cblogin if using Community Builder

This should be enough for basic functionality
To use "Useralbum" or "My album" feature.
create a menu item in joomla, type Link-URL
Name = "My albums" or whatever fits your site
Link = index.php?option=com_gallery2&Itemid=XYZ&task=useralbum
replace XYZ with your gallery2 component id

Typical errors and misusages:
1. trying to display an image in joomla, you receive:
Fatal G2 error
Here's the error from G2:
Error (ERROR_CONFIGURATION_REQUIRED)
in modules/core/classes/GalleryEmbed.class at line 827 (GalleryCoreApi::error)
in /home/amout/public_html/modules/mod_g2bridge_image .php at line 71 (GalleryEmbed::getImageBlock)
solution: go into administrative section of Gallery (not joomla, not g2bridge) and install/enable imageblock plugin.
2. various URL rewrite and SEF errors.
quick solution: disable URL rewrite in Gallery2, disable SEF in joomla
long solution: look on forum.4theweb.nl forums to check for one or two solutions existing there.

serbanc - www.e-poze.ro

AttachmentSize
com_gallery2-2.0.14-serbanc.zip197.35 KB
mod_g2bridge_album.zip2.7 KB
mod_g2bridge_comment.zip2.44 KB
mod_g2bridge_image.zip2.73 KB
mod_g2bridge_kwcloud.zip1.29 KB
mod_g2bridge_side.zip1.21 KB
mod_g2bridge_stats.zip1.82 KB
 
jwesthue

Joined: 2005-12-04
Posts: 1
Posted: Sun, 2007-12-30 14:10

Hi Serbanc! Thank you so much for the bridge mods. One problem I am having though, Once I sync with it I cannot log in to the gallery directly with the browser. It will work through the bridge but not going directly with the browser. i.e. http://server/gallery2/ I get the login prompt but it tells me that the logon or password is incorrect. If I tell it to reset the password it will then work but the next time I access the gallery through the bridge or sync users it stops working again.
Please help!
James

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sun, 2007-12-30 20:18

That's right!
This is due to change in J's password encryption.
until 1.0.12(including), the password was stored as a md5 hash, something that G2 can interpret/verify.
J 1.0.13 changed that and, yes, you are no longer able to log to G standalone.

jwesthue wrote:
Hi Serbanc! Thank you so much for the bridge mods. One problem I am having though, Once I sync with it I cannot log in to the gallery directly with the browser. It will work through the bridge but not going directly with the browser. i.e. http://server/gallery2/ I get the login prompt but it tells me that the logon or password is incorrect. If I tell it to reset the password it will then work but the next time I access the gallery through the bridge or sync users it stops working again.
Please help!
James

serbanc - www.e-poze.ro

 
shazamic

Joined: 2007-04-22
Posts: 2
Posted: Fri, 2008-02-15 17:32

Hi Serbanc,
i use your bridge com_gallery2-2.0.14-serbanc.zip for my joomla site. It's work fine.
But, mod_g2bridge_image.zip don't work. I can install it, but i don't have any thumbnail on my site.

Have you a clue to install it ?
thanks ;)

Version :
Core 1.2.0.6
Gallery : 2.2.4
Joomla : 1.0.12

EDIT : i've tested all fonctions, and finally i can have a picture with 'specific picture' !
So, i must have a problem to understand the "itemId". I can choose a specific picture with his ID, but not a random picture in a specific gallery.
For exemple, i have this adresse for a specific gallery :
http://images.enemyterritory.fr/main.php?g2_itemId=1602
So i must input in ID : 1602
(with daly image for exemple)
?

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Fri, 2008-02-15 22:30

if you have a working specific picture, then the others should work as well.
check rights!
and yes, if you say randomimage and itemId, should give you random from that album
serbanc - www.e-poze.ro

 
shazamic

Joined: 2007-04-22
Posts: 2
Posted: Sat, 2008-02-16 12:09

Thanks for answer
Aaah, yes, i've checked my Album, and option permission'Image Block was wrong!

But, actually i have a bug when i click on The pict of the Day. I go on gallery, but URL become wrong, with lot of Index.php!
Like that : /index.php/index.php/index.php?option=com_gallery2&Itemid=40&g2_itemId=12668

Any idea? i must change a thing ?

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Mon, 2008-02-18 08:06

lot of index.php: are your settings like above ?check configuration in g2bridge. look into http://forum.4theweb.nl for some examples/discussion.
serbanc - www.e-poze.ro

 
Peter_Aus2

Joined: 2006-04-24
Posts: 16
Posted: Tue, 2008-02-19 00:31

Will this bridge work if using Joomla1.5/vBulletin3.6.8/gallery2.2.4 as I am using JFusion bridge for the Joomla to vBulletin, will this bridge work for bridging it to gallery 2, I don't actually want the gallery to wrap into Joomla or vBulletin but just come up as gallery 2 when you click on the link from Joomla or from the forum, there will be links back to the forum and Joomla from gallery 2. Looking for a workable solution.

Regards,

Peter

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Tue, 2008-02-19 08:05

this bridge does not work with J1.5
there is a mod on http://forum.4theweb.nl but did not tested
serbanc - www.e-poze.ro

 
gpo

Joined: 2008-05-05
Posts: 68
Posted: Mon, 2008-05-05 19:28
serbanc wrote:
Dear all,
Please find attached the Michiel's g2bridge files patched and modified. Those files are not new, they exist in this form for roughly one year by now, on various servers, forums.

What has been solved and what are the differences:
1. [solved] user sync between joomla and gallery
2. [solved] user logged out of joomla/ not logged out of gallery
3. [solved] mod_comments and mod_stats are working
4. [new] useralbum creation from joomla
5. [new] useralbum menu entry from joomla (or redirection)
6. [new] keywords cloud - it allows the display of keyword clouds from gallery into a joomla module

Usage.
- install as any other component/module in joomla.
- configure G2bridge component in joomla
Components->Gallery 2->Settings
Gallery 2 Path = /path/to/gallery2/files/gallery2/embed.php
Gallery 2 Url = /gallery2/ (typically)
Login URL = /index.php?option=com_login or /index.php?option=com_cblogin if using Community Builder

This should be enough for basic functionality
To use "Useralbum" or "My album" feature.
create a menu item in joomla, type Link-URL
Name = "My albums" or whatever fits your site
Link = index.php?option=com_gallery2&Itemid=XYZ&task=useralbum
replace XYZ with your gallery2 component id

Typical errors and misusages:
1. trying to display an image in joomla, you receive:
Fatal G2 error
Here's the error from G2:
Error (ERROR_CONFIGURATION_REQUIRED)
in modules/core/classes/GalleryEmbed.class at line 827 (GalleryCoreApi::error)
in /home/amout/public_html/modules/mod_g2bridge_image .php at line 71 (GalleryEmbed::getImageBlock)
solution: go into administrative section of Gallery (not joomla, not g2bridge) and install/enable imageblock plugin.
2. various URL rewrite and SEF errors.
quick solution: disable URL rewrite in Gallery2, disable SEF in joomla
long solution: look on forum.4theweb.nl forums to check for one or two solutions existing there.

serbanc - www.e-poze.ro

Am newbie to this gallery2, I'm building A social site using joomla 1.0 and I want my users to upload frontend share pix like facebook.
I've installed the com_gallery and I want setup using wizzard.
Am abit confused about this
/path/to/gallery2/files/gallery2/embed.php
this the path where I installed the gallery or what?

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Mon, 2008-05-05 20:27

yes, the path
serbanc - www.e-poze.ro

 
nicschel

Joined: 2008-09-11
Posts: 1
Posted: Thu, 2008-09-11 18:28

Having installed everything according to the instructions,. I am getting a message in the CB profile page stating that
Gallery2-Bridge isn't installed correct.

I cannot find what this means, have all the paths correct. Any ideas? I have added the CB plugin in the CB area, everything else seems to be fine.
Appreciate your help as this newbie is hitting the wall.