Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2005-09-29 04:48:53

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: [plugin] [ORPHAN] bas_img_selector

I got an older version (0.3) of this plugin from <a href=“http://forum.textpattern.com/viewtopic.php?pid=48710#p48710”>this post</a>. Its working but its giving me errors in the backend. Anyways here it is…

Copy the plugin out of this textarea:

<textarea>YTo5OntzOjc6InZlcnNpb24iO3M6MzoiMC4zIjtzOjY6ImF1dGhvciI7czoxODoiQmFzdGlhbiBTYWNrZXJtYW5uIjtzOjEwOiJhdXRob3JfdXJpIjtzOjIwOiJodHRwOi8vc2FtaXNkYXQub3JnLyI7czoxMToiZGVzY3JpcHRpb24iO3M6MTEwOiJHZW5lcmF0ZXMgYSBkcm9wZG93biBsaXN0IG9mIGFsbCBpbWFnZXMuIFNlbGVjdGVkIGltYWdlcyBjYW4gYmUgaW5zZXJ0ZWQgaW50byBhcnRpY2xlLCBleGNlcnB0IG9yIGltYWdlIGZpZWxkLiI7czo0OiJ0eXBlIjtpOjE7czo0OiJuYW1lIjtzOjE2OiJiYXNfaW1nX3NlbGVjdG9yIjtzOjQ6ImhlbHAiO3M6MTg1ODoiCgk8aDE+SW1hZ2UgU2VsZWN0b3IgSGVscDwvaDE+CgoJPHA+QnkgZGVmYXVsdCB0aGUgcGx1Z2luIHNob3VsZCBnaXZlcyB5b3U6PC9wPgoKCTx1bD4KCTxsaT5BIGRyb3Bkb3dubGlzdCB3aXRoIHNvcnQgY3JpdGVyaWFzLjwvbGk+CgkJPGxpPkEgZHJvcGRvd25saXN0IHdpdGggdGhlIGltYWdlcy48L2xpPgoJCTxsaT5SYWRpb2J1dHRvbnMgdG8gc2VsZWN0IGEgZm9ybWF0IHRoZSBpbWFnZSBpcyBpbnNlcnRlZCB3aXRoLjwvbGk+CgkJPGxpPlJhZGlvYnV0dG9ucyB0byBzZWxlY3Qgd2hlcmUgdGhlIGltYWdlIGlzIGluc2VydGV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VudC5mb3Jtc1siYXJ0aWNsZSJdLmVsZW1lbnRzWyJJbWFnZSJdLnZhbHVlID0gYmFzX3NlbGVjdGVkX2ltZzsKfQoKLS0+Cjwvc2NyaXB0PgonOwp9CgoKIjtzOjM6Im1kNSI7czozMjoiOWQxMGU3YWY1Mzk4MTZjZTIwZjliZjc0YjJhMTNhNDUiO30=</textarea>


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#86 2005-10-08 18:13:48

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: [plugin] [ORPHAN] bas_img_selector

I’ve installed v0.3 but it’s giving me the following notices:

Notice: Undefined variable: js_array in /home/Sites/Customers/www.xpressit.nl/web/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 123

Notice: Undefined variable: js_array in /home/Sites/Customers/www.xpressit.nl/web/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 111

Is someone willing/able to post v0.4 or tell me how I can correct this?

thanks in advance.

Offline

#87 2005-10-13 18:58:16

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

Re: [plugin] [ORPHAN] bas_img_selector

Here is the bas_img_selector v0.5

Tested with txp 4.0.1 and using IE 6 and Firefox.

Please let me know, if you find erros, bugs or something like this.

Bastian

Last edited by Bastian (2005-10-13 19:44:23)

Offline

#88 2005-10-14 02:30:05

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

Re: [plugin] [ORPHAN] bas_img_selector

Thanks so much for the update bastian! Much appreciated. I’ll let you know if any problems arise.

Jamie

Offline

#89 2005-10-16 08:35:57

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: [plugin] [ORPHAN] bas_img_selector

Bastian,
It works excellent, I think it’s a perfect plugin. thanks a lot!!!

Sorry, the actual adding of the pictures doesnt’t work… Nothing happens when I click ‘add’

Maarten

Last edited by maarten (2005-10-16 19:28:53)

Offline

#90 2005-10-16 16:15:02

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] bas_img_selector

Don’t see a thing (R 1036). Also, mine still reports version .1.
Anybody?

Offline

#91 2005-10-17 10:00:18

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

Re: [plugin] [ORPHAN] bas_img_selector

Mine says 0.1 too, but I know its the new version because the previous one totally broke the admin page. Now it doesn’t.

Thanks for the update! – love this plugin.
One question though: how can I get “More” to open by default? (the ‘add’ and ‘tag’ options)?

Offline

#92 2005-10-19 08:25:18

thomasstache
Member
From: Dresden, Germany
Registered: 2005-01-18
Posts: 14
Website

Re: [plugin] [ORPHAN] bas_img_selector

maarten wrote:
Sorry, the actual adding of the pictures doesnt’t work… Nothing happens when I click ‘add’

Dunno if you figured it out already, but by default the plugin adds the image as the “article image” hidden in the “Extended Settings” on the Write tab. You are free to select between the insert locations “Article image”, “Body” and “Excerpt” by expanding image_selector’s “More” section.


Thomas Stache

Offline

#93 2005-10-19 18:40:05

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

Re: [plugin] [ORPHAN] bas_img_selector

Maarten send me the error report per email.

It seems to be an IE special. In Firefox it works, but i get the very same error as maarten in IE.
Something with the radio buttons ( javascript checking which one is selected), it seems.

I’m working on that, but for students in germany the studies go on in middle october and i have to visit my university :)

edit: YES, the version’s info says 0.1, but it is not 0.1. It is developers fool. I’m a kind of numeric illiterate.

Last edited by Bastian (2005-10-19 19:01:28)

Offline

#94 2005-10-19 19:36:10

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

Re: [plugin] [ORPHAN] bas_img_selector

One question though: how can I get “More” to open by default? (the ‘add’ and ‘tag’ options)?

Offline

#95 2005-10-19 19:54:13

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

Re: [plugin] [ORPHAN] bas_img_selector

@jameslomax:

I sent you the file per email. Hope it works, if it doesn’t: I have my email-address

@all

What customising of the image selector do you expect?
Don’t mention that you want that damm thing work. Instead write my it don’t.

Really, i write the plugin for a single man, who is not able to insert images, because he don’t know about html.
So what options should be covered by new versions?

I played a little with includeing a slideshow maker. My girlfriends camera, for example, can shot a serie of 16 images, which can be played as a little film with some javascript. Interested?

I use albumpattern and local i have included ap-images to image selector. Interested?

Doing things for myself is pretty easy, because i know my root and system varis, i know what i want.
I don’t implement things, if i don’t know what.
So tell me and i try!

Last edited by Bastian (2005-10-19 20:00:39)

Offline

#96 2005-10-24 17:04:19

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] bas_img_selector

Hi Bastian.

Thanks for the plugin. I have used it successfully in the past and I prefer it to img_popper. But at present it doesn’t show up. I’m using very recent builds and hardly any other plugins. Any ideas?

-Dale

Offline

Board footer

Powered by FluxBB