Embedding Gallery in phpBB2

Callahan

Joined: 2004-04-14
Posts: 28
Posted: Sat, 2004-04-17 14:37

Hi,

I'm trying to embed the latest version of gallery into phpBB2.0.8a. So far, its going ok but I am confused with this instruction:
"copy the phpBB2.patch into phpBB2 folder and do 'patch -p1 <phpBB2.patch')"
What exactly is it asking me when it says 'do patch -p1 <phpBB2.patch') ?
I can manually go through and alter the required code but if it's already done for me, then I might as well use the prebuilt one.

Thanks for your help.

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2004-04-17 14:41

Moving to correct forum.

 
arrikhan

Joined: 2004-04-19
Posts: 1
Posted: Mon, 2004-04-19 12:12
Quote:
What exactly is it asking me when it says 'do patch -p1 <phpBB2.patch') ?
I can manually go through and alter the required code but if it's already done for me, then I might as well use the prebuilt one.

It means run the command "patch" with options "-p1 <phpBB2.patch"

ie: patch -p1 <phpBB2.patch

The above will patch the required files. I've just done this and it worked for me!

Now I'm a little confused how the user system works when I've limited specific users to albums, because I can't see them even though I use the same logon for the forums (phpBB2).

Funnily enough I can see albums using "LOGGEDIN" as an option though.

Arrikhan

 
badboyben3000

Joined: 2004-05-02
Posts: 10
Posted: Sun, 2004-05-02 22:20

I don't understand what you mean by "run the command "patch" with options "-p1 <phpBB2.patch"

Excuse my amateurness! But how can I do this? Do I do it through FTP? Please help!

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Sun, 2004-05-02 22:37

You would need shell access to your server - not a common feature of virtual hosting plans.

The changes needed to the phpbb files are really quite trivial and easy to do. Just follow the instructions.

John

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2004-05-03 08:10

other options:
- patch the files on another pc than the webserver.
i.e. patch them on your local linux machine and upload the patched phpbb2 version.

- not recommended, but perhaps possible on your hoster:
upload the patch file phpBB2.patch
create a perl or php file that does execute the patch command.
but you had to chmod everything 777 etc. if your host doesn't run suEXEC and it doesn't seem as you knew what i'm talking about.

- i recommend: if you don't have shell access and you don't run a linux box at home, edit the phpBB files manually, it's not that much.