Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2004-08-05 19:07:03

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

Re: Plugin/Hack: Albumpattern

Martagnan: This should only be happening immediately after you upload any images (and IE and Firefox will give you a warning before you refresh), because what you are doing is sending the data again to the server to be processed. The file names are “name(0).jpg” right? (paranthesis around the number).

I don’t know why you can’t put more than 40 images in a gallery, I have a gallery right now with 50 some images working fine on my test bed.

For the problem with page views, open up txp_album.php, go down to line #281 and #283. Where it says albumPrevNextLink("album","album_edit",$page+1,gTxt('next'),'next',"id='$id'") remove the single quotes where it says id='$id', and do that in both places. That, hopefully, will fix your problem.

Offline

#50 2004-08-05 20:16:55

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

fixed – thanks Greenrift!
Also got more than 40 images into the gallery!
Really enjoying this plugin thanks for your hard work.

Offline

#51 2004-08-08 16:52:46

Glass
New Member
From: somewhere
Registered: 2004-08-08
Posts: 8
Website

Re: Plugin/Hack: Albumpattern

Ahhhhhh Help me please.
I believe I did everything right, but all I get nothing. All I get is the actual page design that I made. I get blank space where the albums should show up. I look at the HTML source and it is just blank space,

http://droptothetop.com/miscellanea/

is the page, if you think you can help.


love, IAN
[url=http://dropic.org/]dropic.org/[/url]
[url=http://droporg.org/]droporg.org/[/url]

Offline

#52 2004-08-09 02:11:30

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

Re: Plugin/Hack: Albumpattern

> Glass wrote:

> Ahhhhhh Help me please.
I believe I did everything right, but all I get nothing. All I get is the actual page design that I made. I get blank space where the albums should show up. I look at the HTML source and it is just blank space,

> http://droptothetop.com/miscellanea/

> is the page, if you think you can help.

So you did the small hack part, installed (and activiated!) the plugin, installed the database stuff, setup up the forms and put all the proper tags into your albumpattern section, right?

My best guess is that you didn’t do the last step correctly. When you place the txp:albumpattern tag (the one that’s required in your albumpattern section. Which doesn’t need to be named albumpattern. In fact, you could probably have articles in that section to, just don’t quite know how it would work out.), it will create an HTML comment that says <!— Albumpattern Loaded —>. I’m not seeing that comment on your site, so my best guess is that you either:

  1. Didn’t activate the Albumpattern plugin.
  2. Need to double check the tags in your section’s page.

Offline

#53 2004-08-09 02:14:42

Glass
New Member
From: somewhere
Registered: 2004-08-08
Posts: 8
Website

Re: Plugin/Hack: Albumpattern

HAHaha, Thank you.
I did not activate the pulgin, don’t I feel like an idiot.

Thanks for taking the time to help me out.


love, IAN
[url=http://dropic.org/]dropic.org/[/url]
[url=http://droporg.org/]droporg.org/[/url]

Offline

#54 2004-08-09 03:42:36

Al
Member
From: Deep in the north woods
Registered: 2004-02-24
Posts: 20
Website

Re: Plugin/Hack: Albumpattern

Thanks for this, it seems to work quite well (at least after I figured out the forms, but that’s the norm for me and TXP).

I like this thing so much I wrote a few hundred words about it and included some screenshots if anyone want to see what it looks like before installing.

Last edited by Al (2004-08-09 14:15:58)

Offline

#55 2004-08-10 04:29:07

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

Re: Plugin/Hack: Albumpattern

> Al wrote:

> Thanks for this, it seems to work quite well (at least after I figured out the forms, but that’s the norm for me and TXP).

I like this thing so much I wrote a few hundred words about it and included some screenshots if anyone want to see what it looks like before installing.

Sweet, thanks.

A lot of your suggestions are being worked on currently. It might take a while though, because I’ve kind of decided to throw a fair portion of the database structure out the window (okay, 90% of the current functions work with ~2 hours of work put into it, and comments are going to be really easy to do now, and searching is now allowed too!). Don’t worry though, I’ll make a way to transfer all old stuff to the new stuff. There are also some other smaller features that I think will be useful to some.

I’m interested in what you mean when you want to “use the Albumpattern tags on other Textpattern pages”? I plan on modifying some tags (ap:image, ap:thumbnail, etc) to take an ID parameter(like the txp:image tag currently does). Is that kind of what you were thinking?

Offline

#56 2004-08-10 05:48:56

krik
New Member
Registered: 2004-08-08
Posts: 5

Re: Plugin/Hack: Albumpattern

I think Albumpattern is awesome, and it was the first plugin i installed for txp, as soon as it was set up. Allthough i wouldn’t want to see it too bloated, i have a little wishlist of features that i’d love to see in a future version.

  • a simple way to build a tag for an image or thumb to be included in an article that will ether take you to the images containing album, or give you a medium or full scale version of the image. The tags should be able to take attributes for size and style.
  • previous/next link when in singleimageview
  • a way to rebuild/resize thumbs and images when changes in sitedesign demands it.
  • replace txp’s built in imagemanager completely :)

Ok, better stop here and save some for later, hehe.
What ever you do – thanx for sharing!

Offline

#57 2004-08-11 00:23:05

jeph
New Member
Registered: 2004-08-02
Posts: 4

Re: Plugin/Hack: Albumpattern

Very well built plugin Greenrift. I’m enjoying its flexability. One question though…and this is probably a stupid one:

How would it be possible to make it so when I click on a thumbnail (to open the full size image), the image opens in a new window? The reason I need this all of the content for my site is loaded into a small area, and most full size pics are bigger than said area.

Is there an easy resolution for this?

Thanks,

Jeph

Offline

#58 2004-08-11 00:57:50

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

Re: Plugin/Hack: Albumpattern

> jeph wrote:
> How would it be possible to make it so when I click on a thumbnail
> (to open the full size image), the image opens in a new window? The
> reason I need this all of the content for my site is loaded into a
> small area, and most full size pics are bigger than said area.

You could wrap the “txp:ap_thumbnail” tag with the “txp:highres” tag. So like:

&lt;txp:ap_highres&gt;&lt;txp:ap_thumbnail&gt;&lt;/txp:ap_highres&gt;

That will then make a link to the highest resolution image around the thumbnail image (which, will open in a new window. The reason that you stated is why I choose to make it this way).

Last edited by greenrift (2004-08-11 01:01:09)

Offline

#59 2004-08-11 04:56:48

jeph
New Member
Registered: 2004-08-02
Posts: 4

Re: Plugin/Hack: Albumpattern

Sweet, worked great! Took me a while to figure out that tag will only work when the resize size is *smaller than the original picture. So I set that to 1px and it opens a new page when each thumbnail is clicked. Perfecto!

Hey, one more thing… I’d like to add a javascript “close this page” function to the popup window that opens up. Is there a way to add stuff to that page?

Offline

#60 2004-08-11 06:36:56

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

Re: Plugin/Hack: Albumpattern

> jeph wrote:

> Hey, one more thing… I’d like to add a javascript “close this page”
> function to the popup window that opens up. Is there a way to add
> stuff to that page?

Not currently, sorry. The high resolution links are direct links to the image. Maybe I’ll do something later, but until I get some other stuff worked out, this will be how it is. (though, you could probably modify some of the image popup projects available to work).

Offline

Board footer

Powered by FluxBB