Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2009-05-15 17:28:58
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
How/Where do you set this option in TXP.
In the edit image screen.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#110 2009-05-15 17:47:52
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
Colak:
That creates a thumbnail is for an individual image when loading thru the image tab, but my understanding of the plug in is that by turning on this option “globally” that when I aload an image thru the write screen it will automatically create the thumbnail.
Am I missing something?
Bloke gave me the answer. If you create it once on the image tab then it will save your settings
progre55
Last edited by progre55 (2009-05-20 12:25:24)
Offline
#111 2009-05-20 12:27:44
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
Has anyone had the need to remove the Alternate Text Field? This is not an option in the preferences …
progre55
Offline
#112 2009-05-20 12:56:30
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
progre55,
I’ll answer you tonight (I don’t have time now) in the other thread
Offline
#113 2009-06-01 18:38:21
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
i’m trying to download this plugin but the url given; http://www.stevelam.ca/index.php?s=file_download&id=18 shows nothing?
Offline
#114 2009-06-01 21:48:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
Doesn’t look like it wil be back ;)
Offline
#115 2009-06-01 22:01:41
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
Here is my copy all in one line
YTo5OntzOjQ6Im5hbWUiO3M6MTg6ImxhbV9pbWFnZV91cGxvYWRlciI7czo2OiJhdXRob3IiO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gVGh1bWJuYWlsPycsDQoJCSdpbWFnZV9jYXRlZ29yaWVzJwkJCQkJPT4gJ0FsbG93IGltYWdlIGNhdGVnb3J5IGFzc2lnbm1lbnQgb24gdXBsb2FkPycsDQoJCSdtb3ZlX3NpZGViYXInCQkJCQkJPT4gJ01vdmUgdG8gbGVmdCBzaWRlYmFyPycsDQoJCSdpbnN0YWxsJwkJCQkJCT0+ICdsYW1faW1hZ2VfdXBsb2FkZXIgSW5zdGFsbC9SZW1vdmUnLA0KCSk7DQoJcmV0dXJuIHN0cnRyKCRsYW5nWyR3aGF0XSwgJGF0dHMpOw0KfSI7czo0OiJ0eXBlIjtzOjE6IjEiO3M6MzoibWQ1IjtzOjMyOiJhMTgwNWY1YjI2MDU4OWVhNjhkZTJlZDIwOTEwYTI3ZSI7fQ==
Offline
#116 2009-06-01 22:29:06
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
hey hey. sorry for the dead link i just moved my domain over to another spot.
http://iblastoff.ca/file_download/18/lam_image_uploader.txt
giving wordpress a shot with just a personal blog for now :)
will update the original post with new link. seems like someone added improvements to this plugin somewhere in this thread though. if thats the case you might as well use that one as i’m currently not working with txp anymore on any real level.
Last edited by iblastoff (2009-06-01 22:29:45)
Offline
#117 2009-06-04 20:37:49
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
Is it just me or why the does the ‘insert image’ tab in the sidebar of the Write tab doesn’t work? It’s only when I hit the Publish button to publish the article and then hit the ‘insert image’ tab again that it works. Has that been the case for anyone else? I’ve tried this on other browsers (chrome, windows safari, and IE7) and same issue.
EDIT; Oops sorry. i’m confusing my plugins. I’m thinking of jmd_img selector instead. reposted to appropriate thread.
Last edited by dreamer (2009-06-04 21:22:44)
Offline
#118 2009-11-09 18:19:54
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
When I upload multiple images with this plugin (using Txp 4.2), only the most recently uploaded one stays in the article image field, the other previous ones are lost and I have to use an insert image plugin to add them back or type in the ID’s manually. Is this the expected behavior or is it supposed to append subsequent images and keep them all adding up?
EDIT: found my answer in this thread
milkshake wrote:
husainhk wrote:
I am not sure what could be the reason, but when I upload one image after the other, it doesn’t append the image ID in the Article Image field, instead it replaces the old ID with the new one! I am using TXP v.4.0.6
Edit the plugin code at line 185 to read:
echo "insertid($img_result[1], 'append');</script>";
It’s a hack, but it works for now :)
Last edited by aswihart (2009-11-09 18:21:17)
Offline
#119 2009-11-09 20:15:34
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
just curious did you set the preferences already? or does it act that way regardless? i haven’t used this plugin in a while and don’t have it installed anywhere to quickly test.
Offline
#120 2010-01-26 16:38:34
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: lam_image_uploader v0.6c (improved upload images from the write tab)
How can I remove the Alternate text field?
confuses my clients (people that dont care about validation and things like that :)
Offline