Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2005-05-31 16:25:03

alexwest
Member
From: Järna, Sweden
Registered: 2004-08-04
Posts: 53

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

i’ve spotted my mistake. thx


be safe and happy

Offline

#134 2005-06-08 19:11:16

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

Hey Rob,

I have a quick question/problem. I have used this many times in an article without any issues, but for some reason I am using it on a new site and the title/permalink anchors are being strippped from the page?

using

<code><h1 class=“perm”><txp:permlink><txp:title /></txp:permlink></h1></code>

In the article form and the title is gone for the article as well as the article version of rdt_dynamenu.

It’s outputting:

<code><h1 class=“perm”></h1></code> (empty)

for the article’s title

and

<code> <ul class=‘topmenu’><li class=active></li></code> (empty)

for my menu.

Wodering if there’s a way around this or if i need to axe the permalink in the title. (Tried that to no effect.)

Wodering if I have a plugin conflict of some sort. Anyone else have this happen?

Thanks!

Last edited by soulship (2005-06-08 21:06:50)

Offline

#135 2005-06-09 12:32:55

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Jamie – I noticed the same sort of thing recently on a page that didn’t use this plugin. I had an h1 tag displaying my article title and the h1 tags had nothing in between. I never spent time figuring out what was wrong, just worked around it. Maybe this is more of a general problem.

Offline

#136 2005-06-09 14:38:34

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

Ok thanks Rob, If I figure out anything I’ll report back.

Offline

#137 2005-06-09 17:54:59

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

Well it’s the damnedest thing. As I started adding more articles with galleries in them the permalinks appeared on everything but the first one I created. I added all of them that I needed, then re-added the first one under a new title, deleted the original version and everything is normal. So I guess it’s just one of those things.

Offline

#138 2005-06-09 19:02:58

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

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

using the the jpop attribute, is it possible to display the caption under the large photo as well?

Offline

#139 2005-06-14 06:46:56

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

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

Hi,

I plugged this in and got PHP notices on my page saying:
Notice: Undefined variable: artcat in /wwwusr/robert/pub/textpattern/lib/txplib_misc.php(352) : eval()'d code on line 95
Notice: Undefined variable: divimg in /wwwusr/robert/pub/textpattern/lib/txplib_misc.php(352) : eval()'d code on line 139
Notice: Undefined variable: i in /wwwusr/robert/pub/textpattern/lib/txplib_misc.php(352) : eval()'d code on line 184
when the plugin is loaded from TxPs load_plugins function.

The offending statements in rss_thumbpop.php appear to be the ones listed below:

line 22:
$limit= isset($limit) ? $limit: "99999";

line 24:
$showpagelinks= isset($showpagelinks) ? $showpagelinks: "1";

line 39:
$usearticle = isset($usearticle) ? $usearticle: "0";

line 43 ($usearticle being false per default, thus $artcat is not initialized per default):
if ($usearticle) {
...
$artcat = " AND (category = '" . doSlash($a[$catfield]) . "') ";

line 94 ($limit && $showpagelinks being true per default):
if ($limit && $showpagelinks) {
...
$where = $categories.$artcat.$obfield.' LIMIT '.$offset.',99999';

line 138:
$divimg = (gps("img") && ($id == gps("img")) && $divpop) ? '<div class="rssFull"><img src="' . $full . '" alt="'.$alt.'" /></div>'.n : $divimg;

I have added these three lines on the very beginning of rss_thumbpop to avoid these notices and define all variables before use. Might be considered good programming practice anyway…

// wet's patch
$i = 0;
$artcat = '';
$divimg = '';

Being no PHP programmer at all, I hope not to have introduced any quirkses…

// robert

Offline

#140 2005-06-21 00:10:26

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

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

Wilshire — this is the plugin I have been waiting for! This is absolutely wonderful. Thank You!

I echo gdtroiano’s request – when using the JPOP option, is it possible to have the caption for each image display in the “fullsize” div just below the fullsize image, instead of (or in addition to) below the thumbnails?

Cheers,
Terry

Last edited by vibe9 (2005-06-21 19:12:41)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#141 2005-06-23 22:34:07

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

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

gdtroiano & vibe9: set the plugin with the following options –

showcaption=“0” pagepop=“1”

This will give you a thumbnail gallery minus captions, and the captions will display in the popup. If you want captions with the thumbnails also, then set showcaption=“1”

Wilshire: I do have some problems with the output of these settings, however, and wonder if you might make some adjustments in the next version. My requests:

1) Remove styling from the popup. Instead, assign a DIV with a CLASS or ID and all the user to specify style via the stylesheet.

2) Add an ID or CLASS attribute to the caption so that the text can be styled for appearance and/or aligned to left, right or center by the user.

3) When the popup appears, it is sized for the image. I can’t actually see the caption unless I manually pull the popup window to enlarge it. Is there a way to make it automatically adjust to show the contents of the page? I know that the ‘padheight’ option can be used to make extra space, but would an ‘autoheight’ option be possible?

Thanks!
theturninggate

Last edited by theturninggate (2005-06-23 22:50:53)

Offline

#142 2005-06-23 23:54:24

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

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

Thanks the turninggate. BTW – beautiful site!

Unfortunately that’s not what I am looking for. What I need is the caption to display not below the thumbnail but below the actual image when using the jpop option. Meaning that instead of switch the image, the script would need to switch a div which would contain the image and the caption. Hope that makes sense?!?

Cheers,
Terry

Last edited by vibe9 (2005-06-23 23:55:27)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#143 2005-06-24 02:53:24

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

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

Thanks for the compliment, vibe9.

And yes, that makes sense. At the moment, the only way I’ve found to do it is using the ‘pagepop’ option.

Offline

#144 2005-06-26 23:25:26

rbl
Member
From: Portugal
Registered: 2004-02-25
Posts: 40

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

Anyway to make this “recursive”? I mean, I have several categories inside another category so instead of calling category=“article-10,article-11,article-12,article-20,article-33,article-34,article-35,article-5,article-36,article-86,etc” I would just call category=“articlesimages”

Last edited by rbl (2005-06-26 23:26:08)

Offline

Board footer

Powered by FluxBB