Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2004-07-21 10:00:14
- MattM
- Member
- Registered: 2004-04-16
- Posts: 11
Re: Plugin/Hack: Albumpattern
Thanks, but all permissions are set correctly.
Offline
Re: Plugin/Hack: Albumpattern
Hello
Does anyone know what this means (and how to rectify it)? – when I upload images to an album:
Warning: chmod(): No such file or directory in /site_root/textpattern/lib/classImageManipulation.php on line 308
Warning: getimagesize(/site_root/images/album_name/IMG_0041t.jpg): failed to open stream: No such file or directory in /site_root/textpattern/lib/classImageManipulation.php on line 310
—
SOLUTION:
I’ve just noticed that this error only happens if AP is set to use ImageMagick (via txp_album.php) .. if it’s set to use GD the error goes away.
Thanks
Last edited by spiffin (2004-07-25 14:09:30)
Offline
Re: Plugin/Hack: Albumpattern
It took me a little while to figure it out:
After following the install instructions you need to create 3 new forms. For example:
[Form name: album_single]
< div class=“album” >
< txp:permlink >< txp:ap_thumbnail / >< /txp:permlink >
< div ><txp:title / >< /div >
< /div >
[Form: album_image]
< div class=“single” >
< h2>< txp:title / >< /h2 >
< txp:ap_breadcrumbs / >
< div class=“image” >< txp:ap_image / >< /div >
< txp:caption / >
< txp:permlink >#< /txp:permlink >
< /div >
[Form: album_list]
< div class=“album_preview” >
< txp:niceShadow >< txp:permlink>< txp:ap_thumbnail />< /txp:permlink>< /txp:niceShadow >
< div class=“title” >< txp:permlink >< txp:title / >< /txp:permlink >< /div >
< div class=“date” >< txp:posted / >< /div >
< div class=“author” >By < txp:author / >< /div >
< /div>
< div class=“clearer” > < /div >
[thanks to greenrift and mrcbrown – obviously strip spaces around the < > s]
And then a new page (presentation > pages) with the barebones content and nothing else .. so the content area on your page template should look like this:
< div id=“center” >
< 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>
< /div>
[obviously strip spaces after < and before > and call the 3 forms whatever you’ve called them]
You then create a section (called gallery, album, whatever) and set it to use your new page. Then just go to that section (if you’re using clean urls .. just go to www.example.com/section_name) .. and assuming you’ve populated at least one album it should show up on that page.
Simon
Last edited by spiffin (2004-07-26 17:52:53)
Offline
Re: Plugin/Hack: Albumpattern
Hi all
On another AP issue, I’m getting a validation error on my main album page (just using the standard forms and barebones example):
end tag for element “txp:permalink” which is not open
.. after every album thumbnail.
Is this a bug .. or can I fix it by editing my page/forms?
Thanks
Simon
Offline
Re: Plugin/Hack: Albumpattern
Try this: linkage
Last edited by mrcbrown (2004-07-26 15:15:48)
Offline
Re: Plugin/Hack: Albumpattern
Thanks for that mrcbrown .. your forms certainly produce a cosmetically better album list (album titles listed properly etc) ..
—
UPDATE:
This is now solved .. there’s actually a typo in both the 3 forms by mrcbroan and by greenrift. Both sets of forms have closing tag incorrectly spelt as:
txp:permalink
.. whe it should be:
txp:permlink
[obviously add <>s]
— Excellent .. all working now.
Simon
Last edited by spiffin (2004-07-27 15:19:14)
Offline
Re: Plugin/Hack: Albumpattern
Excellent plugin Greenrift! Looking forward to seeing this grow.
Just a note for those of you who might have the same problem I did. Its set to use Image Magik by default, if you don’t have Image Magik, or would rather use GD then edit line 9 of txp_album.php and set the RT_IMGSYS to 0.Cheers -Justin
Isolated-Designs http://www.isolated-designs.net/core
Offline
Re: Plugin/Hack: Albumpattern
Hi Xilus
Have you had a look at my long post above? I updated it a short time ago to cover everything I did to get it going (inclucing some validation errors).
Have you created an album and uploaded some images?
Are you running clean urls or messy urls?
I’ve been playing with AP all day so now have a reasonable handle on how it works.
Send me the url to your gallery and I’ll take a look.
Try once again as above .. and if you’re having real problems you coudl maybe give me a publisher account on your site and I coudl go in and look at it. (If you don’t mind of course.)
Simon
Offline
Re: Plugin/Hack: Albumpattern
Also note that if you do not have the niceShadow plugin that it will not display if your pasting the code spiffin gave or mrcbrown linked to.
Isolated-Designs http://www.isolated-designs.net/core
Offline
Re: Plugin/Hack: Albumpattern
> Xilus wrote:
> I have missed this plugin(s) :) niceShadow, where can I find that?
niceShadow is included in the mdp_lib.php file thats included in the Albumpattern 1.0T zip file. You will need to set up the Onion Skin Drop Shadows properly though, otherwise there won’t be any shadow.
Offline
Re: Plugin/Hack: Albumpattern
Please… is there any plans to have this work when PHP is in safe mode??
Offline
Re: Plugin/Hack: Albumpattern
I get the usual ImageMagick error:
Warning: chmod(): No such file or directory in /web/htdocs/www.ringaround.it/home/textpattern/lib/classImageManipulation.php on line 302
Warning: getimagesize(/web/htdocs/www.ringaround.it/home/images/spoleto-2003/loggiat.jpg): failed to open stream: No such file or directory in /web/htdocs/www.ringaround.it/home/textpattern/lib/classImageManipulation.php on line 304
but I wonder why? On the same server that hosts this site, I have a Gallery which uses ImageMagick. So it must be a problem of misconfiguration… What are the parameters I have to look for in order to use it, and which are the files I need to modify?
Can somebody help?
Offline
Re: Plugin/Hack: Albumpattern
Hi Macubu
Yes I get the same error when I try to run AP using ImageMagick .. so for the time being I’ve set it to use GD.
I suspect the error is something to do with the script not finding convert or mogrify .. but I’m not sure where to enter the correct path.
I believe greenrift’s looking into it.
(This is a testing release after all .. and so far it’s pretty amazing.)
S
Offline
Re: Plugin/Hack: Albumpattern
Updated to version Testing Release 2
This has a bunch of bug fixes (I hope I got most everybody’s). It should work in PHP Safe Mode (ImageMagick may not), and ImageMagick should work better (you have to provide Albumpattern with the path (/usr/local/bin/ is common), maybe in the next version I’ll have it discover ImageMagick). There are a couple of additional features as well. This is quite final yet, but I hope to squash all the bugs I can in this release. Then I’ll add in some additional image manipulation stuff, and image comments and some other stuff. Once that is done, I think I’ll have all the features I originally wanted in this thing.
tntrazor, do you have my calendar plugin installed? If so, update to the latest version and that should fix your problem.
Offline