Welcome to Geeklog, Anonymous Friday, October 11 2024 @ 10:15 am EDT
Geeklog Forums
Geeklog 1.5.1 and advanced editor
Page navigation
::Ben
Can someone tell me if he is able to add pictures with advanced editor in a story on a Geeklog 1.5.1?
For static page it is OK
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
::Ben
Sorry I still can add any picture on the demo.geeklog.net with advenced editor in a story. Tested with FF and IE.
I don't think it is a security issue because I can add images in a static page.
Please, can someone check it?
Thanks.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Guest
ironmax
Not to interfere, but why do non admin users get the plaintext editor by default, whereas the admins get the advanced editor by default?
Is this something that everyone would like? I can certainly change the default to be html instead of plain. As for the FCKeditor being a default with no login, I see that as a potential security problem. For non-Admin's with regular login access, I purposely did not include that as an option, because this is a demo site and you would know what the features are when logging in as an Admin.
Michael
ironmax
Hello,
Sorry I still can add any picture on the demo.geeklog.net with advenced editor in a story. Tested with FF and IE.
I don't think it is a security issue because I can add images in a static page.
Please, can someone check it?
Thanks.
::Ben
Ben,
Are you trying to disable that feature? I have it set to work on the demo site.
Michael
::Ben
My question is are you able to add a picture to a story with advanced editor on the demo.geeklog.net?
Because I can't. Seems to be a big bug
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
ironmax
Hi Michael,
My question is are you able to add a picture to a story with advanced editor on the demo.geeklog.net?
Because I can't. Seems to be a big bug
::Ben
Thats interesting...I can't either. I checked and double checked the entire setup. Seems to not work. That was one of the things I did not check when I upgraded the demo site.
Michael
Guest
ironmax
You didn't understand me, I have my own site and admins get FCKEditor by default, whereas regular logged in users get the plaintext editor by default. I want the latter to get FCKEditor by default just as well.
Okay, we'll see how it goes with the Advanced editor. Anonymous users will not get the full features as they do when they are logged in.
Michael
Guest
ironmax
Again, I am talking about logging in users (who also happen to be topic/story admins) who get the plaintext editor by default, whereas root admins get FCKEditor by default. I want the former to get FCKEditor by default just well.
That is all configurable in the GUI of the setup. We have it set like this by default for security because it is a demo site. The features can be changed on your own web site setup.
Michael
Guest
::Ben
Did you try in Config - Users and submission - User submission - Default post mode - HTML Formatted ?
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
antiqueone
::Ben
Images are store in yourgeeklog.com/images/library/Image folder and library and Image folders must be writable.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
ironmax
Hi antiqueone,
Images are store in yourgeeklog.com/images/library/Image folder and library and Image folders must be writable.
::Ben
See this bug report at http://project.geeklog.net/tracking/view.php?id=757 It appears to be wide spread.
Michael
::Ben
/* Optional HTML Tags that will be enabled if advanced editor is enabled
* Posible to add tags to the allowable general USER $_CONF['user_html'] as well
*/
if ($_CONF['advanced_editor']) {
$_CONF['admin_html']['a'] = array('href' => 1, 'title' => 1, 'id' => 1, 'lang' => 1, 'name' => 1, 'type' => 1, 'rel' => 1);
$_CONF['admin_html']['hr'] = array ('style' => 1);
$_CONF['admin_html']['ol'] = array ('style' => 1);
$_CONF['admin_html']['ul'] = array ('style' => 1);
$_CONF['admin_html']['caption'] = array ();
$_CONF['admin_html']['table'] = array ('class' => 1, 'id' => 1, 'style' => 1, 'align' => 1, 'width' => 1,
'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1);
$_CONF['admin_html']['tbody'] = array ();
$_CONF['admin_html']['img'] = array('src' => 1, 'width' => 1, 'height' => 1, 'vspace' => 1, 'hspace' => 1,
'dir' => 1, 'align' => 1, 'valign' => 1, 'border' => 1, 'lang' => 1,
'longdesc' => 1, 'title' => 1, 'id' => 1, 'alt' => 1);
$_CONF['admin_html']['font'] = array('face' => 1, 'size' => 1, 'style' => 1);
}
So, if you need advanced editor to work with pictures you can hack for exemple your lib-story.php and add this code in the beginning of the STORY_renderArticle function (near line 67) like this:
function STORY_renderArticle( &$story, $index='', $storytpl='storytext.thtml', $query='')
{
global $_CONF, $_TABLES, $_USER, $LANG01, $LANG05, $LANG11, $LANG_TRB,
$_IMAGE_TYPE, $mode;
static $storycounter = 0;
/* Optional HTML Tags that will be enabled if advanced editor is enabled
* Posible to add tags to the allowable general USER $_CONF['user_html'] as well
*/
if ($_CONF['advanced_editor']) {
$_CONF['admin_html']['a'] = array('href' => 1, 'title' => 1, 'id' => 1, 'lang' => 1, 'name' => 1, 'type' => 1, 'rel' => 1);
$_CONF['admin_html']['hr'] = array ('style' => 1);
$_CONF['admin_html']['ol'] = array ('style' => 1);
$_CONF['admin_html']['ul'] = array ('style' => 1);
$_CONF['admin_html']['caption'] = array ();
$_CONF['admin_html']['table'] = array ('class' => 1, 'id' => 1, 'style' => 1, 'align' => 1, 'width' => 1,
'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1);
$_CONF['admin_html']['tbody'] = array ();
$_CONF['admin_html']['img'] = array('src' => 1, 'width' => 1, 'height' => 1, 'vspace' => 1, 'hspace' => 1,
'dir' => 1, 'align' => 1, 'valign' => 1, 'border' => 1, 'lang' => 1,
'longdesc' => 1, 'title' => 1, 'id' => 1, 'alt' => 1);
$_CONF['admin_html']['font'] = array('face' => 1, 'size' => 1, 'style' => 1);
}
Maybe it will be not the right place for the bug fix... but now it's working
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
::Ben
It's not a good fix because with it you can record a story with picture but you can't edit it no more. Correction are not recorded.
Need to elaborate a cleaner fix
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
antiqueone
Hi antiqueone,
Images are store in yourgeeklog.com/images/library/Image folder and library and Image folders must be writable.
::Ben
Thanks Ben, brilliant, administrator can now upload images and insert them in stories.
Page navigation
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content