[geeklog-devel] Static Pages Plugin and advanced editor

Samuel Leathers sam at theleathers.net
Fri Apr 30 12:13:08 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In the Users and Submissions -> Submission Settings, if I set the
Advanced Editor to true, and save, it resets to false.

I wasn't exactly sure what this is supposed to do, since to get the
advanced editor to work, you have to manually modify the site config. My
one thought was that this was going to replace the manual editing of the
site config, but I'm new around here, so not sure what it's purpose is.
As far as I can tell, it makes no difference if it's set to false, as
long as advanced editor is set in siteconfig, and the userprefs
advanced_editor is set to 1, it appears, the advanced editor works with
stories. Now, with staticpages, it didn't, but if you see my previous
e-mail, I made a patch that does make it work.

Sam

On 4/30/10 11:45 AM, Tom wrote:
> The Advance Editor is found under "Users and Submissions" and then the
> "Submission Settings" section in the Geeklog Configuration.  The docs read
> for this value
> 
> "Enable (if set to true) a WYSIWYG editor for story and comment submissions
> and static pages. Geeklog ships with FCKeditor."
> 
> The docs do not mention using this as a default value for the post mode just
> that it enables the WYSIWYG editor for submissions. This value also enables
> the advance editor for admin, this is a different form than the "regular
> editor" and it includes the FCKeditor as well as some other changes. The
> docs should probably be changed for this to read something like:
> 
> "Enable (if set to true) a WYSIWYG editor for Story and Comment Submissions.
> Also enables the Advanced Editor Admin form for Story and Static Pages.
> Geeklog ships with FCKeditor."
> 
> If you want a config value for default post modes for the admin editors then
> this should be a separate config value (one for stories and one for
> staticpages)
> 
> 
> BYW the spot to add a check for a default postmode for staticpages would be
> put in the index.php file found under
> \public_html\admin\plugins\staticpages\ around line 95
> 
> Tom
> 
> -----Original Message-----
> From: geeklog-devel-bounces at lists.geeklog.net
> [mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Samuel
> Leathers
> Sent: April-30-10 10:08 AM
> To: Geeklog Development
> Subject: [geeklog-devel] Static Pages Plugin and advanced editor
> 
> I'm not sure if this is a bug, by design or something missing in my
> configuration. When I create a new static page, it defaults to a Post
> Mode of HTML formatted, rather than looking at the value of
> advanced_editor in the gl_userprefs SQL table. A story on the other
> hand, correctly looks at the gl_userprefs, and displays the FCK editor
> by default for users that have it checked in their preferences.
> 
> I've been poking around in plugins/staticpages as well as
> public_html/staticpages/index.php, trying to find where it's deciding
> the selected value for Post Mode. When you edit a page that's already
> been set to advanced editor, it pulls up the FCK editor by default, so
> somewhere in the page it must be doing a query of the content of that
> page in the database to determine what Post Mode to set. If I could find
> that part of the code, it would be fairly easy to modify the query, if
> it's a new page to look ato the gl_userprefs to get a default value.
> 
> Can someone give me some guidance that's worked with the staticpages
> plugin before? I'm at a loss at this point.
> 
> Sam
_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5075 (20100430) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5075 (20100430) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJL2wGUAAoJEF7J+Z7XDXx/F+sH+wWz5HM/hie/qmiWKbvgTlLt
sOsZbzpxY+08TM2zKH+BGO2wJDTvGhSl9EkUh7iJbDMfunF+SexP4dnHGOp2ejsq
sEreGLef00dHtV+dui56oP5BwaGigqM6t4YYnVpOenRV8q4LaM51x6RcsiVJQNiw
OS9wr0Jd9JFXkNmQ+0s8buvJv2lqLPUOiecBRj6+6dOHTDpZcB1XjdLc7WIkf0/a
akXqPFaY90gRLQc2DvA+YToNQaiUnXa9lFZzmmJzezLIs4+OpapIyZ3n2y7cd42a
6iZwk/dLWqaiRL5rpsQuG1Q8oEtqA4gQit0N1A6qoeSZ5lOMC1hNtXsoNEvDMdI=
=xPzg
-----END PGP SIGNATURE-----



More information about the geeklog-devel mailing list