Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#517 2006-02-16 22:45:39
Re: upm_img_popper
more questions unfortunately:
okay, so i make a folder called pluginsss and put it into my textpattern directory (../textpattern/pluginsss/)
so in my admin > advanced preferences i put ‘/pluginsss’ as the value for the plugin directory.
i then uploaded the upm_img_popper.php into that directory. also put that directory as CHMOD 777
Is there anything else I need to do? Do I need to put the full path into the plugin directory field in the admin directory?
Thanks in advance
Offline
#518 2006-02-16 23:12:53
Re: upm_img_popper
I think the path is filesystem path not the webserver path. At least that’s how I have always done it. I normally just take the path that’s in the file upload path setting and adjust it accordingly (normally just replacing files with textpattern/plugins or whatever your directory is)
Shoving is the answer – pusher robot
Offline
#519 2006-02-17 01:23:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
That’s correct, it needs to be a full filesystem path, like the path for files.
Offline
#520 2006-02-17 01:23:48
Re: upm_img_popper
so after i set this up, the plugin should just automatically appear in the plugins section? I think I’ve done everything right for this to work. What’s up?
Offline
#521 2006-02-17 01:37:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
It won’t appear, that’s the limitation of this method. You’ll know it’s working if you go to your write tab, and there’s a new link there on the left-hand side.
Offline
#522 2006-02-17 01:39:07
Re: upm_img_popper
WOOO!! yesssssssssssssssssssssssssssssssssssssss thanks so much you guys :} thanks alot mary for your hard work and you too hak. everyone else who took time out to hook me up. thanks again!
Offline
#523 2006-02-21 05:47:07
- dododi
- Member
- Registered: 2006-01-14
- Posts: 17
Re: upm_img_popper
Is it possible to automatically set a class for the thumbnail as is done with the main image.
Even if I can add it to the plug-in code itself, this would save a huge amount of time. Does anyone have any tips?
Currently when I insert an image into the main article the class “floatright” is added. What would be great is if I can add a different class for the excerpt thumbnail as well. This would save my clients from having to add the class themselves i.e.
[txp:upm_image type=“thumb” image_id=“8” class=“floatright2” /]blah blah blah
Thanks
Last edited by dododi (2006-02-21 05:47:54)
Offline
#524 2006-02-21 13:23:45
Re: upm_img_popper
You could always wrap your excerpt in a classed element and style the floatright class accordingly. That way you can use the same class.
Something like
<pre>
.floatright {
float:right;
}
.excerpt .floatright {
float:left;
}
</pre>
Last edited by hakjoon (2006-02-21 13:24:09)
Shoving is the answer – pusher robot
Offline
#525 2006-02-22 07:09:12
- dododi
- Member
- Registered: 2006-01-14
- Posts: 17
Re: upm_img_popper
Thanks hakjoon.
I hate it when the solution is staring me in the face. As always the simplest solution is always the best.
Why hard code it when you can use CSS.
Thanks again.
Offline
#526 2006-03-01 02:25:56
Re: upm_img_popper
I’m a bit late updating to 4.0.3. I just did it, then updated the upm_img_popper plugin. The plugin goes in fine, but when I try to use it from the “write” screen, the window pops up with this error:
Warning: Division by zero in /home/httpd/vhosts/angie-hart.com/httpdocs/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 1042
Any ideas on how I can get this working again?
Thanks,
Matt
Offline
#527 2006-03-01 04:22:55
Re: upm_img_popper
That’s weird that it’s happening with the latest version. That supposedly got fixed back in version 0.8.3
Let’s see if the old fix still works. Go to Images and select a number in the view per page number . I think that sets the number in preferences, which hopefully will make it go away.
Shoving is the answer – pusher robot
Offline
#528 2006-03-01 11:42:28
Re: upm_img_popper
aye, that worked. thanks, mate. :)
Offline