TinyMCE, static pages & absolute paths

Creating and modifying plugins.
Post Reply
pangoken
Regular
Posts: 5
Joined: Thu Nov 02, 2006 9:20 pm
Location: Luton, UK
Contact:

TinyMCE, static pages & absolute paths

Post by pangoken »

Hello all

I have recently installed TinyMCE and have managed to get it working to edit entries on the main page by disabling URL rewriting on the configuration screen.

But, as I have disabled URL rewriting, I now have two other issues:
1: I can no longer access the static contactform or about pages because they need an absolute path. I originally had these pointing to /pages/contactform.html and /pages/about.html. I've had a look on the forums but can't work out what I now need to enter. If it helps, I have installed serendipity off the root domain www.pangoken.com.

2: If I try to edit the Static about page, I get an error on the page in IE (below). In both IE & Opera, the edit area background is grey and the text is dark grey and centred. If it helps I am using Andreas09 as the template. Is this error related to point 1?

Error on Page (with a yellow triangle)
Line: 503
Char: 17
Error: Object Expected
Code: 0
URL: http://www.pangoken.com/serendipity_admin.php


Can anyone help me to fix this?

Thanks

Lee
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: TinyMCE, static pages & absolute paths

Post by garvinhicking »

Hi!

Usually you don'T need to disable URL Rewriting when using TinyMCE; just put a ".htaccess" file into your tinymce directory with the content "RewriteEngine Off". Then you should be able to use tinymce, but still have URL rewritign in your main blog.

The other error seems to be related to the IE...sadly debugging its JS errors is a major pain, because line numbers to not correspond with actual reproducable line numbers. Any chance you get this error reproduced in Firefox? Its error console is much more verbose?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pangoken
Regular
Posts: 5
Joined: Thu Nov 02, 2006 9:20 pm
Location: Luton, UK
Contact:

Post by pangoken »

Hi Garvin

Thanks for the quick reply!! following your advice adding the .htaccess file to the tinymce directory worked a treat.

I've just installed Firefox (and intend to give it a go :) ) and the error message was:

Error: Spawnnuggets is not defined
Source File: http://www.pangoken.com/serendipity_adm ... taticid]=6
Line: 503


which relates to:

<script type="text/javascript">
function Spawnnugget() {
Spawnnuggets('7');
Spawnnuggets('14');
}
</script>


There were also some other warnings relating to unknown properties:
'filter' property in tiny_mce/themes/advanced/css/editor_content.css
& 'scrollbar-highlight-color' property in 'tiny_mce/themes/advanced/css/editor_content.css
were two of the errors - there were more but i won't list them all unless you ask :)

Lee
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Which version of the staticpage plugin are you using? This error should only come from old versions of that plugin?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pangoken
Regular
Posts: 5
Joined: Thu Nov 02, 2006 9:20 pm
Location: Luton, UK
Contact:

Post by pangoken »

Hi Garvin

I'm using v3.39. I have tried updating the event plugins in the configure plugins page but this seems to be the latest version?

Lee
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I believe the 'Spawnnuggets()' call indeed is deprecated and unneccessary.

Could you edit your "serendipity_event_staticpages.php" file and search for "Spawnnuggets". Change that to add a "//" in front of it so that it reads "// Spawnnuggets" (with the rest of the line as is). This will disable the two function calls and should get your page started?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply