You are not logged in.
Pages: 1
I am working on a web site administration system using Xinha.
So far - completely thanks to Xinha - it is working beautifully, but I have come across something that I would love to be able to do.
Since the system is intended to be very flexible, it must be possible to upload files. To do that, I added the Extended File Manager plug-in.
The problem is that this plug-in has a very small button, and to activate it people must be using the page editor.
To solve that I could write my own uploader, force the user to put up with the current strange layout, or find a way to have EFM activated on demand.
Any solution to that last thought is welcome!
Currently I guess I could do some horrendous editing to EFM so that it is standalone (*Shudder*), or I could get Xinha to run it for me / EFM to open itself using a magical command (and do some /slight/ editing to get rid of the Open button).
Effectively, I want a plugin's button located outside of the editor box.
Is it possible to have Xinha running without a text box to draw into?
As you can see, I'm a bit lost. Ignore those last thoughts if they're confusing and feel free to toss around any thought on the topic that pops up.
Thanks in advance, and... congratulations for somehow making it through this horrible mess of a question
Last edited by Mr. Picklesworth (2006-10-06 18:57:34)
Offline
It's possible to make EFM run standalone with relatively little effort (as koto mentioned in the other post)
Just to give you a start I played around with it a little bit. Check this out http://raimundmeyer.de/xinha/EFM_standalone.zip
You have to assign _editor_url in assets/popup.js which is the path of the directory (just for convenience in this file as it is loaded in every window).
Just open manager.php
Obviously this works in link mode all the time
Offline
Works perfectly. All I had to do was change the window title.
Thanks much!
There seems to be a problem with the image editor, though... both in the standalone version and the not standalone version.
I'm getting the following error when I resize a jpg image:
"Fatal error: Call to undefined function ImageCreate() in /var/www/DHS/xinha/plugins/ImageManager/Classes/GD.php on line 348"
If I try to rotate it, it doesn't give me an error message but the image disappears. (Just a blank window...)
Does anyone else get this?
Edit:
Even the example gives an error:
Warning: imagejpeg(): Unable to open 'demo_images/.editor_7e1ec081382774705411eb9453acb86f_08b3fc.jpeg' for writing in /home/xinha/public_html/xinha-nightly/plugins/ImageManager/Classes/GD.php on line 456
That may be because it's not given write access though.
(Hm... come to think of it, neither have I... one second here...)
Last edited by Mr. Picklesworth (2006-10-07 20:10:49)
Offline
"Fatal error: Call to undefined function ImageCreate() in /var/www/DHS/xinha/plugins/ImageManager/Classes/GD.php on line 348"
You must have GD extension enabled in PHP to use EFM/IM with default settings. You could switch it to use ImageMagick library - see details in the config file. If you're on windows you can enable GD extension by uncommenting php_gd.dll (or php_gd2.dll) in php.ini and restarting HTTP server.
ray: great work with the standalone!
Last edited by koto (2006-10-09 12:01:59)
Offline
I'm trying this EFM as a replacement for the old stand alone Image Manager.
Mr. Picklesworth, what did you change the "window title" to in order for it to work? How do you do this? Thanks.
site [url]www.paradigmprint.com[/url]
Offline
Works perfectly. All I had to do was change the window title.
Thanks much!
Could you install a sample of what you did some place where I can take a look at how you did it?
site [url]www.paradigmprint.com[/url]
Offline
Sure!
In manager.php (pretty much the main file), go to Line 23.
This should say:
<title>Insert <?php echo ($insertMode == 'image' ? 'Image' : 'File Link') ?></title>
Just play with that as you see fit.
Unfortunately, I can't give you mine (and I forgot how that weird bit of PHP works; I'm used to normal If statements) because I have recently changed hard drives and Ubuntu releases for my server... it's a bit of a mess right now until I can be bothered to get all the software installed again. (Hoping to do it right this time, with separate users for each web site, running alongside PHP 4, MySQL, at least some thought put into security, etc.)
Last edited by Mr. Picklesworth (2006-10-21 18:28:15)
Offline
Pages: 1