Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Plugin/Hack: Albumpattern
This new release works well.
Has anyone figured out where to enter the desired resize dimensions?
..
~
Offline
Re: Plugin/Hack: Albumpattern
There is a not terribly little, but maybe I need to make it more obvious, “Edit Preferences” link when you first click the Album tab. It’s right up there at the top. From there it will take you to a page that will let you edit all those preferences (just make sure you edited and ran albumpattern_sql.php, because otherwise things won’t work).
I was thinking about adding the preferences to the regular Admin->Preferences tab, but I’m trying to keep the number of hacks to TXP as low as possible.
Last edited by greenrift (2004-08-01 16:01:44)
Offline
Re: Plugin/Hack: Albumpattern
Thanks greenrift (and sorry I’d overlooked the obvious).
This plugin now works extremely well .. excellent work, thank you.
Offline
Re: Plugin/Hack: Albumpattern
Hey Greenrift Thanks for making AP work in safe mode! I seem to now have a problem with ImageMagick…
- I have set all permissions to 777
- AP is creating my album directories within my images directory without problems
When I upload I get this error…..
Warning: chmod failed: No such file or directory in /home/mysite/public_html/textpattern/lib/classImageManipulation.php on line 364
Problem encountered while resizing using ImageMagick
Command Line Executed
/home/mysite/public_html/albumpattern/images/convert -size 350×343 ‘/home/mysite/public_html/images/album-number-two/boot.jpg’ -quality 75 -resize 350×343! ‘/home/mysite/public_html/images/album-number-two/bootr.jpg’
Image Magick Returned
Array
Strange thing is that my image DOES actually get uploaded and I can view it.
Any help or hints appreciated!
Thanks
Offline
Re: Plugin/Hack: Albumpattern
Hey, I just installed this on a testsite on my localhost. It seems to work.
except: after I upload images, it displays a pages with errors, and when I go back to the album it says the images are uploaded.
and: what are the tags to implement the album in your page (probably a dumb question)
thanks
Offline
Re: Plugin/Hack: Albumpattern
alright, smooth uploading works when I type something in the excerpt box, still, what are the tags?
Offline
Re: Plugin/Hack: Albumpattern
Undefined variable: ap_imagesys in \textpattern\include\txp_album.php on line 40
same shit until line 49, that’s in “albumpattern preferences” and I can’t set ‘albums per page’, ‘images per page’, etc etc
Offline
Re: Plugin/Hack: Albumpattern
Martagnan: You probably need to set the path to convert. Go into the preferences, and try /usr/local/bin/ . I’m almost positive that is the reason that you are having a problem resizing your images.
Fugazi, did you edit, upload, and run albumpattern_sql.php? (well, I guess you did otherwise you’d get other errors before that page). Upload and run it again, that should fix your problems. It looks like the albumpattern perferences were not setup correctly in your database, which would result in undefinied variable’s.
All the tags are available in the includeddocumentation.html file and also when you click on the plugin name in the Admin->Plugin tab (fyi, most plugins will have their documentation here as well. Also, when you are done viewing the page, I wouldn’t recommend hitting “Save”).
Last edited by greenrift (2004-08-03 01:31:23)
Offline
Re: Plugin/Hack: Albumpattern
Hi Greenrift…
I altered the preferences and now the error is…
Warning: chmod failed: No such file or directory in /home/martagnanuk/public_html/textpattern/lib/classImageManipulation.php on line 364
Problem encountered while resizing using ImageMagick
Command Line Executed
@/usr/local/bin/convert -size 350×525 ‘/home/mysite/public_html/images/album-number-one/picture.jpg’ -quality 75 -resize 350×525! ‘/home/mysite/public_html/images/album-number-one/picture.jpg’
Image Magick Returned
Array
The only thing different is @/usr/local/bin/
Last edited by Martagnan (2004-08-02 14:30:50)
Offline
Re: Plugin/Hack: Albumpattern
Yes, I was a little to quick. I threw it all away and started over. Everything works properly now, except I can’t seem to publish an album.
So everything works, but I don’t get the step to publish the album on the page.
placing this tag doesn’t do anything:
<txp:albumpattern />
<txp:if_album_list>
<txp:album_list form=“album_preview” />
</txp:if_album_list>
<txp:if_individual_album>
<txp:album form=“album” />
</txp:if_individual_album>
<xp:if_individual_image>
<txp:album_image form=“album_image” />
</txp:if_individual_image>
I hope I’m not too dumb with posting this
thanks in advance
Last edited by Fugazi (2004-08-02 14:35:09)
Offline
Re: Plugin/Hack: Albumpattern
Ehm, how do you upgrade from version 1 to the second? Do I have to replace just the plugin or everything else too? Is there something I have to know before I make everything go wrong?
Thanks!
Offline
Re: Plugin/Hack: Albumpattern
Martagnan: Sorry for the confusion, I meant to wrap the /usr/local/bin/ stuff in code tags and forget the second @ needed for Textile to do that. So the path should be /usr/local/bin/ and not @/usr/local/bin/. That is probably your problem. If that doesn’t fix it, email your system adminstrator and ask for the path to ImageMagick’s “convert” program.
Fugazi: Email me the tag stuff, it isn’t showing up because of the <‘s and >‘s.
Macubu: Replace everything (plugin, txp_album.php, classImageManipulation.php, etc). Then edit, upload, and run albumpattern_sql.php to upgrade the database.
Last edited by greenrift (2004-08-03 01:40:25)
Offline
Re: Plugin/Hack: Albumpattern
Greenrift – It was a problem at my ISP end. My AlbumPattern is now working perfectly!! Yay!
I do HAVE to say a <strong>GREAT BIG THANKS</strong> to <a href=“http://www.supanames.com”><strong>Supanames</strong></a> who absolutely went out of thier way to help me get this working. This is the latest in a history of brilliant, efficient and very fast tech support from Supanames. – well recommended!
Last edited by Martagnan (2004-08-03 12:16:33)
Offline
Re: Plugin/Hack: Albumpattern
By the way….
Is there yet a way to get AlbumPattern to ‘look’ like PhotoStack with:
- List of galleries<br />
- thumbnail navigation<br />
- main image on the same page as thumbnail navigation.
Thanks
Offline
Re: Plugin/Hack: Albumpattern
> Martagnan wrote:
> By the way….
Is there yet a way to get AlbumPattern to ‘look’ like PhotoStack with:
- List of galleries can do (well, that depends. If you mean a list of galleries when you’re viewing a single image or a single album, no. But I, or someone else, could easily write the tag).
- thumbnail navigation coming soon
- main image on the same page as thumbnail navigation. coming soon
Last edited by greenrift (2004-08-03 14:09:48)
Offline