Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#256 2005-03-02 17:01:02

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

Re: Plugin/Hack: Albumpattern

I haven’t but I’d be into trying if you can tell me where to get and how to install rc3!

Last edited by vibe9 (2005-03-02 17:01:19)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#257 2005-03-02 19:53:00

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

Re: Plugin/Hack: Albumpattern

Well searching this forum i found 3 explanations how to do get hold of current rc3.

Over all explanation of the process and how to see versions and such:

here

Windows howto:

here

Mac how to:

here

Good luck :)

Last edited by druzli (2005-03-02 19:53:28)


regards,

Agust

Offline

#258 2005-03-08 15:10:45

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Plugin/Hack: Albumpattern

Doesn’t seem to work.
First I had to comment out the function stripSpace($text) in txp_album.php, because it is already defined in lib/txplib_misc.php.
Now when I try to add an album, I only get ‘No error’ at the top of the page, but nothing happens. None of these problems with 1.0rc1 so far.

Offline

#259 2005-03-08 19:37:18

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

Re: Plugin/Hack: Albumpattern

LARF – Did you set the permissions for your IMAGES directory to 777 ?


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#260 2005-03-09 09:53:44

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Plugin/Hack: Albumpattern

Yes I did that.

I investigated this issue a little further, and the problem already occurs when adding a new album (not when adding pictures to an album, I did not get this far yet).

So I added the SQL-entry and the subdirectory of images manually:

INSERT INTO txp_album VALUES (1,‘Winterfotos’,‘Winterfotos’,‘winterfotos’,‘2005-03-01 15:41:50’,‘admin’,‘2005-03-01 16:13:42’,‘admin’,’‘,’‘,0,4,’‘,’‘,1,‘Galerie’);

mkdir images/1
chmod -R 777 images

Now I see my album in Textpattern, but cannot add pictures:

Warning: move_uploaded_file(/images/1/Futurama13.jpg) [function.move-uploaded-file]: failed to open stream: Datei oder Verzeichnis nicht gefunden in /var/www/ . . . /htdocs/textpattern/include/txp_album.php on line 421

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move ‘/tmp/phpvFGTcn’ to ‘/images/1/Futurama13.jpg’ in /var/www/ . . . /htdocs/textpattern/include/txp_album.php on line 421

I think the problem is that the script tries to move the file to /images/1/Futurama13.jpg instead of /var/www/ . . . /htdocs/images/1/Futurama13.jpg.

Maybe I messed something up. I’ll check it out tomorrow.

Offline

#261 2005-03-09 10:26:20

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Plugin/Hack: Albumpattern

Problem solved. My rc3 installation is a completely fresh installation, so it did not have:
$txpcfg[‘doc_root’] = ‘/var/www/ . . . /htdocs’;
in the config.php. See this comment in textpattern/.svn/text-base/publish.php.svn-base:

// 1.0 removed $doc_root variable from config, but we’ll // leave it here for a bit until plugins catch up $txpcfg[‘doc_root’] = $_SERVER[‘DOCUMENT_ROOT’];

My $_SERVER[‘DOCUMENT_ROOT’]; is not correct for some reason (multiple vhosts?).

I simply added:
$txpcfg[‘doc_root’] = ‘/var/www/ . . . /htdocs’;

to my config.php and it seems to work now.

Offline

#262 2005-03-09 16:03:52

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Plugin/Hack: Albumpattern

Hmm, the backend was ok again, but now I’ve switched my production site to rc3, and the frontend does not work anymore. When I click on the preview picture of an album nothing happens.
Any help?

Offline

#263 2005-03-10 22:09:20

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: Plugin/Hack: Albumpattern

Greenrift, any news on maybe integrating Flickr?


bludrop studios .::. Creative Expression

Offline

#264 2005-03-13 20:51:43

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Plugin/Hack: Albumpattern

@blumie607:
I’m planning to write a plugin for flickr, and I will most probably start tomorrow. May I use you as a beta tester?

Offline

#265 2005-03-13 23:33:24

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: Plugin/Hack: Albumpattern

That sounds great. I’ll think about beta testing.

Thanks.


bludrop studios .::. Creative Expression

Offline

#266 2005-03-17 07:08:35

joeyjoejoe
New Member
Registered: 2005-03-17
Posts: 3

Re: Plugin/Hack: Albumpattern

The plugin seems to be functioning correctly from the administrative side (new albums can be created, images can be added to those albums), however it seems that these images are not being displayed on my pages.

all I see is a list of articles with the image name as the title, and when I click on the image name nothing appears.

Here is the background info:

a section has been created called ‘portfolio’ using a page called ‘portfolio’ containing the following tags (with apologies for the formatting):

(Update – this code does not work – see the next post)

txp:albumpattern/
txp:article/
txp:if_album_list
txp:album_list form=“album_list” /
/txp:if_album_list

txp:if_individual_album
txp:album form=“album_single” /
/txp:if_individual_album

txp:if_individual_image
txp:album_image form=“album_image” /
/txp:if_individual_image

…and the default albumpattern section has been set to ‘portfolio’.

When calling this section using messy urls e.g. /?s=portfolio – have not been able to get clean urls working – whole other story…

This thread has been very helpful, however I just haven’t been able to get this really nice plug-in to work.

Last edited by joeyjoejoe (2005-03-21 05:29:10)

Offline

#267 2005-03-21 05:28:22

joeyjoejoe
New Member
Registered: 2005-03-17
Posts: 3

Re: Plugin/Hack: Albumpattern

It works now – just a tip to my fellow alpha newbs – use the example tags from the Albumpattern documentation – there is a post on the first page of this thread that gave me some grief.

Also – make sure the names of your forms match those referenced in the tags.

Now i’m hoping to figure out how to get more than one column of thumbnails – does one need to go into the plugin itself to modify this?

Its hard to see how a div tag in the forms or pages is going to work when the code (presumably) loops through each album / image.

Last edited by joeyjoejoe (2005-03-21 05:30:09)

Offline

#268 2005-03-21 16:05:24

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

Re: Plugin/Hack: Albumpattern

You have to use CSS to control the layout of the thumbnails. Here’s a good tuturial to do just that!

CSS Thumnail layout tutorial

Last edited by vibe9 (2005-03-21 16:05:53)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#269 2005-03-28 18:11:02

freaky
Member
From: Austria
Registered: 2004-10-14
Posts: 55
Website

Re: Plugin/Hack: Albumpattern

I’ want to use a gallery on my site. I have about 200+ pictures.

Albumpattern looks pretty fine … but I don’t like it that albumpattern generates an article for each picture.

Is it possible to turn this off? So that albumpattern generates no article for each picture?

Thanks for your answer! :)

Offline

#270 2005-03-30 06:00:54

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: Plugin/Hack: Albumpattern

No. You might want to get a Flickr account, and use something like “vdh_flickr“http://www.rvdh.net/vdh_flickr/ (if you search for it you will find the forum topic).

Although it creates an article for each picture, they don’t appear in your articles section (in the admin panel), and, it allows for detailed information and data about each picture. There is no batch uploading procedure right now, so it might take you a while to upload all of your pictures.


bludrop studios .::. Creative Expression

Offline

Board footer

Powered by FluxBB