Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2008-09-18 19:45:38

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: jmd_img_selector: Thickbox-style image selector

jm wrote:

Hey Masa – does your host allow you to add AddHandler application/x-httpd-php5 .php to your .htaccess file?

Thanks for the tip, sadly it doesn’t make any difference :-(

The host runs Zeus instead of Apache.
The weird thing is I can ftp the .htaccess file but it immediately disappears from the window in my ftp client. However it’s recognised by Textpattern’s diagnostics and also shows up in the file manager of their browser-based control panel.

It seems they won’t allow overrides by .htaccess, so the renaming of files as mentioned earlier seems like my only option to get your plugin running.

Offline

#98 2008-09-18 20:01:29

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

Nuts. Do they have any plans of moving to PHP 5 as the main-PHP install anytime soon? Try changing just /textpattern/include/txp_plugin.php to .php5 and edit ~L114 of /textpattern/index.php:

		$inc = txpath . '/include/txp_'.$event.'.php';

to

$inc = txpath . '/include/txp_'.$event.'.php';
if ($event == 'plugin')
{
    $inc = txpath . '/include/txp_plugin.php5';
}

Offline

#99 2008-09-18 20:37:13

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: jmd_img_selector: Thickbox-style image selector

jm wrote:

Nuts. Do they have any plans of moving to PHP 5 as the main-PHP install anytime soon?

Doesn’t sound like it.

Try changing just /textpattern/include/txp_plugin.php to .php5 and edit ~L114 of /textpattern/index.php: …

Tried that, but no change, the same old error pops up.

Nevermind, I’ll have to go with an alternative approach. Thanks anyway as usual :-)

Offline

#100 2008-09-23 01:29:00

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: jmd_img_selector: Thickbox-style image selector

jm,

Just had a client email me about some unexpected behavior with the plugin. They are using the “insert as” feature and choosing “body”. It’s inserting the code in the body, however the image is always inserted at the very end of the article. Which is fine – except when editing existing articles.

Say they have an article with a paragraph of copy – then several images – and then more paragraphs of copy. If you remove the images and attempt to reinsert new ones – they get inserted at the end of the article instead of at the location of your cursor.

Is this the way it’s supposed to work or is there a bug?

Thanks!

Tom

Offline

#101 2008-09-23 01:35:42

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

renobird wrote:

Is this the way it’s supposed to work or is there a bug?

That’s how it’s supposed to work, but it’s not ideal. The good news is I finally have some time to work on it this week.

Offline

#102 2008-09-23 01:48:06

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: jmd_img_selector: Thickbox-style image selector

Thanks jm,

I figured it was…and since I had some available time…I figured I would do some research on it.
(I have no idea how to implement anything like this – just though it would be fun to look into it.)

Anyhow – looks like it has to be done with Javascript instead of PHP? Is that right?
I found this – It may be helpful? It may be useless?
You may already know exactly how to do this and I should shut up?

:)

Last edited by renobird (2008-09-23 01:48:37)

Offline

#103 2008-09-23 01:59:58

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: jmd_img_selector: Thickbox-style image selector

Hey jm,

Mr. Overzealous Helpful Know-Nothing III here again.

I did some digging and found that Mary’s upm_image_popper uses that exact bit of code – credited to Alex King

As you were.


T

Last edited by renobird (2008-09-23 02:19:20)

Offline

#104 2008-09-23 02:43:21

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

renobird wrote:

Mr. Overzealous Helpful Know-Nothing III here again.

I did some digging and found that Mary’s upm_image_popper uses that exact bit of code – credited to Alex King

Heheh thanks Tom – that looks good.

Last edited by jm (2008-09-23 02:43:36)

Offline

#105 2008-09-23 03:00:16

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: jmd_img_selector: Thickbox-style image selector

Sweet!

At the risk of sounding like a pest…do you think you might be working on that this week, or are there too many other things to deal with first? I’m only being this forward about asking because I need to get back to the client who pointed it out to me with a solution.

If you think it’ll take some time – then I guess I could activate upm_image_popper for them in the meantime.
Please, oh please, don’t make me do that.

)

Offline

#106 2008-09-25 01:46:48

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: jmd_img_selector: Thickbox-style image selector

Dear Diary

I sure hope that hunky Jon-Michael drops by with an update to his plugin. That sure would be swell.

Sorry. Lost my mind for a minute.
As you were.

:P

Offline

#107 2008-09-30 03:46:43

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

All – almost ready for 1.0b2 (few bug fixes + insert at cursor).

What do you think about the placement of the “append” control? Top bar somewhere or bottom?

Offline

#108 2008-09-30 04:02:32

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: jmd_img_selector: Thickbox-style image selector

Well I suppose if the “append” control, and I don’t actually know what an append control does, is at the top all the buttons etc are in one place, which might make for ease of use.

Offline

Board footer

Powered by FluxBB