Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#205 2005-01-06 07:11:26

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

Re: Plugin/Hack: Albumpattern

mono, are you sure you correctly set the $path_to_txp variable? There shouldn’t be a trailing, an example would be like /home/virtual/site65/fst/var/www/html/textpattern

If this is correctly set it will load up your TXP config file and then include publish and the other nessecary files.

Offline

#206 2005-01-06 12:07:09

heimar
New Member
From: ebonia
Registered: 2004-11-03
Posts: 6

Re: Plugin/Hack: Albumpattern

all seems to be working, but it doesn’t create thumbnails. Instead of that it generates the picture in full size. What could be the problem?


thank you, Jebus!

Offline

#207 2005-01-07 11:52:13

lithiumdave
Member
From: UK
Registered: 2004-09-14
Posts: 10

Re: Plugin/Hack: Albumpattern

I’d be grateful if anyone can help me with page/album navigation, as I just can’t get it to work properly. The test page is here: http://copshop.definitiondesign.com/gallery/

Album list: as an example, if I set the ‘albums per page’ setting to 2, and yet I have 5 albums, I obviously need some way of outputting “You are viewing albums x and x out of a total of x albums”, with ‘previous’ and ‘next’ links to navigate to them. I’ve tried ap_prev_page and ap_next_page in a variety of ways but with no success. If I use them on the page, I get a PHP error:

Warning: extract() expects first argument to be an array in /home/design-0/public_html/staging/copshop/cms/publish.php(767) : eval()’d code on line 850 Warning: extract() expects first argument to be an array in /home/design-0/public_html/staging/copshop/cms/publish.php(767) : eval()’d code on line 827

If I use them in a form, nothing is output at all. At the moment, if there are more albums than are set to view on one page there is no way of navigating to the older ones at all.

Can anyone tell me exactly what code I need to use, and exactly where to put it? Thanks ever so much.

Less importantly, I also have 2 similar problems with navigation in the 2 other forms, again I’d appreciate any help.

Album image: I’ve got previous and next working here ok, but how do I output ‘You are viewing image x of a total of x’ in the whole album?

Album single: if there are more images to show than is set in ‘images per page’ in preferences, again how do I have navigation with an indication of ‘You are viewing 5 out of a total of 20 images’, with links to view the next 5?

Offline

#208 2005-01-07 14:32:04

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

Re: Plugin/Hack: Albumpattern

greenrift, there is no trailing backslash at all, and it in fact finds the config file, but then I get the error when it tries to find the publish.php file.

Offline

#209 2005-01-07 20:27:45

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Plugin/Hack: Albumpattern

Would anyone find use out of having a coppermine integration plug-in?

Offline

#210 2005-01-10 23:42:24

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

Re: Plugin/Hack: Albumpattern

Hi greenrift!

I got everything working now. The only problem was that I had to manually install the plugin. Should that be installed automatically or is it expected the the user do that manually? If it is supposed to be done manually, could that be added to the documentation, or at least a note that if it doesn’t show up, you can install it manually.

It’s really a great piece of software. Thank you!

Offline

Board footer

Powered by FluxBB