Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#289 2006-02-18 03:11:29

sonnyzm
New Member
Registered: 2006-02-14
Posts: 9

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

lol sorry about that, let me fix it..
fixed =) thanks for the quick replies btw

Last edited by sonnyzm (2006-02-18 03:16:21)

Offline

#290 2006-02-18 03:26:03

rbe
Member
Registered: 2006-02-12
Posts: 27
Website

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

no problem :) I struggled with understanding how this all works when I first started using txp as well :)

okay.. if you kept your setup like the one on the tutroial this should do it… change your page template to the following
<code>
<txp:if_article_list>
<txp:article_custom form=“gallery-single” section=“gallery” />
</txp:if_article_list>

<txp:if_individual_article>
<txp:article form=“gallery-single” />
</txp:if_individual_article>
</code>

What was likely happening is you click on the gallery section and the Page template saw you were in an “article list”. The template says okay, then I’ll show the gallery-list form. That form only shows the link. What will happen now is the page template will call the form “gallery-single” which shows more information (specifically the gallery).

Another option is to change the gallery-list form to show the gallery (includ the rss_thumbpop tag) and maybe an excerpt of the article or something…

Let me know how that works!

Offline

#291 2006-02-18 03:34:17

sonnyzm
New Member
Registered: 2006-02-14
Posts: 9

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

hey thanks i’ll give that a try, I’ll tell you how it goes after my lunch break, this thing is confusing hehe.

cheers, Sonny

UPDATE
Hey it works!! thanks so much RBA, that was such a simple thing I overlooked you saved me =D
btw, it seems to work fine without this seceond section of code
<code>
<txp:if_individual_article>
<txp:article form=“gallery-single” />
</txp:if_individual_article>
</code>

Last edited by sonnyzm (2006-02-18 03:42:53)

Offline

#292 2006-02-18 03:59:50

rbe
Member
Registered: 2006-02-12
Posts: 27
Website

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

glad to hear its working :) technically you don’t need the second line. however, if somebody goes to the “single article” typically by clicking on a permlink then your page won’t show anything… as an alternative, you could just change the page to be <code><txp:article_custom form=“gallery-single” section=“gallery” /></code> with nothing else… That will ALWAYS show the list of articles that are in the gallery using the “gallery-single” form.

fixed the code tag… doh!

Last edited by rbe (2006-02-18 04:00:27)

Offline

#293 2006-02-20 12:35:23

dominik.osterholt
Member
Registered: 2006-01-13
Posts: 18

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

Hi everybody,

First of all – wilshire, great plugin. Thanks for your work.

I’m still missing the function a user named skycaptain requested several months ago: Some kind of previous/next navigation links below the full-sized images when using the pagepop function. I don’t know how big the effort would be to write that – but this function would just make my day. :)

Maybe anyone created this addition on his own?

Offline

#294 2006-02-24 18:30:56

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

<blockquote> > dominik.osterholt wrote:

> Hi everybody,

First of all – wilshire, great plugin. Thanks for your work.

I’m still missing the function a user named skycaptain requested several months ago: Some kind of previous/next navigation links below the full-sized images when using the pagepop function. </blockquote>

Yes, I would appreciate this addon very greatly too!!!

Offline

#295 2006-02-28 09:43:34

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

More with popups….

Is there any way I can achieve some styling with popup caption? So when adding/editing image I could add caption with more styled output

<code> <h3>Image name</h3>
description<br />
details<br /> </code>

I can do that allready but thing is that it shows all the styling tags when hovering image in the table view and it does not validate.

Offline

#296 2006-03-10 15:04:27

p_see
Member
Registered: 2006-02-24
Posts: 17

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

pagination with messy url
The pagination works when tape directly in the url bar, for example:
http://127.0.0.1/textpattern/?s=gallery&c=splash&tpg=2
But the link url whitch is parsed is
http://127.0.0.1/textpattern/?tpg=2
so I’ve tried (please don’t laugh) to put some <code>’.permlinkurl($thisarticle).’</code> code before <code>‘tpg=’</code>:

<code>$output[] = ($next) ? ‘<li class=“right”><a href=”’.permlinkurl($thisarticle).’&amp;tpg=’.($thumbpage+1).’”>’.$nextlabel.’</a></li>’.n : ‘’;</code>
Don’t work. What is the correct syntax to use for call the messy url? How to get the current url?

thank’s

Last edited by p_see (2006-03-10 16:29:41)

Offline

#297 2006-03-11 18:54:01

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

The rss_thumbpop plug-in turned out to be the ideal solution to display image galleries with the option to display a full-size image on click.

However soon problems surfaced related to the way different browsers handle window focus. If a visitor double-clicked a thumbnail the first click would load the image in the pop-up window, but the second click sent the window to the back so they weren’t able to see the image at all. Any subsequent clicks on a thumbnail would then only load another image in the window that was hidden behind the main window, but not bring it to the front again.

The solution was simple: I edited the part of the plug-in that writes out the code for the pop-up window, specifically I changed the < body> tag to this:

<pre>< body onLoad=“self.focus();” onBlur=“self.close();”></pre>

This will make sure that the window is brought to the front once the image has finished loading and that the window is closed once the visitor clicks on the main window again. The latter avoids images being cropped when you have both, landscape- and portrait-, images in your gallery.

To find the < body> tag that needs editing just scroll to the very bottom of the code while in editing mode.

Cheers Martin

Last edited by masa (2006-03-16 21:46:11)

Offline

#298 2006-03-13 10:40:10

-P-
Member
From: Finland
Registered: 2005-09-10
Posts: 211

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

Thanks Masa, exellent, very helpfull fix!!

Does anybody know a solution to what I posted earlier about ability to style popup caption with out showing tags when hovering and losing valid xhtml?

edit: made an temporary solution by removing all the alt & title tags from the plugin itself. Off course that is not very good option but atleast I can style captions more that way.

Last edited by -P- (2006-03-13 19:18:19)

Offline

Board footer

Powered by FluxBB