Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-07-17 03:48:14

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Plugin/Hack: Albumpattern

After a lot of work, I’ve finally gotten together something that works pretty close to perfect. I call it Albumpattern, and its a photo gallery plugin for TXP. It is similiar to Gallery, or Pictoralis, or Photopattern. The plugin parts handles all the calling, the hack part adds the ability to modify the Albums and photos inside the TXP Administration section (it looks just like it’s supposed to be there!).

I’m asking people to test it out initially, I don’t expect there to be any major bugs.

Albumpattern v1.0 Testing Release 5 BETA

Example of Albumpattern

Install directions are included in the zip file. Please, please email me any bugs you find with as much information you possible on the bug.

Last edited by greenrift (2005-08-30 20:14:04)

Offline

#2 2004-07-17 04:00:16

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

Re: Plugin/Hack: Albumpattern

<del>One quick question. Could this be made to work on an individual page in TXP with comments enabled?</del> Nevermind, I just read your comment about comments on the project page. I’ll look forward to seeing how it works out.

Last edited by Damelon (2004-07-17 04:03:04)

Offline

#3 2004-07-17 07:51:54

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plugin/Hack: Albumpattern

I’ve completed the install, but under the new album tab I only have Title and Excerpt. I’m sure there should be more options, anyone else have this problem or did I go wrong somewhere?

I like the idea of building on the barebones example, any chance of having the code for the 3 forms it uses?

Thanks
Lee

Last edited by lee (2004-07-17 11:34:32)

Offline

#4 2004-07-17 13:12:45

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: Plugin/Hack: Albumpattern

This is very nice; would it be possible to add thumbnail-based navigation, with thumbs on the same page as the larger sized photo, something similar to Phototpattern or Photostack?

Last edited by marco (2004-07-17 13:22:12)

Offline

#5 2004-07-17 14:10:28

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: Plugin/Hack: Albumpattern

Three forms examples

I was just thinking of thumbnail based navigation this morning, it would be easy to write up a tag that did that (grab all the images with the same albumid as the current image and having a thumbnail, create the links, output). When I get back I’ll do that.

Lee: When you first install it, it should have a Title and Excerpt box, some status buttons and some category drop downs (these are TXP image categories in case anyone is wondering) and a big, shiny red publish button. Underneath it should say “No Albums” if you haven’t created one.

Another thing I should have mentioned, the resize and thumbnail options are in the txp_album.php file, at the very top (there is some documentation with them). For right now, those are the only way to change that, but I am going to be adding an options page for Albumpattern specific options.

Last edited by greenrift (2004-07-17 14:15:14)

Offline

#6 2004-07-17 15:15:01

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plugin/Hack: Albumpattern

Thanks for the forms. I have the Title and Excerpt box, some status buttons and some category drop downs and a big, shiny red publish button. Underneath it say’s “No Albums

Offline

#7 2004-07-17 17:15:08

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: Plugin/Hack: Albumpattern

Put something in the Title and maybe something in the Excerpt, and hit “Publish”.

I didn’t think to include a “First Album” thing, maybe it wouldn’t be a bad idea.

Offline

#8 2004-07-17 18:29:05

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plugin/Hack: Albumpattern

That’s what I thought you’d say. But all I get when I do that is a blank page returned, the url is textpattern/index.php.

Has anyone else installed this?

Offline

#9 2004-07-17 18:41:46

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: Plugin/Hack: Albumpattern

> lee wrote:

> That’s what I thought you’d say. But all I get when I do that is a blank page returned, the url is textpattern/index.php.

Has anyone else installed this?

Whoops, I know why. Open up txp_album.php, go to line #152, and change it to say “include_once $txpcfg [ ‘txpath’ ] .’/lib/classTextile.php’;” (remove the extra spacing around the brackets, and the double quotes. Do that to line #311 and #544. Or alternatively, just download this txp_album.php and rename to txp_album.php then upload.

Sorry about that, I forgot that most people arn’t going to use a different version of Textile (I don’t), and had the written the Textile include stuff so that you could use a different version if you wanted. Most of the time when you just get an empty page like that, it means something was missing.

If anyone downloads it prior to this, that bug was fixed and is in the zip file.

Last edited by greenrift (2004-07-17 18:45:54)

Offline

#10 2004-07-17 20:46:07

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plugin/Hack: Albumpattern

Thanks. I’ll give it a try tomorrow, my heads done in right now.
Happy hols

Offline

#11 2004-07-20 09:27:03

mrcbrown
New Member
From: Bakersfield, CA - USA
Registered: 2004-07-04
Posts: 4
Website

Re: Plugin/Hack: Albumpattern

Is there a way to re-size uploaded pictures to a set size? Currently I have a few big ones and I can’t seem to find a way to set the size? Is there a function to do this? I know it says “resize image” but it never seems to.

I love the script thus far – (My Test Photos) – just wonder if I installed and goofed or this is something I can suggest as a feature / configurable option :)

Thanks again for a cool script, still gathering up photos, just not sure if I need to do a batch photoshop resize or I can tweak a file and things are happy. Any info is greatly appriciated!

Offline

#12 2004-07-20 13:41:17

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

I installed this and everything seems brilliant – right up to the point when I try to upload an image and I get the PHP Safe Mode error…

Warning: open_basedir restriction in effect. File is in wrong directory in /home/mywebsite/public_html/textpattern/include/txp_album.php on line 377

<strong>Lingsb</strong> has overcome the safe mode problem on 2 occasions..

http://forum.textpattern.com/viewtopic.php?id=2867
and
http://forum.textpattern.com/viewtopic.php?id=2384

Can we get a version/fix that works with hosts running PHP Safe Mode? Maybe have a chat with Lingsb??

Offline

Board footer

Powered by FluxBB