11
russtik
Re: Possible image display bug?
  • 2004/12/13 15:55

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


In reply to your suggestion of a wysiwyg editor, I'm in the process of learning how to hack the Koivi editor into the site. Maybe this will alter the situation once installed?

Also, in reply to:

Quote:
Given your comments earlier, it was a pretty safe assumption that you were the one that didn't know html and css. I apologies if I offended.


Not at all, we just crossed wires.

Quote:
It's true that the image manager does have some limitations. Perhaps you could offer a suggestion to improve opposed to just criticism.


I wasn't critising the image manager, I was saying that for me to leave this issue undealt with in a live site would be bad design on my part.

Wysiwyg aside, I think it's a worthy point to highlight that the standard setup produces this problem.

12
JMorris
Re: Possible image display bug?
  • 2004/12/13 16:08

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Thank you for your clarification, russtik. I apologise for the misunderstanding.

I look forward to seeing your work on the Koivi editor.

13
russtik
Re: Possible image display bug?
  • 2004/12/13 16:19

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Quote:

JMorris wrote:
I look forward to seeing your work on the Koivi editor.


I'm engaged in another topic about the Koivi editor which you can view by clicking here. The main problem at the moment is that my knowledge of PHP isn't as good as I'd like it to be so I'm relying on the assistance of others to guide through the hack installation.

14
wtravel
Re: Possible image display bug?

Hi,

I have a problem with trying to get the image manager to work in the example url below:

http://www.worldtravelsite.com/modules/destinations/editattraction2.php

Do you know what causes the image manager window to not show up?

Best regards,

Martijn

15
wtravel
Re: Possible image display bug?

Forgot to you show you the code I used

Quote:

<?php
include "header.php";
include XOOPS_ROOT_PATH.'/mainfile.php';
$myts =& MyTextSanitizer::getInstance();
include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";

include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';

if (isset($_POST['content'])) {
$content = $_POST['content'];
} else {
$content = "";
}
echo $content;

// KOIVI
include XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php";

//EXAMPLE TOOLBAR BUTTONS
$options= array
(
"fontname","fontsize","formatblock","forecolor","hilitecolor","newline",
"undo","redo","separator","cut","copy","paste","separator","bold",
"italic","underline","strikethrough","removeformat","separator","justifyleft",
"justifycenter","justifyright","justifyfull","separator","insertorderedlist",
"insertunorderedlist","indent","outdent","newline","superscript","subscript",
"separator","quote","code","separator","createlink","unlink","separator",
"inserthorizontalrule","createtable","insertimage","togglemode","imagemanager","imageproperties","tableprops"
);

//WE MUST CREATE A FORM
$sform = new XoopsThemeForm( Edit, "storyform", "editattraction2.php" );

//NOW WE MAKE A WYSIWYG OBJECT
//(if the last parameter is empty '', the full toolbar will be loaded)
$wysiwyg_text_area= new XoopsFormWysiwygTextArea( Content, 'content', $content , '100%', '400px',$options);

//SPECIFY THE WYSIWYG FILES RELATIVE PATH
$wysiwyg_text_area->setUrl("/class/wysiwyg");

//SPECIFY A SKIN (The new skin must be inside "skins" folder. You must specify the skin's folder name)
//$wysiwyg_text_area->setSkin('xp');

//ADD THE WYSIWYG OBJECT TO THE FORM
$sform->addElement( $wysiwyg_text_area );

//FINALLY, THE SUBMIT BUTTON
$button_tray = new XoopsFormElementTray( '', '' );
$button_tray->addElement( new XoopsFormButton( '', 'submit', Save, 'submit' ) );
$sform->addElement( $button_tray );
$sform->display();

// END KOIVI

?>

Login

Who's Online

130 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 130


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits