Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#451 Re: User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2006-03-20 14:09:45

ray

Well, I have to admit I'm a little clueless what this is supposed to mean. there is nothing in line 165 that looks like it could break it.
Maybe I can have a look at your page?
I'm very unhappy that this is causing such trouble, and also curious what's going on.

#452 Re: User Discussion & Help » problem Image display » 2006-03-20 11:50:08

ray

When do the backslashes occur? Already in the editor or when submit the Form? If the latter andyou're using php, this would be the magic quotes engine of php. Then you would have to do something like

$html = (get_magic_quotes_gpc()) ? stripslashes($html) :$html;

If otherwise it already happens in the editor, I don't know either sad

#453 Re: User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2006-03-20 11:43:25

ray

Have a look at this:http://raimundmeyer.de/xinha/examples/testbed.html

In this example the savesubmit.php is located in the same folder like the testbed.html and it's simply
<?php
print_r($_POST);
?>
for demonstration purposes.

The problem is not your form I have tested this.
What kind of error do you get? Does it work with a "real" submit button? Is the URL of the action right?

#454 Re: User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2006-03-19 20:14:00

ray

I'm so sorry! It was really my fault. There was a suffix to the URL that was a remainder of how I use it with serveral GET parameters, but it broke a simple URL. So, please try it again, I have attached an updated version to the ticket: http://xinha.python-hosting.com/ticket/628

Once again a note on the usage:
This should be more or less a drop-in replace for a normal submit button. It takes the action URL from the
HTML form and sends the data from the textarea in a HTTP post with the name of the textarea.

#455 Re: User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2006-03-19 06:29:39

ray

I'm sorry. What exactly does not work, maybe we can work it out

#456 Re: User Discussion & Help » Font sizes in pixels » 2006-03-16 19:14:56

ray

If you, as you said, want to edit the HTML by hand you have to do it like said, because there is no option in HTML to set font-size in pixels via the <font> tag (i.e. there is no size="13px"). It's only the 1 to 7 range (of relative values) you have in the select box.
The problem is that the combo box we have in the editor only triggers the browser's built in function which (unfortunately) works with the double plus ungood font-tag.
You could submit a feature request ticket that this be changed or otherwise write a plugin youself.

#457 Re: User Discussion & Help » Font sizes in pixels » 2006-03-16 15:46:48

ray

You have to use CSS to set the font size if you want to use px.

<p style="font-size:13px">...</p>

Just an example, if you don't know how CSS works, google for a tutorial. It´s worth it!

#458 Re: User Discussion & Help » How to change shown directories in Linker? » 2006-03-16 10:42:36

ray

plugins/Linker/scan.php
set $dir to desired path

#461 Re: User Discussion & Help » Buttons Drag and Drop » 2006-03-14 15:01:57

ray

If that's your biggest problem, congratulations!

#462 Re: User Discussion & Help » Newbie in problems » 2006-03-14 04:59:42

ray

as for fullscreen: I still couldn't figure to do this, I instead took the code from the plugin that gets the dimensions and put it in my config

var x,y;
    if (self.innerHeight) // all except Explorer
    {
      x = self.innerWidth;
      y = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
      // Explorer 6 Strict Mode
    {
      x = document.documentElement.clientWidth;
      y = document.documentElement.clientHeight;
    }
    else if (document.body) // other Explorers
    {
      x = document.body.clientWidth;
      y = document.body.clientHeight;
    }


    xinha_config.height = y + 'px';  
    xinha_config.width = x + 'px';

#463 Re: User Discussion & Help » Problem with complete HTML page » 2006-03-13 18:20:50

ray

There´s a config variable for that (Config.fullPage=true)

#465 Re: User Discussion & Help » new plugin: SaveSubmit or The Advanced Save Button » 2006-03-13 18:14:27

ray

Hi,
you don't need the submit button, because the data is submitted without an actual submit, in the background. It takes the url from the action attribute of the form, so you are OK there.  You have to set up your (php/perl-)script that it listens for a POST with the name of the textarea for saving, and it has to print out something when it has received the data. In the moment the plugin waits only to get anything back(it does not account errors), but you could change line 121 to

self.setMessage(getback);

to show what the server says.
Hope you get it to work!

#466 Re: User Discussion & Help » Newbie in problems » 2006-03-11 05:30:31

ray

@Xinha 2: How do youz submit the form? In case you use javascript form.submit(), you have to call form.onsubmit() beforehand .
@ImageManager 1: Normally GD should do the job
@ImageManager 2: That's an old bug, search the tickets

#467 Re: User Discussion & Help » Possibly stupid question about downloading plugins » 2006-03-10 06:09:42

ray

You problably have them already, because Xinha is shipped with all plugins on board.
PS:Try InsertSnippet instead of Template (just a little ad for my work)

#468 Re: User Discussion & Help » Problem with fresh install » 2006-03-07 18:12:52

ray

put an alert() in xinha_init to test this

#469 Re: User Discussion & Help » Problem with fresh install » 2006-03-07 18:11:43

ray

unlikely, but easy to try. also i'd have another look at the _editor_url. take the absolute variant /admin/xinha/.
did you check if anything interfered with the window.onload?

#471 Re: User Discussion & Help » code view » 2006-03-02 05:58:23

ray

yeah, that'd be most great!

#472 Re: User Discussion & Help » Getting Entity Code » 2006-03-02 05:43:14

ray

as xinha is explicitly an HTML editor you would have to replace them manually

#473 Re: User Discussion & Help » Disturbing my HTML format » 2006-03-01 19:55:11

ray

I'm glad it does'n the other way round!!

#474 Re: User Discussion & Help » Color coded source view » 2006-03-01 19:40:37

ray

wasn'n there long ago an attempt to do this?

#475 Re: User Discussion & Help » only external URLs (http://..) work, not internal paths (/home/....) » 2006-03-01 19:39:21

ray

You have to use the absolute path from your server root, not the full filesystem path (i.e. inyour example /.....etc). The browser that executes the javascript does not know your filesystem!

Board footer

Powered by FluxBB