Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#436 2008-03-18 14:03:05
Re: smd_slimbox
progre55 wrote:
No dice. I looked at the file, saw the Keyword => Keyword entry, but changing it had no effect ….
Strange, it should do. If you update the text on the right, save, upload the file to your server and then in Admin->Prefs->Languages hit Update under that language it should modify the database from the file. Unless I’ve misunderstood the process. Must admit I’ve not tried it myself.
EDIT: *shrug* maybe that’s what the “install from file” link is for at the bottom? Never used that either. Maybe someone’s posted about it on the forum or it’s in an (un)FAQ list somewhere?
Last edited by Bloke (2008-03-18 14:07:03)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#437 2008-03-18 14:11:04
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: smd_slimbox
Will take a look. Again, thanks for the help.
Offline
#438 2008-03-18 14:19:48
Re: smd_slimbox
All textstrings that can be localized are gathered from the RPC server where maintainers of the localizations can update them if needed. Your txp install loads the lang file from the server at the first install or at subsequent updates and also shows you when there is an language update. You can install the language strings from a textfile though. If you only want to change one string you might do that by changing it in the txp:lang table of your own install but it will be overwritten each time when you do a (language) update.
kees
Last edited by kees-b (2008-03-18 14:21:34)
Offline
#439 2008-03-18 14:30:42
Re: smd_slimbox
kees
Thanks for the clarification on that. Always wondered how it knew an update was available…
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#440 2008-03-19 15:21:39
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: smd_slimbox
Bloke:
I directly modified the “keywords” record in the “txp_lang” table in the db.
Just wanted to let you know.
progre55
Offline
#441 2008-03-27 17:18:21
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: smd_slimbox
I am using imageid=”?article_image” to display article images using slimbox. However I was wondering if there is any way to override the thumbnail I have uploaded via the textpattern interface and use the actual article image I want to display in the slimbox as the thumbnail as well. Instead of using the normal thumbnail I uploaded, I want to take the fullsize image and scale it down using css (because I am an idiot) and use it as a thumbnail. Does anyone have any suggestions for switching out the article thumbnail for the actual article image?
Last edited by fangonk (2008-03-27 17:29:02)
Offline
#442 2008-03-28 18:54:24
Re: smd_slimbox
fangonk wrote:
I was wondering if there is any way to override the thumbnail I have uploaded via the textpattern interface and use the actual article image I want to display in the slimbox as the thumbnail as well.
Not right now, though you can simulate it by resizing the thumbnail to the desired full size (glx_admin_image plugin? lam_dynamic_image?) and using thumb="1" as an attribute to slimbox. Might be too much work though.
Alternatively I could add an option or (if I can figure out the best logic and not make it too confusing) enhance the thumb attribute such that you can decide whether you display the thumbnail and/or the full size image as either the thumb or the full size pic! Let me know if this sounds useful.
I want to take the fullsize image and scale it down using css (because I am an idiot) and use it as a thumbnail.
I assume you don’t mind the resulting degradation in quality… or is that the idea? If you are doing it for image obfuscation or copyright reasons you may be interested in smd_watermark which I’m going to start work on Any Day Soon TM… I hope.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#443 2008-03-30 03:17:23
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: smd_slimbox
Yeah yeah, I know image quality sucks with CSS resize. I was just being lazy. I solved my problem by using the hak article image plugin to assign extra images to each article. That way I can display different images in different places.
Offline
#444 2008-04-01 13:27:00
Re: smd_slimbox
I know it’s been a long time, but I finally got round to revamping smd_slimbox to v0.3.
It’s not quite the all-singing, all-dancing mod I had hoped (see smd_gallery for that) but it’s significant in that I back-ported some of the cooler functionality from smd_gallery while retaining as much slimbox-ability as possible.
Some stuff has inevitably changed which means you may have to revisit your tags after upgrading, but I’ve tried to keep annoyances to the minimum. They key changes are subcats and thumb; the other changes will either issue warnings or are converted internally for now.
The new features:
- Supports glz_custom_fields for even greater flexibility (currently requires a small mod to publish.php but it’s worth it). Many thanks to gerhard for graciously helping me out with his plugin; it is amazing and I’m building that shrine I promised ;-)
- After overwhelming support from the poll,
smd_slimbox_inchas been banished. If you use it, a warning will be issued. Thanks to all who took part - Removal of smd_slimbox_inc and
libcheckhas enabled support for Slimbox, Lightbox, Litebox, Moonbox, Thickbox and perhaps some more besides. Just include your favourite library on the page, check their instructions, give slimbox the necessary details and you’re away catlabelhas been removed. With more?and!article field codes now available, and the ability to combine them (e.g.?s-?c) you can now perform the same function ascatlabelby usingcategory="article-?id"subcatsimproved. Now takes an integer “level” that specifies how far down the tree to go. For the same behaviour as before, usesubcats="all"- showalt/showcaption/altclass/captionclass/textpos have been removed. Use
thumbtext,thumbtextwrapandthumbtextclassinstead orderbyis now calledsortin line with other TXP tags, and takes a space-delimited direction modifier instead of the old colon delimiter.orderbyis still supported for now and will automatically be converted to the newsorttag but will issue a warning in production/debug modesthumbhas changed to allow you to specify whether the full-size image and/or the thumbnail are displayed using the ‘t’ image or not. So you can now swap thumbnail and full-size if you wish, or make them show identical images (thanks fangonk)triggeradded. This defaults to “lightbox-” which is what slimbox uses in therelattribute of the anchors. Other libraries may use other words to identify themselves, so this allows you to modify the string to suitdelimadded. If you don’t like using a comma as a delimiter, change it. Setdelim="|"if using checkboxes and multi-selects with glz_custom_fieldsnavwraptagadded so the navigation block can be wrapped in a different tag to the imageslinkclassadded so you can specify a separate class for the image anchors if you wish (thanks marios)
It requires an update to smd_lib v0.32. Note that if you use smd_fuzzy_find you will need to update that as well.
The slimbox plugin help has been revised and (hopefully) shrunk a tad or made clearer. So take it for a spin [ gzipped version ] and let me know how you get on with it.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#445 2008-04-04 10:22:33
- sisushka
- Member

- Registered: 2007-07-30
- Posts: 14
Re: smd_slimbox
Does smd_slimbox work with messy URLs?
Is it possible that messy URLs are the reason why the script does not load? Thumbnails actually do load but when I click any of them, nothing happens. I was trying really hard to figure it out but with no success so far.
I’m using TXP 4.0.5, smd_slimbox 0.26. I have included smd_slimbox_inc.
I’m desperate.
EDTI: I’ve updated and went for smd_slimbox3. It’s solved the problem :)
Last edited by sisushka (2008-04-04 11:22:21)
Offline
#446 2008-04-04 11:33:28
Re: smd_slimbox
sisushka wrote:
I’ve updated and went for smd_slimbox3. It’s solved the problem :)
Phew! Thank goodness, because I couldn’t solve your original problem ;-) I thought it worked with messy URLs, but I must admit I’ve never tried it. Mind you, v0.26 had a few issues so it may just have been that. Glad you got it sorted with the latest version.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#447 2008-04-04 13:07:56
- sisushka
- Member

- Registered: 2007-07-30
- Posts: 14
Re: smd_slimbox
Bloke wrote:
Phew! Thank goodness, because I couldn’t solve your original problem ;-) I thought it worked with messy URLs, but I must admit I’ve never tried it. Mind you, v0.26 had a few issues so it may just have been that. Glad you got it sorted with the latest version.
Thanks for latest version, it is literally puuuuuuuurfect :-) However, there’s one little problem that makes wrinkles on my face – I still haven’t figured out how to add class atribute to thumbnail links. I’m using Thickbox.
I’d be glad for any ideas :-)
Last edited by sisushka (2008-04-04 13:08:25)
Offline
#448 2008-04-04 13:49:27
Re: smd_slimbox
sisushka wrote:
I still haven’t figured out how to add class atribute to thumbnail links. I’m using Thickbox.
Does adding linkclass="thickbox" work?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#449 2008-04-04 13:53:34
- sisushka
- Member

- Registered: 2007-07-30
- Posts: 14
Re: smd_slimbox
Bloke wrote:
Does adding
linkclass="thickbox"work?
Oh yes, it does, I probably didn’t read the documentation properly… Thank you! You’ve just saved a whole bunch of my nerve cells :D
Offline
#450 2008-04-06 20:20:51
Re: smd_slimbox
Hi Stef,
Nothing’s ever simple, is it?
Pending reworking my site to use smd_gallery I’ve just updated smd_slimbox to 0.3 (and smd_lib to 0.32) – and the script has stopped working..!
I use it in a very straightforward way – <txp:smd_slimbox category="blyth-harbour-7-december-2007" /> – and don’t have glz_custom_fields installed (if that matters), so I’m a bit stumped.
Now, instead of the expected result, clicking on a thumbnail simply takes me to the full-sized image. This is true in Opera, FF and IE.
It was working immediately before I updated and I’ve made no other changes. I’ve tried reinstalling, deleting then reinstalling – no joy.
Bummer, as they say!
Last edited by keith (2008-04-06 20:23:10)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline