Gallery & phpBB2

WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Thu, 2002-08-15 12:25

Update: 27 Nov 2002

Gallery 1.3.2 is now supported by Gallery->phpBB2 Integration Mod version 1.4.0.

Just a quick note to say that Gallery has been modified to work with phpBB2 although the support is still not official.

As a first stop you are advised to visit <!-- BBCode Start --><A HREF="http://www.snailsource.com/forum/" TARGET="_blank">www.snailsource.com/forum/</A><!-- BBCode End --> and check the Gallery forum there and I'd prefer to keep things all in one place but I'm sure loads of people will miss this post or simply duplicate posts anyway :grin:

null

 
scottyman
scottyman's picture

Joined: 2002-08-15
Posts: 30
Posted: Fri, 2002-08-16 09:58

it rocks!! trust me...

check out my site http://www.londonplunge.com for another example (go to evidence)

 
Suede

Joined: 2002-07-19
Posts: 5
Posted: Sun, 2002-12-08 03:58

Very nice!

Let me ask you - does it read the permissions set in phpBB?

thanks again for this great idea and making it a reality :wink:
- Suede

 
ClowRead

Joined: 2002-09-26
Posts: 11
Posted: Mon, 2002-12-09 05:40

hoe...

how do i integrate Gallery to phpBB2???

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Thu, 2002-12-12 21:36
Quote:
Very nice!

Let me ask you - does it read the permissions set in phpBB?

thanks again for this great idea and making it a reality :wink:
- Suede

Check this forum topic:

http://www.snailsource.com/forum/viewtopic.php?t=525

 
ken420

Joined: 2003-05-13
Posts: 1
Posted: Tue, 2003-05-13 22:16

phpbb and gallery are great together! Thanks!

 
fatwillie
fatwillie's picture

Joined: 2003-02-08
Posts: 5
Posted: Mon, 2003-07-14 06:56
 
markraker

Joined: 2003-10-20
Posts: 2
Posted: Mon, 2003-10-20 17:09

I hate to be a pain... i have looked through all the forums and links, and can'd find the steps/details to get the two apps to integrate. i have phpbb 2.0.6 and 1.4.3 gallery.
Thanks for any and all help, Mark

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-10-23 14:53

Snailsource has a version that works with 1.3.3. http://www.snailsource.com/forum/dlman.php?func=select_folder&folder_id=9

One of our devs is working on built in phpBB2 integration, but that will be in 1.4.2 (at the earliest) so a bit of a wait.

 
wbstein

Joined: 2003-12-23
Posts: 1
Posted: Tue, 2003-12-23 19:25

how does this work?
do the uploads go on my server or a gallery server?
do I connect to an account with gallery?
how?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2003-12-23 20:56
 
Markos

Joined: 2004-02-19
Posts: 1
Posted: Thu, 2004-02-19 17:26

i can't get the Gallery (1.4.2) installed on my www.host.sk server
can someone help me?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-02-19 22:48

Markos, and in what sense is this related to the original thread?

Please make a new thread, detailing what you have done, and what errors/problems you encounter in it.

 
tenshimitsu

Joined: 2004-03-07
Posts: 1
Posted: Sun, 2004-03-07 10:26

but how can I get the older versions of gallery? o_O I would like to integrate it with phpBB, but there's only the newest version available...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2004-03-07 18:45

tenshimitsu, download 1.4.3-cvs (be bleeding edge! :) ) from http://jpmullan.com/galleryupdates

It has phpBB integration built in.

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Mon, 2004-05-24 17:59

The phpBB integration explained in the Gallery 1.4.3 zip file, does that include the phpBB userdatabase in the gallery so that everybody that is registered in the forum can add images in the gallery??

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2004-05-24 18:46

yes, what did you think it does? :)
AFAIK all phpbb users will be registered gallery users.

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Tue, 2004-05-25 06:34

Thanks, and sorry for the stupid question. I have another question now.

How do i create a link in the phpbb/modules directory to the gallery directory like it is written in the readme.txt???

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Tue, 2004-05-25 08:26
valiant wrote:
yes, what did you think it does? :)
AFAIK all phpbb users will be registered gallery users.

Emmm.... no.
All that the integration does is read the phpbb user database and list the members when you open up the album permissions control panel. There is no automatic "rights" inheritance. There is no integration with usergroups either. Similarly, only the admin can create new albums.

John

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2004-05-25 11:59

@jko:
it's not contradictory, all phpbb users will be gallery users, but without any rights. you can admin gallery rights only within gallery itself.
but you don't need to register and login twice etc.

@burk:
so it's not only me who thinks that there should definitely be a better explanation in the readme about what the integration does and what he means by a "link in the modules directory".
as i said, i don't use the phpbb mod.
do you have shell access (ssh)? is it a linux box?
then try ln -s /pat/to/your/phpbb/modules/gallery /path/to/your/gallery
perhaps he just means a html redirect "link", don't know.

i guess i'll try it tonight on my linux box at home as so many people ask the same question and the author of the mod doesn't answer.

edit: edited softlink (ln -s)

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Tue, 2004-05-25 12:53

I dont have shell access. It is just a free webhost. I have access through FTP and have a cPanel, but i couldn't find anything about it there.

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Tue, 2004-05-25 13:11
valiant wrote:
@jko:
it's not contradictory, all phpbb users will be gallery users, but without any rights. you can admin gallery rights only within gallery itself.
but you don't need to register and login twice etc.

Fair enough, but it's very rudimentary integration. Looking forward to it getting better though :D

Burk,
I didn't set up a symlink as I was adding a fresh gallery install into phpbb rather than integrating an existing gallery. However, if you have cpanel, I believe that the "redirects" function in the domain menu is what you are after for creating a symlink.

John

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Tue, 2004-05-25 13:21

Hmmmm.... Im not really sure. Someone wrote that the galleryforlder was supposed to pop up in the modules folder after you had added tha link...

I guess I will just have to start deleting the gallery then, and install it in the modules folder instead....

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Tue, 2004-05-25 13:22

Hmmmm.... Im not really sure. Someone wrote that the galleryforlder was supposed to pop up in the modules folder after you had added tha link...

I guess I will just have to start deleting the gallery then, and install it in the modules folder instead....

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2004-05-25 13:28

ok, i analyzed the gallery/phpbb mod.
it works also without a symlink, but you need to edit the mod a little.
easiest way to do it without symlink: install gallery in phpbb/modules/gallery.
if you want to keep gallery in the folder where you have it already, we need to change the phpbb/modules.php (comes with the gallery/phpbb mod)
ready?

phpbb mod without symlink and without having gallery in phpbb/modules/gallery:

1. download phpbb 2.0.+ and gallery 1.4.3+
2. unzip modules.php.gz and edit it as following:

line 54: replace:
        } else {
		include(MODULES_PATH."$name/$file.$phpEx");
        }
with:
        } else {
			if ($name == 'gallery') {
				include("../gallery/$file.$phpEx"); /* dirty hack for use without symlinks */
			} else {
				include(MODULES_PATH."$name/$file.$phpEx");
			}
        }

note that you have to change the include path '../gallery/index.php' to your needs, just point it to the index.php of your gallery installation.
3. upload the edited modules.php to phpbb/modules.php
4. modify phpBB2 code as instructed in the file that comes with the mod.
perhaps you'll need to adjust the path to the gallery icon in phpbb/templates/subsilver/overall_header.tpl

note: there's no "phpbb/modules" folder needed, if you don't use symlinks and don't use any other mods that are installed in this directory.

please let me know if it works.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2004-05-25 13:36

@better phpbb integration:
i didn't do it and i'm not willing to spend time doing it for gallery 1.x
G2 is very modular and it will be fairly easy to integrate it into any form of existing user management.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2004-05-25 14:04

omfg, just installed the gallery/phpbb mod to see what i'm talking about.

i differentiate 2 cases:
1. you click in phpBB on the Gallery link
-> loads the module.php and after it gallery/index.php
2. you browse to your gallery directly
-> no features of the phpBB integration will be used

- phpbb users can only login in phpbb, not with the gallery login button
- when you click in 2. "[manage users]" in gallery, there's only the admin user of gallery
- same for permissions when you click from 2.
- but everything works if you use 1.
- gallery has phpbb looks (phpbb css is included)

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Tue, 2004-05-25 16:57

I installed the gallery in the modules folder instead and it is working fine... The MOD you made looks cool to... I am not so satisfied with the way phpBB integrated the gallery (thinking about looks and design), so i think i am going to mod the modules.php so that it doesnt include the header and footer of the phpBB template.

Hmm.. I tried that now.... I cant seem to find how the header and footer gets to the modules.php page. There is no inclusion of the header and footer files.. Do you know how this is done??

 
burk

Joined: 2004-05-24
Posts: 7
Posted: Wed, 2004-05-26 06:24

I modded a bit on the html_wrap files and now it looks good....

Visit my gallery at: http://www.klasse9d.hostcubix.com/forum/modules.php?op=modload&name=gallery&file=index&sid=d9f4e59dc6a76986a2cff710fc054e53

(It is a site for my class at school)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2004-05-26 07:44

looks nice. feel free to watch this topic if others would like to get rid of the phpbb look too and ask questions ;)

 
skuba2004

Joined: 2004-05-26
Posts: 19
Posted: Fri, 2004-06-04 22:26

I still didn't understand what steps are necessary if I ONLY want to share usersbase between phpBB and Gallery. I don't want to embend gallery inside PHPBB.

Could you help me pleeeeease????

Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2004-06-04 22:57

IMO it's not worth it. the integration is not very comfortable. you'll have to modify the current gallery/phpbb mod heavily to get what you want.

on a more general note:

with the existing phpbb/gallery you are only allowed to browse gallery through the link in phpbb. that's only for people who have phpbb in the center of their whole website.

i've integrated myHeadlines and linkbase, both standalone user-based php/mysql applications into phpbb. "integrated" means: both applications use the phpbb user table/session instead of their own. nothing else.

and that's the way the gallery integration should be done.

 
jspeed

Joined: 2004-06-07
Posts: 2
Posted: Mon, 2004-06-07 07:42

OK I have all this integrated and its working brilliantly, but my one issue is the fact that only a phpBB admin can create albums, but users can create sub albums if I set the permissions so.

How can I allow ALL the phpBB board members to create thier OWN albums? There must be some way.....

thanks very much in advance.

 
skuba2004

Joined: 2004-05-26
Posts: 19
Posted: Mon, 2004-06-07 16:51

Valiant, Jspeed, how is the integration done?

Also. I could do this

Quote:
with the existing phpbb/gallery you are only allowed to browse gallery through the link in phpbb. that's only for people who have phpbb in the center of their whole website.

But have a link somewhere else on my site for people to browse albums, right?
And I could even remove the link to gallery fropm the phpbb messages.

Or how can I do the integration lik eyou guys did?

Thanks

 
jspeed

Joined: 2004-06-07
Posts: 2
Posted: Mon, 2004-06-07 21:28

skuba im no expert at all, its a miracle I even got it installed. The docs are really straight forward. But I really need to know how to change the permissions for the whole gallery and not just each album!!! Anyone know what I need to do?? At the moment only the admin can create albums and user can create sub albums...I do not want it this way.

Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2004-06-07 22:03

jspeed, you have to administer the permissions in gallery as if it was a normal gallery installation. there are no usergroups in gallery and this integration doesn't make use of phpbb usergroups. don't blame me, i didn't write it.
so you'll have to assign each phpbb user the according permissions or modify some php code to make use of phpbb usergroups in gallery.

skuba2004, see the link from burk: http://www.klasse9d.hostcubix.com/forum/modules.php?op=modload&name=gallery&file=index&sid=d9f4e59dc6a76986a2cff710fc054e53
notice that all links are like "phpbb/module.php?here_comes_the_gallery_part".
wait for G2 and a nice integration with phpbb (fall/winter 2004) or modify the current integration with gallery 1.x if you want a more flexible integration.

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Tue, 2004-06-08 10:45

There is an updated (beta) integration mod across at www.snailsource.com which adds usergroup funtionality.

Be aware - when a usergroup member becomes an album owner they are able to assign permissions to any registered user, including non-usergroup users - a potential back-door that means all users can effectively get an album (well, sub-album to be precise).

John

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2004-06-10 15:21

The phpBB2 Integration (tested with phpBB2 2.0.6 - 2.0.8) is Part of Gallery since Version 1.4.3.

A HowTo is in the contrib/phpBB2 folder of Gallery.

Jens

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Thu, 2004-06-10 21:19
Tim_j wrote:
The phpBB2 Integration (tested with phpBB2 2.0.6 - 2.0.8) is Part of Gallery since Version 1.4.3.

A HowTo is in the contrib/phpBB2 folder of Gallery.

Jens

Yes, but the integration is very limited - it really needs usergroup integration plus a whole load more stuff before it could be considered trully integrated. As it stands it works really well for a site where the admin can create albums for users. As soon as you make users able to "own" an album , there are all sorts of permissions issues as previously mentioned.

Sorry for this rant and I do really love Gallery - it's by far the best album script-set out there - but to claim phpbb integration is just misleading. A large number of phpbb users probably use Smartor's album mod and, whilst it has many limiting features as an album script, it does integrate properly into phpbb - usergroups, quotas, permissions, etc. Gallery, whilst superior as an album script, is way behind in integration terms.

Rant over - sorry.

John

 
TomWells

Joined: 2004-06-15
Posts: 7
Posted: Wed, 2004-06-16 21:46

jko,

Amen.

Sigh,

Users of phpBB2 _really_ need to be able to create their own albums! I hope the folks who know how to do this will step up to the challenge!

Tom

 
mingotta

Joined: 2003-12-06
Posts: 26
Posted: Sat, 2004-06-19 02:09

hallo! I want to try to integrate my phpbb with gallery, but I read on the HowTo.txt that I need a fresh phpbb installation. Mine is not fresh, a couple of threads open. Is it safe to do it all the same?

 
mingotta

Joined: 2003-12-06
Posts: 26
Posted: Sat, 2004-06-19 02:35

I tried to integrate it by moving the gallery directory into the phpbb/modules/ directory, but the phpbb page shows nothing about gallery: http://www.glauco.info/apps/phpbb/index.php!

Plus, the phpbb/modules/gallery/ page returns me an error:
Fatal error: Call to a member function on a non-object in /web/htdocs/www.glauco.info/home/apps/phpbb/modules/gallery/classes/gallery/UserDB.php on line 325
See: http://www.glauco.info/apps/phpbb/modules/gallery/

What should I do? Please, help!

 
greenteagod

Joined: 2004-05-20
Posts: 38
Posted: Sat, 2004-06-19 05:07

Whats with the mass amount of errors on your page?

 
JadeFist

Joined: 2003-04-25
Posts: 21
Posted: Tue, 2004-08-31 15:27

This is a bit frustrating. I'm trying to integrate the latest Gallery with phpBB 2.0.10. I followed the instructions within the contributions/phpBB2 folder. The forum is installed in the /modules/ directory as well. When I follow the link, I get:

Warning: main(./modules//.php): failed to open stream: No such file or directory in /home/users/public_html/forum/modules.php on line 55

Warning: main(): Failed opening './modules//.php' for inclusion (include_path='.:/usr/local/share/pear') in /home/users/public_html/forum/modules.php on line 55

Something is obviously wrong with it not going to the right directory? Is there something I need to change in the modules.php? Anyone have any ideas? Thanks :)

 
JadeFist

Joined: 2003-04-25
Posts: 21
Posted: Sat, 2004-09-04 13:26

Does anyone have an idea at least? Thanks :)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2004-09-04 16:59

You need to use Gallery 1.4.4-pl2.

Older versions of Gallery do not support phpBB 2.0.10

 
Jeffro_DLP

Joined: 2004-09-15
Posts: 7
Posted: Wed, 2004-09-15 17:04

Hello. First post on this forum.

I have gallery 1.4.4pl2 installed and phpbb 2.0.10 installed as well. Both are fresh installations.

I followed all instructions on integrating gallery with phpbb2. I didn't get any errors and assume everything is working.

My question is, why don't I see anything on the phpbb2 main page linking to the embedded gallery? Is there something I am missing? I thought once everything was done, I would have some sort of link on the main page that lists the forums linking to the gallery.

If I manually add this to the forum URL, I get the gallery emdedded in php:
.../phpbb/modules.php?op=modload&name=gallery&file=index

But when I navigate back to the forum, there's no way to see the gallery unless I manually add the above to the url.

I hope I am making myself clear enough.

Thanks!

Jeff

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-09-15 17:17

Jeffro_DLP, Gallery doesn't (can't) create links for you. You need to edit your template files to add a link to Gallery.

Follow the instructions/examples in the contrib/phpBB2 directory for manually patching your template.

 
Jeffro_DLP

Joined: 2004-09-15
Posts: 7
Posted: Wed, 2004-09-15 17:44

I added a link to index_body.tpl and it works great!

Thanks!

 
adegutis

Joined: 2004-09-10
Posts: 34
Posted: Mon, 2004-10-11 18:01

I've integrated Gallery with PHPBB 2.0.6 and it works fine. It's using the forums color scheme (black background, white text) but then uses blue text for the Polling text (see this screen shot).

I'm not a PHPBB expert so it may be coming from the template being used by I've never seen blue text anywhere in the forum, only on the photo album pages. Can anyone give me a pointer as to where to look for this setting?

Thanks
Al

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Sun, 2005-01-02 23:33

Just wanted to know if this still works with PHPBB2 2.0.11 and Gallery v1.4.4-pl4.

I figured it out, yes it does.