Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2004-10-18 01:21:00

robbie
New Member
From: Durham NC
Registered: 2004-09-26
Posts: 5

Re: Plugin/Hack: Albumpattern

I’m not sure that thumbnails will link you to a highres image opening in a new window. It will open on an album page though. You can use the highres tag as above in your form then link to it from the thumbnail.

Put this where you want the thumbnail:
<code><txp:permlink><txp:ap_thumbnail /></txp:permlink></code>

Put this where you want the highres image:
<code><txp:ap_highres><txp:ap_image /></txp:ap_highres></code>

Hope this helps.

Offline

#122 2004-10-18 01:34:44

robbie
New Member
From: Durham NC
Registered: 2004-09-26
Posts: 5

Re: Plugin/Hack: Albumpattern

> robbie wrote:

> I think I may have found a bug here with the [ap next image] and [ap prev image] tags. They don’t seem to always point to the next image in the image category. Sometimes they point to what seems to be a random image.

I’ll look at the plugin’s code in a bit to see if I can figure out why this is happening, but it’s confusing to see it work sometimes depending on which image you’re clicking from.

Update:
Well it looks like the images are sorted in the getNeighbour function by the Posted field. This works fine as long as this time is never the same for two images. But if you upload multiple images (as I’ve done) using the plugin’s 5 upload fields, the times in that field could be identical. In this case, the getNeighbour function always gets the first image from that posted time and doesn’t differentiate between each of the (up to 5) images. So you might get the <code><txp:ap_next_image /></code> for two different images in an album pointing to the same image completely skipping over several images in the album.

So anyway, the temporary workaround is to upload the images individually. Kind of a pain, but it will make the <code><txp:ap_next_image /> and <txp:ap_prev_image /> tags point to the right place.

Offline

#123 2004-10-18 10:49:11

jhaeusler
Member
From: Berlin
Registered: 2004-09-04
Posts: 22
Website

Re: Plugin/Hack: Albumpattern

<code><txp:ap_highres><txp:ap_thumbnail /></txp:ap_highres></code>

is working now, I’ll post the solution so others will find it. It’s been mentioned here before, but I didn’t get it in that other post.

It only works if you have three image sizes. The thumbnail, the large view that you scaled while uploading and the “original”, larger-than-large view. If your original is not larger than your large scale, ap_highres won’t work.

(Hm. Is that really clearer? :))

greenrift, how can I change the code to make ap_highres work with my large scale version of the image? Can I?


http://ww.spreeblick.de, a weblog from Berlin

Offline

#124 2004-10-18 18:30:09

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

Re: Plugin/Hack: Albumpattern

jhaeusler : Try using ap_image instead of ap_thumbnail. I think that should work (wrap a link to the highest resolution image around the display image).

robbie : thanks for help, that should be an easy enough problem to fix.

blumie : I’ll take a look at it tonight and get back to you.

jeph : The txp:body tag should be working fine. I’ll take a look into it and see what may be the problem. Strange that everything is coming up but when you go to post a comment the thing craps out, because commenting is handled by TXP. Do comments on “normal” articles work fine?

Any others: tonight I’ll look through for unresolved stuff. if it’s been a long while just feel free to email me.

Update news: I’ve decided that I’m probably not going to release anything but a bug fix update to Albumpattern until Textpattern 1.0. I have some stuff planned that will make debugging a lot easier and some other ideas as well.

Offline

#125 2004-10-19 01:24:47

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: Plugin/Hack: Albumpattern

Thanks greenrift, but I believe I fixed my problem. It had to do with faulty code I must have gotten from the sample file which ended up in the forms area. There was a missing /> or something like that.

I used the suggestion someonelse gave about <code><ap_highres><ap_image></ap_highres></code>. The only question i have is about the preferences. In there there is a setting about resizing the image. When I look on the page with the full image, though, it hasn’t been resized.

Thanks


bludrop studios .::. Creative Expression

Offline

#126 2004-10-20 09:23:46

Innocence
New Member
From: Frankfurt/Germany
Registered: 2004-10-18
Posts: 2

Re: Plugin/Hack: Albumpattern

Thanks greenrift for your Plugin, it works now great for me.

I want to to submit a proposal: I have a lot of Albums with < 100 Images. When i upload the images manually, i need lot of time because i can only upload 5 images in one instance (because http-upload settings?). Can you built ZIP/TAR Upload-Support for Albumpattern?

You can see my Albums here: Click

Offline

#127 2004-10-21 12:49:02

Innocence
New Member
From: Frankfurt/Germany
Registered: 2004-10-18
Posts: 2

Re: Plugin/Hack: Albumpattern

Hmm.. on my server (with safe_mode=on) are no file-restrictions. Which RC-Version do you use?

Offline

#128 2004-10-21 14:56:54

Tae
Member
From: nyc
Registered: 2004-08-25
Posts: 20

Re: Plugin/Hack: Albumpattern

is there a list of sites that use albumpattern? i’d love to see what others have done with it. maybe a list on the original post, updated periodically?

Offline

#129 2004-10-24 14:19:10

macsepp
Member
From: Ludwigsburg - Germany
Registered: 2004-09-02
Posts: 19
Website

Re: Plugin/Hack: Albumpattern

Your problem with the safe_mode thing is, that your script is owned by another user then the folders will have that it creates. If you create an album, the APs script creates that folder and this folder then has the owner and group of root (or whatever is conifgured on you server), then the script wants to upload into that folder to which it then isn’t allowed to anymore. It isn’t a fault or any bug of AP or something, it is just a safety restriction that has its good reason. You should turn safe_mode off for the images folder, that Albumpattern uses. You do that in your Apache’s httpd.conf, or when allowed, in a .htaccess file inside the images folder.

Last edited by macsepp (2004-10-24 15:05:36)


Textpattern loves me, and I love textpattern.

Offline

#130 2004-10-25 22:24:14

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Plugin/Hack: Albumpattern

Warning: Cannot modify header information – headers already sent by (output started at /home/starbeck/public_html/textpattern/publish/comment.php:393) in /home/starbeck/public_html/textpattern/publish.php on line 170

Um, this error is shows up and nothing else…

Did the whole install and installed the plugin and nothing shows up except the error.

Any thoughts?


To even the least of these…

Offline

#131 2004-10-26 18:01:54

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Plugin/Hack: Albumpattern

Okay, I got that Warning fixed and things are working, except for the display of the single image.

I used the example forms provided and have the album preview working, as well as the album list, but when you try to view the main image i get nothing…

Please help…

EDIT: I am an idiot… It is working and I am so stoked! Naming conventions often make the most perfect code go awry!

Thanks for the excellent plugin!

Last edited by jbrew (2004-10-26 18:22:30)


To even the least of these…

Offline

Board footer

Powered by FluxBB