Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2005-01-04 00:07:04

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

Re: Plugin/Hack: Albumpattern

I’ve released a new version. It’s a lot better than the TR3. I hope to fix any and all bugs and call this one a final version. Then I’ll add some bulk uploading and extra features.

Download TR4

Should work on RC1, RC2, and possibly 1.19g (hacks should be applied manually, search for “albumpattern” in the optional hacks folder). Please read the documentation and install correctly. Back up your TXP database before, I somehow lost articles on my testing server while making this update, but I didn’t lose any on my development server. Just to be extra careful.

Besides a better interface, better error handling and bug fixes, one of the biggest improvements is that you arn’t bound to a single textpattern section anymore. You’d want to be careful with how your page is setup if you mixed articles and albums, though I see no reason why one couldn’t. Send me any bugs with as much detail (and links) as possible.

Offline

#194 2005-01-04 03:46:20

timothygray
New Member
From: Atlanta
Registered: 2004-12-19
Posts: 9
Website

Re: Plugin/Hack: Albumpattern

I can’t seem to get the link_to_prevpage and link_to_nextpage tags to do anything. The page just outputs nothing where the tags should be. I am using the following code:

<txp:link_to_prevpage>previous</txp:link_to_prevpage>|<txp:link_to_nextpage>next</txp:link_to_nextpage>

Offline

#195 2005-01-04 03:54:34

timothygray
New Member
From: Atlanta
Registered: 2004-12-19
Posts: 9
Website

Re: Plugin/Hack: Albumpattern

i also just noticed that the album entries are showing up under my recent posts, but if I click them, they don’t work because they are missing the part of the URL that points to the album. See the bottom of the center column on my site: www.timothygray.com

In an ideal world, a new album posting would add a single entry to the recent posts and clicking it would take the user to the new album. Another similar idea would be to allow users to view albums that are related to a section, so if I have a category called “hiking”, and I have a album with a category “hiking” the albums would show up when I look for articles with a category of “hiking”. To see what I mean, click the combo box above the search and select hiking. Nothing will show up. It would be nice if my new album appeared there since it has a category of hiking.

(After the update, the links no longer appear in my recent articles listing. Is there any way to pull off what I mention above using the new version, since albums can now be linked to different sections?)

Last edited by timothygray (2005-01-04 04:40:19)

Offline

#196 2005-01-04 04:24:36

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

Re: Plugin/Hack: Albumpattern

> timothygray wrote:

> I can’t seem to get the link_to_prevpage and link_to_nextpage tags to do anything. The page just outputs nothing where the tags should be. I am using the following code:

<txp:link_to_prevpage>previous</txp:link_to_prevpage>|<txp:link_to_nextpage>next</txp:link_to_nextpage>

It should be txp:ap_prev_image and txp:ap_next_image. Old documentation I should have updated.

From now I’ll have the latest version of the documentation the albumpattern website.

Last edited by greenrift (2005-01-04 04:29:08)

Offline

#197 2005-01-04 04:32:04

timothygray
New Member
From: Atlanta
Registered: 2004-12-19
Posts: 9
Website

Re: Plugin/Hack: Albumpattern

wow… that works pretty strangely!

i have 8 photos in my album. when i get the the fourth one and click next, i get the album contents instead of #5. Any ideas?

Offline

#198 2005-01-04 04:48:48

timothygray
New Member
From: Atlanta
Registered: 2004-12-19
Posts: 9
Website

Re: Plugin/Hack: Albumpattern

i just checked an album that was already built and all the images showed up missing (they appear correctly outside of TXP admin). I tried to re-upload and go the following errors: Warning: move_uploaded_file(/home/timothy/public_html/images/1/tmp_image): failed to open stream: No such file or directory in /home/timothy/public_html/textpattern/include/txp_album.php on line 460

Warning: move_uploaded_file(): Unable to move ‘/tmp/phpCrPUna’ to ‘/home/timothy/public_html/images/1/tmp_image’ in /home/timothy/public_html/textpattern/include/txp_album.php on line 460

I checked and the file’s permissions are 777

Offline

#199 2005-01-04 04:52:11

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

Re: Plugin/Hack: Albumpattern

the way that textpattern and albumpattern handle “next / previous images/articles” is based on the posted date, so if you upload images at the same time, they might have the exact same posted date (well, in TR4 they won’t). Which is why the next previous stuff used to freak out.

Go through and resave all your images, that should clear up your problems.

Offline

#200 2005-01-05 01:44:26

homm2
New Member
Registered: 2004-12-24
Posts: 5

Re: Plugin/Hack: Albumpattern

I just tried to install TR4 and unfortunately it doesn’t work. I have previously installed TR3 (on a different server) without a problem, but I’m not having much luck this time. For some reason, after a seemingly successful install, I go to the Albumpattern tag, which displays fine, click on the ‘preferences’ tab and get a white page. Also, when I click on the ‘list’ tab, nothing happens. I followed the instructions exactly, so I’m really not sure what I could have done wrong. I’ll try installing again on a different server and a totally clean installation of txp.

— Tim

Offline

#201 2005-01-05 04:04:49

homm2
New Member
Registered: 2004-12-24
Posts: 5

Re: Plugin/Hack: Albumpattern

I just tried installing TR4 on a different server and had the same problem. This server actually lets me see PHP error messages, and I saw that it was complaining about a missing ‘mdp_lib.php’. I uploaded that file and now it seems I can get into preferences just fine. I still havn’t gotten it to display images and such, but I’m not sure if that’s because I havn’t figured out how Albumpattern works.

Greenrift, were there some files you forgot to include in the TR4 zip or was I just doing something wrong? Thanks!

Offline

#202 2005-01-05 05:56:34

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

Re: Plugin/Hack: Albumpattern

Yes, I did forget to include mdp_lib.php. Thank you. It’s now in there for anyone downloading it new.

homm2, have you tried creating an album? or can you not do that at all? If have created albums and uploaded images and that stuff is working fine, then I would recommend trying the example forms and page layout. Those should work just fine.

Offline

#203 2005-01-05 23:11:20

dkruitbosch
New Member
Registered: 2004-12-17
Posts: 9

Re: Plugin/Hack: Albumpattern

Hi,

I’ve just upgraded to TR4. Every seemed to work fine until I tried to upload images to a newly created album. These are the errors that showed up in my browser:

Warning: getimagesize(/var/www/html/images/4/IMG0158.jpg): failed to open stream: No such file or directory in /var/www/html/textpattern/lib/classImageManipulation.php on line 63

Warning: imagecreatefromjpeg(/var/www/html/images/4/IMG0158.jpg): failed to open stream: No such file or directory in /var/www/html/textpattern/lib/classImageManipulation.php on line 263

Warning: Division by zero in /var/www/html/textpattern/lib/classImageManipulation.php on line 248

Warning: imagecreatetruecolor(): Invalid image dimensions in /var/www/html/textpattern/lib/classImageManipulation.php on line 277

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/html/textpattern/lib/classImageManipulation.php on line 283

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/html/textpattern/lib/classImageManipulation.php on line 287

Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/www/html/textpattern/lib/classImageManipulation.php on line 294

Any ideas?

Thanks!

Danny

Offline

#204 2005-01-06 04:05:28

mono
Member
Registered: 2005-01-05
Posts: 12

Re: Plugin/Hack: Albumpattern

Hi, I am a TextPattern newbie and this is the first plug-in I am installing, so your patience is appreciated. When I run the install file to AlbumPattern, I get the following errors:

Warning: main(): Unable to access /publish.php in /home/virtual/site65/fst/var/www/html/textpattern/textpattern/albumpattern_install.php on line 16

Warning: main(/publish.php): failed to open stream: No such file or directory in /home/virtual/site65/fst/var/www/html/textpattern/textpattern/albumpattern_install.php on line 16

Warning: main(): Unable to access /publish.php in /home/virtual/site65/fst/var/www/html/textpattern/textpattern/albumpattern_install.php on line 16

Warning: main(/publish.php): failed to open stream: No such file or directory in /home/virtual/site65/fst/var/www/html/textpattern/textpattern/albumpattern_install.php on line 16

Fatal error: main(): Failed opening required ‘/publish.php’ (include_path=’.:/php/includes:/usr/share/php’) in /home/virtual/site65/fst/var/www/html/textpattern/textpattern/albumpattern_install.php on line 16

There were some items at the end of the install instructions that were a bit unclear so I am not sure if I did everything correctly? Does anyone know why I am getting this error (related to the publish.php file)?

Thanks for your help,

Josh

Offline

Board footer

Powered by FluxBB