Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Plugin/Hack: Albumpattern
I have open_basedir in effect with no issues, however I am not in safe mode (that I know of) it all works in PHPsuExec though.
Offline
#14 2004-07-21 08:16:26
- MattM
- Member
- Registered: 2004-04-16
- Posts: 11
Re: Plugin/Hack: Albumpattern
I’ve followed all the insructions and set the correct permission but when I try to create a new album, I get this:
Warning: mkdir() failed (Permission denied) in
/usr/local/psa/home/vhosts/dokicnews.co.uk/httpdocs/textpattern/include/txp_album.php
on line 145
and below that I get:
directory permissions must be 777
I assume the script is unable to create the directory required.
Offline
#15 2004-07-21 08:26:07
- xenlab
- Member
- From: winter park, fl
- Registered: 2004-07-08
- Posts: 16
Re: Plugin/Hack: Albumpattern
MattM – just login using your FTP (or your host’s control panel’s file/folder manager) and change the permissions of the include dir to be 777 and see if that fixes it. i know thru ws_ftp (an ftp prog) that you just right click the dir and choose properties to get the file permissions… basically 777 is all properties checked off or turned on
thanks,
xenlab
http://www.xnlb.com/
Offline
#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