Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#661 2009-12-03 08:42:39

tRM
New Member
Registered: 2009-12-03
Posts: 3

Re: hak_tinymce WYSIWYG article editor

First, thank you to everyone who has put time into this plugin. It really expands the appeal of Textpattern a great deal. Sadly for me, I can’t get it to work. I use Textpattern 4.2.0 and tiny_mce 0.9.6.

After saving the “tiny_mce” folder to my server in the /textpattern folder and installing the plugin using copy-paste from the hak_tinymce.txt file, the plugin appears to install correctly. However, no Extension tab appears and I cannot complete the installation process.

Also, the following parse error occurs if I set the plugin to “active” and navigate to any of the other Admin tabs (Content, Presentation, etc.):

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /textpattern/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 25 The above errors were caused by the plugin:hak_tinymce Textpattern

Thanks for a great plugin. Please help me get to a place where I can use it!

Offline

#662 2009-12-03 12:26:52

webspy
Member
From: Czech Republic
Registered: 2008-06-01
Posts: 10
Website

Re: hak_tinymce WYSIWYG article editor

Well, I can translate the sentences, but only by editing plugin, right? It would be maybe better if there were inputs in the extentions tab / hak_tinymce. In short, to use DB for lang variables (table txp_hak_tinymce). What do you say? :)

And something else I think would be useful. When you write an article and you want to insert an image, you have two options — to insert thumbnail or to insert original size image. I added there by myself one more button that inserts a thumbnail with link to the big one. (And with rel/class to use lightbox.) Would you add such feature into the plugin?

Offline

#663 2009-12-03 12:44:49

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

Hi Patrick,
first of all thank you for updating this plugin (which is fundamental for me). I haven’t tried the new version yet but I’ll be testing it shortly.
I have a question: given that the new glz_custom_fields makes it possible to set custom fields as textareas I wonder if it would be viable to (easily) hack the plugin in order to add tinymce to such textareas.
Thank you.

Offline

#664 2009-12-03 14:44:11

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

@tRm: what version of php are you using? I’ll try to investigate not sure what could be causing that.

@webspy: Originally you could create another plugin that would add to the lang table. When I moved everything into a class last time I broke this (no one was using it as far as I know). Creating an admin panel is probably the best in the long run. It’s also the most amount of work :)

Regarding inserting the thumb with a link to the original, my preference would be to do that trough a general TXP linking plugin which I want to write. That way the image plugin is not performing two things. This would alo allow you to link the image to articles, sections etc if you wanted to. What do you think of that? I’m open so opposing views.

@redbot: Depends on if you need different initialization strings for the different textareas. If they can all be the same and they can just be on by default it wouldn’t be too hard to hack (no toggling). Might be able to do it without even touching the plugin code. If you want a toggle for each one it’s harder. (ironically the work I just did makes it harder)


Shoving is the answer – pusher robot

Offline

#665 2009-12-03 15:11:53

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

… Depends on if you need different initialization strings for the different textareas. If they can all be the same and they can just be on by default it wouldn’t be too hard to hack (no toggling). Might be able to do it without even touching the plugin code. If you want a toggle for each one it’s harder. (ironically the work I just did makes it harder)

Thank you for your answer Patrick. No, I don’t need a toggle and from your answer I gather that it’s easy enough – great!
I think I might find the way by myself but if you want to give some advice (for me and other reading this forum) it would be really appreciated.

Offline

#666 2009-12-03 17:26:23

faltik
New Member
From: Czech Rep.
Registered: 2009-12-03
Posts: 7

Re: hak_tinymce WYSIWYG article editor

Hello,

I’ve recently updated Textpattern to 4.2.0 and finally decided to give a shot to this amazing plugin (0.9.6), but it seems I’m not even able to install it. When I click on the new hak_tinymce tab in extensions (files uploaded, plugin installed), everything I get is this shiny error on the blank page:

Warning: call_user_func_array() [function.call-user-func-array]: Unable to call hak_tinymce::prefs() in /XXXXXXXXXXXXXXXX/textpattern/lib/txplib_misc.php on line 636

I understand its probably not plugin’s error, but I’m totally lost when it comes to PHP. As far as I remember, I tried this plugin few weeks ago on the old 4.0.6 and I got past this step with no problems, except I couldn’t use it well in the Write tab (some problems with tables implementation, I assume it was because old TXP version – but it doesn’t matter, important is I didn’t get any installation error back then). So I guess it has something to do with my upgrade to 4.2.0.

I’ve spent last two days searching for solution, but it seems like I’m the only person with this problem… or maybe just lame searcher. I found few similiar examples with call_user_func_array() error on PHPbugs, but unfortunately can’t figure out how it could help solve my problem, when it’s not exactly same error.

Anyway, I’m using PHP v. 5.0.22 (at least my phpMYAdmin says so – if it’s not the right number, feel free to educate me where I can find it).

Any help appreciated!

Offline

#667 2009-12-03 20:44:50

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Depends on if you need different initialization strings for the different textareas. If they can all be the same and they can just be on by default it wouldn’t be too hard to hack (no toggling). Might be able to do it without even touching the plugin code. If you want a toggle for each one it’s harder. (ironically the work I just did makes it harder)

I would also love to have this feature, of course it would be even cooler if you could toggle the setting, but having the ability at all would be great. If you get it working Redbot, please pass on your methods!

Last edited by aswihart (2009-12-03 20:45:37)

Offline

#668 2009-12-03 22:08:51

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

@faltik: it might be the way I’m calling the statics in the class. It works in the latest PHP but I wasn’t sure how far back it would work. I might need to change that. I’ll need to see what’s involved.

@redbot, aswihart: I’ll try to see if what I’m thinking will work;

Last edited by hakjoon (2009-12-03 22:09:35)


Shoving is the answer – pusher robot

Offline

#669 2009-12-04 02:06:04

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

@faltik: Try 0.9.6.1 see if it helps.

Nevermind found a bug that kept the editors form displaying when the toggle was hidden, so going straight to 0.9.7

Last edited by hakjoon (2009-12-04 03:15:32)


Shoving is the answer – pusher robot

Offline

#670 2009-12-04 03:17:38

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

@redbot, aswihart: 0.9.7 should allow you to turn the editor on for all textareas.

Turn off teh excerpt and then in the callbacks box do
settings.body.mode = "textareas";

see if that works.

Last edited by hakjoon (2009-12-04 03:18:23)


Shoving is the answer – pusher robot

Offline

#671 2009-12-04 03:58:24

tRM
New Member
Registered: 2009-12-03
Posts: 3

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

@tRm: what version of php are you using? I’ll try to investigate not sure what could be causing that.

Using php 4.3.11 with no option to upgrade (clients are using Yahoo webhosting). I updated to 0.9.7, but the issue remained.

Thank you for the quick reply and willingness to help.

Offline

#672 2009-12-04 08:36:32

webspy
Member
From: Czech Republic
Registered: 2008-06-01
Posts: 10
Website

Re: hak_tinymce WYSIWYG article editor

Originally you could create another plugin that would add to the lang table. When I moved everything into a class last time I broke this (no one was using it as far as I know). Creating an admin panel is probably the best in the long run. It’s also the most amount of work :)

Well, I don’t care much what way will it be done. For me (and hopefully for others) is important that I don’t have to edit the plugin and rewrite the sentences every time you release new version :-) You are right, for long run it would be better new plugin.

Regarding inserting the thumb with a link to the original, my preference would be to do that trough a general TXP linking plugin which I want to write. That way the image plugin is not performing two things. This would alo allow you to link the image to articles, sections etc if you wanted to. What do you think of that? I’m open so opposing views.

I get your point. Well this feature is not for me, but for my customers (BFU). I want to make it as easier as possible — so they could insert image thumbnail with link to original (and using lightbox without explaing them they have to put there rel/class). I think this would be the easiest way — in one click <a href=”“ rel=“anybox”><img /></a>. If they want to make a normal link to page/article/image/anywhere, they may use classic link button.

Offline

Board footer

Powered by FluxBB