Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2008-09-16 18:29:11

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: jmd_img_selector: Thickbox-style image selector

renobird wrote:

I think 1.0b1. is the latest.

Sadly that produces the same result, but I think I’ve found the culprit: the host is still on PHP 4!

In fact reviewing previous posts me and others had encountered similar problems earlier

So I guess unless the host upgrades to PHP 5, I’m out of luck. :-(

Last edited by masa (2008-09-16 18:30:01)

Offline

#92 2008-09-16 18:32:54

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

Re: jmd_img_selector: Thickbox-style image selector

Yikes. No PHP 5? Maybe time to move? :)

Offline

#93 2008-09-16 19:03:28

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: jmd_img_selector: Thickbox-style image selector

I investigated a bit more and the thing is they do offer PHP 5, but in order to take advantage of it I would need to change the file extensions from .php to .php5 according to their documentation.

I’m not by any means a programmer and this gives me the creeps, but I could sure use my text editor (Text Wrangler) to batch-convert the extensions including all hrefs in an entire Textpattern folder to .php5.

The question is, would that break anything else?

Any insights would be very much appreciated!

Offline

#94 2008-09-16 20:41:42

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

Re: jmd_img_selector: Thickbox-style image selector

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

All – sorry about the delays in getting another beta out. Once this week is over, I should have some more time.

Offline

#95 2008-09-18 10:16:40

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: jmd_img_selector: Thickbox-style image selector

hi jm- great plugin! just one little thing:
-when first activating the plugin, i tried to follow the instructions on the help. the text “create a new stylesheet” points to http://mysite.com/subdomain/index.php?event=jmd_img_selector
i figured out eventually it should point to http://mysite.com/subdomain/ textpattern /index.php?event=jmd_img_selector.


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#96 2008-09-18 19:27:54

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

Re: jmd_img_selector: Thickbox-style image selector

Oops! Thanks kemie.

Offline

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

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

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: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

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

Board footer

Powered by FluxBB