Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2005-05-19 20:46:38

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

#62 2005-05-19 22:43:26

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#63 2005-05-28 21:28:59

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#64 2005-06-02 13:44:12

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_img_selector

bas_img_selector 0.4

Download it

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 proper
  • Plugin don’t start width Textile off or with lang != en
  • All (many) other bugs

Offline

#65 2005-06-02 15:40:24

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] bas_img_selector

How is this improved/better than the previous version?

Offline

#66 2005-06-02 15:57:14

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

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

#67 2005-06-02 16:01:26

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] bas_img_selector

Great WORK Bastian! Category selector is FABULOUS! I really think you did a great job here. I like the way the mouse over brings up the full image. This is working very nicely. We now have two very nice choices for image insertion.

Thanks for the update.

Offline

#68 2005-06-02 17:10:17

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#69 2005-06-02 17:56:00

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#70 2005-06-02 18:26:45

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#71 2005-06-02 19:34:59

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

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:

To me txp tells 0.4

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

#72 2005-06-02 20:50:51

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] bas_img_selector

My mistake.

Its working now…..this is great!

Offline

Board footer

Powered by FluxBB