Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2005-06-09 14:38:34
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
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
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
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
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
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
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
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
#145 2005-07-01 02:26:01
- sjames1010
- New Member
- Registered: 2005-07-01
- Posts: 2
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
url for download seems to be giving me a blank page?
EDIT: Sorry—-firefox was giving me problems for some reason
Last edited by sjames1010 (2005-07-01 17:52:32)
Offline
#146 2005-07-01 17:48:11
- sjames1010
- New Member
- Registered: 2005-07-01
- Posts: 2
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
I love this plugin!
I’m trying to use the “usearticle” and “catfield” attributes to display all images from the category with the same name as the title of the article:
usearticle=“1” catfield=“title”
but I’m getting back a php error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in /textpattern/lib/txplib_db.php on line 191
What’s going on here?
Last edited by sjames1010 (2005-07-01 17:48:40)
Offline
#147 2005-07-08 00:53:22
- minusf
- Member

- Registered: 2005-02-15
- Posts: 104
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
first of all, this plugin is great. thanks for the effort.
some issues i have but:
-on the strictest php logging level there are some undefined variables… (i, artcat, divimg)
-some warnings appeared in html validation. (unescaped &, empty span, replacing p by br)
do you want patches or do you manage? ;-) again, thanks for the great plugin.
we is experts™
Offline
#148 2005-07-08 03:51:25
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
In version 0.5.3, I made it a little bit more efficient by using safe_count() instead of count(safe_rows(“*”…))
here…
<code>
// DO PAGING
$where = $categories.$artcat.$obfield.’ LIMIT ‘.$offset.’,99999’;
// $results = safe_rows(‘*’, ‘txp_image’, $where);
// $numthum = count($results);
// 2005-07-07 mmanfre – more efficient
$numthum = safe_count(‘txp_image’, $where);
</code>
and here…
<code>
//NO PAGING
$where = $categories.$artcat.$obfield.’ LIMIT ‘.$offset.’,’.$limit;
// $results = safe_rows(‘*’, ‘txp_image’, $where);
// $numthum = count($results);
// 2005-07-07 mmanfre – more efficient
$numthum = safe_count(‘txp_image’, $where);
</code>
Offline
#149 2005-07-09 14:38:37
- athenas
- New Member
- Registered: 2005-07-09
- Posts: 2
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
hey, ive used previous versions of your plugin and i really like it, youve done an extremely good job. just recently ive been trying to get it to use on a new website ive made but i cant seem to download it from your website. ive no idea why but ive asked other people to try download it for me but they cant get it either. just thought id let you know. so you could prehaps fix whatevers up with it.
sean
Offline
#150 2005-07-09 14:43:07
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
i don’t have any problems downloading it. try this link: rss_thumbpop v0.5.3
Offline