Textpattern Forum

You are not logged in. Register | Login | Help

#971 2011-09-15 01:29:48

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

$rs = safe_rows_start("*", "txp_image","1=1 ".$category." order by id");

does this work?


Shoving is the answer – pusher robot

Offline

#972 2011-09-15 18:21:02

progre55
Member
Registered: 2006-05-02
Posts: 641

Re: hak_tinymce WYSIWYG article editor

hakjoon:

That worked perfectly but (and isn’t there always a but) — what are the chances of getting the most recent images on top rather than on the bottom — but if it can’t be done — I am good with how it is for now —

Thanks for the awsome plug in.

progre55

Offline

#973 2011-09-15 21:19:45

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

$rs = safe_rows_start("*", "txp_image","1=1 ".$category." order by id DESC");

that should do it. I’ll make this the default in the next version (it makes more sense) just haven’t had a chance to work on it.


Shoving is the answer – pusher robot

Offline

#974 2011-09-15 21:22:34

progre55
Member
Registered: 2006-05-02
Posts: 641

Re: hak_tinymce WYSIWYG article editor

Worked like a charm.

Thanks.

progre55

Offline

#975 2011-10-17 14:17:14

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: hak_tinymce WYSIWYG article editor

/**** Solved – It was a cache issue ***/
I´m having trouble with txpimage plugin after upgrading both textpattern (from 4.2 to 4.4.1) and the plugin to it’s latest version downloaded here: http://www.hakjoon.com/file_download/11/hak_tinymce.zip

When i click on the “insert image” (the tree icon) the pop up page seeks for the “image.php” file but there´s no such file on txpimage directory (There is an “image.htm” file indeed). I´ve tried to change the file extention to .php and the page loads but without retreiving the files or anything.

I´ve copied the “image.php” file from another site and now i can only insert images in Internet Explorer (In FF and Chrome it opens the pop up but when i click the tree icon to insert the image (or the insert thumb) nothing happens).

I think the download file at http://www.hakjoon.com/file_download/11/hak_tinymce.zip needs an update because the page “image.php” is not included.

Last edited by brunodario (2011-10-17 15:44:48)

Offline

#976 2011-10-17 14:34:42

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

You shouldn’t need image.php anymore. The plugin does all it’s communication with txp via ajax so the file does not need to be a php file anymore. It sounds like you are somehow referenceing an old install.


Shoving is the answer – pusher robot

Offline

#977 2011-10-17 15:45:56

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: hak_tinymce WYSIWYG article editor

Thx for your quick reply, it was a cache issue (the article page was cached and calling “image.php”).

Offline

#978 2011-11-26 23:05:32

elwins
Member
From: Latvia
Registered: 2011-08-29
Posts: 80
Website

Re: hak_tinymce WYSIWYG article editor

hello,
I really like this modification, but is one thing what I cant do with this plugin.
I wanted to add some small images [thumbnails] in my article, whos should be possible to see in bigger size [with Lightbox], maybe someone can help me to add some button in button menu, who format theese small images [thumbnails] image in Lightbox style ?
[Edit] I think, that need to copy LINK button files or code and just add some code lines, but how to do that corectly?

[EDIT2]
tiny_mce/themes/advanced/js/link.js
http://pastebin.com/Gp3HychS
I think that there should add new value, REL, like value TITLE, but I’m not JS expert, maybe someone can help?

Last edited by elwins (2011-11-27 14:58:19)

Offline

#979 2011-11-28 19:24:43

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

Have you considered just turning on the advlink plugin? That has an advanced tab that let’s you set rel I think.


Shoving is the answer – pusher robot

Offline

#980 2011-12-15 02:12:49

dimitrik
New Member
Registered: 2011-12-15
Posts: 1

Re: hak_tinymce WYSIWYG article editor

simoin wrote:

Just a thought,
It would be great if there was an insert file facility similar to insert image in the toolbar.

hakjoon wrote:

@simoin: Something like that is planned.

I would love to have this feature was it ever implemented ?

Last edited by dimitrik (2011-12-15 02:13:31)

Offline

Board footer

Powered by FluxBB