Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#253 2005-02-07 15:22:43
Re: Plugin/Hack: Albumpattern
Subject: Navigation with the txp:ap_next_page tag:
I have been working with AP and now have it about 98% working the way I want it – I just have a problem with navigation.
This seems so basic, I’m thinking that I’m doing something wrong, but I am using the ap_next_page and ap_prev_page tags to navigate pages in the album list and album preview sections.
I am using clean URL’s and the initial page in the album list is http://site.id/photo – when I click on the “next” button, the HTML overwrites the “photo” with “/?page=1” which takes me to the home page.
If I manually append the /?page=1 after the photo link, it works fine.
Should the tag append rather than replace or did I miss something?
Thanks
=======================================
More info: With clean URL’s it fails only on the album list (first level) pages not the album contents (second level). It looks like the photo section is not being included in the URL.
Last edited by dmcdonald (2005-02-09 13:57:33)
Dave McDonald
Offline
#254 2005-03-02 16:47:30
Re: Plugin/Hack: Albumpattern
Hey
Have anyone used AP with the new rc3 ?
Just wondering…..:)
regards,
Agust
Offline
#255 2005-03-02 17:01:02
Re: Plugin/Hack: Albumpattern
I haven’t but I’d be into trying if you can tell me where to get and how to install rc3!
Last edited by vibe9 (2005-03-02 17:01:19)
Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead
Offline
#256 2005-03-02 19:53:00
Offline
#257 2005-03-08 15:10:45
Re: Plugin/Hack: Albumpattern
Doesn’t seem to work.
First I had to comment out the function stripSpace($text) in txp_album.php, because it is already defined in lib/txplib_misc.php.
Now when I try to add an album, I only get ‘No error’ at the top of the page, but nothing happens. None of these problems with 1.0rc1 so far.
Offline
#258 2005-03-08 19:37:18
Re: Plugin/Hack: Albumpattern
LARF – Did you set the permissions for your IMAGES directory to 777 ?
Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead
Offline
#259 2005-03-09 09:53:44
Re: Plugin/Hack: Albumpattern
Yes I did that.
I investigated this issue a little further, and the problem already occurs when adding a new album (not when adding pictures to an album, I did not get this far yet).
So I added the SQL-entry and the subdirectory of images manually:
INSERT INTO txp_album VALUES (1,‘Winterfotos’,‘Winterfotos’,‘winterfotos’,‘2005-03-01 15:41:50’,‘admin’,‘2005-03-01 16:13:42’,‘admin’,’‘,’‘,0,4,’‘,’‘,1,‘Galerie’);
mkdir images/1
chmod -R 777 images
Now I see my album in Textpattern, but cannot add pictures:
Warning: move_uploaded_file(/images/1/Futurama13.jpg) [function.move-uploaded-file]: failed to open stream: Datei oder Verzeichnis nicht gefunden in /var/www/ . . . /htdocs/textpattern/include/txp_album.php on line 421
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move ‘/tmp/phpvFGTcn’ to ‘/images/1/Futurama13.jpg’ in /var/www/ . . . /htdocs/textpattern/include/txp_album.php on line 421
I think the problem is that the script tries to move the file to /images/1/Futurama13.jpg instead of /var/www/ . . . /htdocs/images/1/Futurama13.jpg.
Maybe I messed something up. I’ll check it out tomorrow.
Offline
#260 2005-03-09 10:26:20
Re: Plugin/Hack: Albumpattern
Problem solved. My rc3 installation is a completely fresh installation, so it did not have:
$txpcfg[‘doc_root’] = ‘/var/www/ . . . /htdocs’;
in the config.php. See this comment in textpattern/.svn/text-base/publish.php.svn-base:
My $_SERVER[‘DOCUMENT_ROOT’]; is not correct for some reason (multiple vhosts?).
I simply added:
$txpcfg[‘doc_root’] = ‘/var/www/ . . . /htdocs’;
to my config.php and it seems to work now.
Offline
#261 2005-03-09 16:03:52
Re: Plugin/Hack: Albumpattern
Hmm, the backend was ok again, but now I’ve switched my production site to rc3, and the frontend does not work anymore. When I click on the preview picture of an album nothing happens.
Any help?
Offline
#262 2005-03-10 22:09:20
Re: Plugin/Hack: Albumpattern
Greenrift, any news on maybe integrating Flickr?
bludrop studios .::. Creative Expression
Offline
#263 2005-03-13 20:51:43
Re: Plugin/Hack: Albumpattern
@blumie607:
I’m planning to write a plugin for flickr, and I will most probably start tomorrow. May I use you as a beta tester?
Offline