Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] bas_img_selector
> mary wrote:
> Yes. Again, look at what I get for the image too:
The image “http://sekhu.net/txpattern/images/7.jpg
Last edited by sekhu (2005-05-19 20:47:18)
Offline
Re: [plugin] [ORPHAN] bas_img_selector
Why does this plugin get turned off if I disable textile? Is that by design? Or do i need to hack on this to get it to show with textile off?
Offline
Re: [plugin] [ORPHAN] bas_img_selector
I have the impression from what people have said this plug in can display thumbnails.
Is that right?
I changed some of the options in the code but it didnt have any effect so I’m leaving it alone in case I break anything.
But check this out:
if (@txpinterface == ‘admin’)
register_callback(“bas_img_select”, “article”);
function bas_img_select($event, $step) {
$prefs = get_prefs();
//You can editing the following lines to make sure, that the plug fits to your needs.
//See the Help for more informations
$bas_prefs0[‘option’]= ‘orginal’;
$bas_prefs0[‘value’] = ‘true’; # false|true
$bas_prefs1[‘option’]= ‘thumbs’;
$bas_prefs1[‘value’] = ‘true’; # false|true
$bas_prefs2[‘option’]= ‘sortable’;
$bas_prefs2[‘value’] = ‘true’; # false|true
$bas_prefs3[‘option’]= ‘format’;
$bas_prefs3[‘value’] = ‘user’; # user|xhtml|txp|textile
$bas_prefs4[‘option’]= ‘insert_in’;
$bas_prefs4[‘value’] = ‘user’; # user|Body|Excerpt|Image
$bas_prefs5[‘option’]= ‘zem_article_image’;
$bas_prefs5[‘value’] = ‘false’; # false|true
$bas_prefs6[‘option’] = “img_dir”;
$bas_prefs6[‘value’] = $prefs[“path_from_root”].$prefs[“img_dir”].”/”; # override this, if img_dir is not bee found
$bas_prefs7[‘option’]= ‘expanded’;
$bas_prefs7[‘value’] = ‘true’; # false|true
$bas_prefs8[‘option’]= ‘Thumb prefix’;
$bas_prefs8[‘value’] = ‘Thumb: ‘; # What you want
- is there anything there that can ‘turn on’ thumb display?
I also want to hack it so it enters txp tages by default, not give me the txp/xhtml/textile options. How do I do that?
Offline
Re: [plugin] [ORPHAN] bas_img_selector
bas_img_selector 0.4
The .zip contains two files:
- bas_img_selector.txt with the plugin code
- bas_img_sel_lib.php Place that into textpattern/lib
I’m sorry, that it takes so long, but I hope I get the (most) bugs.
This version works with XMLHttpRequest, so your browser must support that.
I tested it with Firefox 1.0, Opera 8.0 and IE 6.0 SP2 all on WinXP.
bugfixes
Thumbnail support don’t work properPlugin don’t start width Textile off or with lang != en- All
(many) other bugs
Offline
Re: [plugin] [ORPHAN] bas_img_selector
How is this improved/better than the previous version?
Offline
Re: [plugin] [ORPHAN] bas_img_selector
@jameslomax:
I hope that this is an improved version:)
I don’t use “Textile Help” as pattern to insert the plugin, so problems width textile on or with language should be solved.
I use XMLHTTP Request to get the dropdownlist instead of writing all images into an JS array. So only the needed data is transfered and probs my custom fields etc. should be solved.
The thumbnail support should work proper.
I tested it with rc3 installed in root/textpattern and root/somewhere/deeper/textpattern and it works (was an problem in 0.3)
So yes, if your browser supports XMLHTTP Request, this is an improved version.
Offline
Offline
Re: [plugin] [ORPHAN] bas_img_selector
OK before I go ahead and test this out……
Is there any concern about damaging the work I’ve done using V.03?
Or will this just overwrite it, using xmlhttp etc etc, and I can continue with my site in the same way, using the new version?
Also: are image thumbs working by default, or do you have to modify the code to get them working?
Offline
Re: [plugin] [ORPHAN] bas_img_selector
It simply overwrote the old version for me. I have’nt noticed a probem. You could always just uninstall youor old version 1st if youre fearful that there may be a problem though. Full images are shown as they are selected and thumbs sit nicely in the container under the select dropdown.
Last edited by soulship (2005-06-02 17:56:57)
Offline
Re: [plugin] [ORPHAN] bas_img_selector
OK tried over-writing…..no joy.
Tried removing 0.3 and installing 0.4….no joy.
For some strange reason txp tells me its .03, despite the above, and theres no thumb display.
?
Offline
Re: [plugin] [ORPHAN] bas_img_selector
@jameslomax wrote:
Is there any concern about damaging the work I’ve done using V.03?
No, I think not. The plugin doen’t write anything to db, it inserts per JS into ImageFiled/Body/Excerpt.
Tried removing 0.3 and installing 0.4….no joy.
For some strange reason txp tells me its .03
I don’t know, why this could happen.
You installed the plugin wich is in the .zip and txp less you 0.3 ?
I tried to make sure, that I don’t forget to update the versions number: Downloaded the .zip, unpacked, uploaded the plugin and it telled me:
Cache cleared?
despite the above, and theres no thumb display.
Thumbs support is on default! Whenever thumbnail=1 in txp_image the plugin display radiobuttons to select thumbnail instead of the orginal image.
Offline
Re: [plugin] [ORPHAN] bas_img_selector
My mistake.
Its working now…..this is great!
Offline