| |
|
| Stats | |
| Goal: | $100.00 |
| Due Date: | May 31 |
| Gross Amount: | $65.00 |
| Net Balance: | $61.80 |
| Left to go: | $38.20 |
|
|
|
| Donations | |
| studioC ($25)May-17 | |
| Anonymous ($15)May-16 | |
| Anonymous ($25)May-4 | |



Nice job! Does this new version work with tables?
if (file_exists(XOOPS_ROOT_PATH . '/class/xoopseditor')) {
include_once(XOOPS_ROOT_PATH."/class/xoopslists.php");
include_once(XOOPS_ROOT_PATH."/class/xoopseditor/xoopseditor.php");
$editorhandler = new XoopsEditorHandler();
$xedArr = array_flip($editorhandler->getList());
foreach ($xedArr as $xedTitle => $xedName) {
$arr[] = Array("XE - $xedTitle", 1 , $xedName );
}
}
[Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://tegneserielogen.dk/logen/modul ... :: line 1" data: no]

?
Now when I go to edit a post all the linefeeds andformatting are removed.

Solved the problem with ximagemanager and XOOPS 2.2.4, but I don't understand it. Nearly everything is working fine, but the templates are NOT understanding <{$xoops_url}> anymore. If I explicitly assign XOOPS_URL AGAIN it works. So wth...
if (file_exists('../../../../mainfile.php')) include_once '../../../../mainfile.php';
if (file_exists('../../../../../mainfile.php')) include_once '../../../../../mainfile.php';
if (file_exists('../../../../../../mainfile.php')) include_once '../../../../../../mainfile.php';
if (file_exists('../../../../../../../mainfile.php')) include_once '../../../../../../../mainfile.php';
if (file_exists('../../../mainfile.php')) include_once '../../../mainfile.php';
if (file_exists('../../mainfile.php')) include_once '../../mainfile.php';
if (file_exists('../mainfile.php')) include_once '../mainfile.php';
if (!defined('XOOPS_ROOT_PATH')) {
exit();
}
3. And another bug: image editor browsing feature don't work. When I press "Browse" button blank page opens.
Hope you'll fix it.
Thanks anyway.
The patches for tinyeditor 1.0 BETA (CRAP-Version) you will find HERE
the result is hard to explain, but the page becomes a mix of teh normal wiwimod output and the html-text that's briefly shown when loading TinyEditor.
I was trusting the xoopsforge-module on d.x.o. too much, that the uploaded files will be attached, but this wasn't the case.
You have to re-download the whole zip-file of TinyEditor 1.0 beta.
xrmanager is part of the module and not a separate plugin.

echo "<select name="links" $javascript style="width:300px"><option value="" selected="selected">{$lang_advlink_link_sellink}</option>";
while ($published = $xoopsDB->fetchArray($published_array)) {
$url = $published['url'];
$title = $published['title'];
echo "<option value="".$url."">". $title ."</option>";
}
echo "</select>"
$html = "<select name="links" $javascript style="width:300px"><option value="" selected="selected">{$lang_advlink_link_sellink}</option>";
while ($published = $xoopsDB->fetchArray($published_array)) {
$url = $published['url'];
$title = $published['title'];
$html .= "<option value="".$url."">". $title ."</option>";
}
$html .= "</select>"
. I can send you the changed files if you want, although it's a 5 minute thing.
//if (ini_get('safe_mode') == true) {
$modversion['config'][20]['name'] = 'tinyedmgrthudir';
$modversion['config'][20]['title'] = '_MI_TINYEDMGRTHUDIR';
$modversion['config'][20]['description'] = '_MI_TINYEDMGRTHUDIRDESC';
$modversion['config'][20]['formtype'] = 'texbox';
$modversion['config'][20]['valuetype'] = 'text';
$modversion['config'][20]['default'] = ".thumbs";
$modversion['config'][20]['category'] = 'tinyed_manager';
//}
I encoutered the same trouble especially on ColorPicker popup.
I have just found the following workaround.
In resizeToInnerSize function in tiny_popup.js file,
replace
// Netscape 7.1 workaround
if (this.isWindow && tinyMCE.isNS71) {
window.resizeBy(0, 10);
return;
}
with
// Gecko workaround
if (this.isWindow && tinyMCE.isGecko) {
window.resizeBy(20, 10);
return;
}
It runs well on FF 1.5, Netspace 7.1 and Mozilla 1.7.2 on Win XP
Line: 86
Char: 21
Error: Expected identifier
Code: 0
URL: http://www.flstudio.ru/modules/tinyeditor/xrmanager/files.php
Line: 86
Char: 23
Error: Expected identifier
Code: 0
URL: http://www.flstudio.ru/modules/tinyeditor/xrmanager/files.php
But how can I use the TinyEditor for the Xoops-custom blocks in XOOPS 2.0.14?
Am I missing something, or has xrmanager/connectors/php/config.php slipped out of the beta pack? It's mentioned in the Online help, I cannot find it anywhere, and I also cannot get into the xrmanager.

Then (that's a rant more than anything else, but perhaps someone has a solution): The language file for the iBrowser translates only some of the interface...

The english text of the opening screen of iManager is defined in the file imanager/imanager.php. Probably it's the same for iBrowser.
If I leave Valid Elements blank, it seems to accept much more, but when hitting on "Edit Html", some of it nevertheless goes. Particularly form elements.


In the administration of the toolsets you can select the standard commandset. This is the same as leaving it blank, but there you can add elements. There were some discussions on the tinyMCE-forum concerning pros and cons of forms inside WYSIWYG and the developers decided that this would not be in core. BUT there is an OLD form-plugin for tinyMCE. If you give some good reasons I will maybe reanimate this plugin.
. Somehow, and as it is now, the validation seems a little over the top in light of the fact people can also just post their dirty code through one of the other editors in the XOOPS editor framework. But I guess that's an issue mainly for people who're deploying Tiny on a module which already contains sizable amounts of pages. Besides, it's certainly not something you would have to worry about. Perhaps just interesting for people to know that Tiny is going to parse their code for dirtiness, and will strip it quite recklessly.
Now it seems I only one big problem: I don't get anything in the preview area (in the image manager popup) when I select an image. What could I have done to break this?.
Also, a quick one. Our customer is one of those lazy types that would like the "please include a description" to be disabled by default. Any option in the configuration, or should I just cap it in the code?.
Also, a quick one. Our customer is one of those lazy types that would like the "please include a description" to be disabled by default. Any option in the configuration, or should I just cap it in the code?.
There could be various reasons:
a) chmod 777 missing for tinyeditor / editor / plugins / imanager / scripts / phpThumb / cache and tinyeditor / editor / plugins / imanager / temp
[...]
For further debugging uncomment lines 12 and 13 in tinyeditor / editor / plugins / imanager / scripts / phpThumb / phpThumb.php - don't forget to comment these lines after successful debugging.
Quote:If i didn't miss the point the setting should be this one
http://tinymce.moxiecode.com/tinymce/ ... cessibility_warnings.html
Maybe I missed the point, because I thought we were talking about the plugin imanager? If not ralf57 is right.
How about being able to upload more than one image at a time?. Or perhaps uploading a .zip file with images that could be uncompressed and deleted in the current directory?
$cfg['umax'] = 1;
$cfg['umax'] = 5;
// if it's an image
if (preg_match("/bimageb/i", $file['type'])) {
if (!$this->_validateImage($file['tmp_name'], $groupid)) { return false; }
}
// if it's a zip file
if($file['type'] === 'application/zip') {
return $this->_processZipFile($file['tmp_name'], $groupid, $relative);
}
return $this->_moveImage($relative, $file['tmp_name'], $file['name']);
/**
* Processes zip files. The file must be an
* uploaded file. Only images will be extracted.
* @param string $filepath the path to the zip file
* @param string $relative the relative path where the file
* should be copied to.
* @return boolean true if the file was processed successfully,
* false otherwise
*/
function _processZipFile($filepath, $groupid, $relative)
{
// Create the zip object
include XOOPS_ROOT_PATH.'/modules/tinyeditor/class/pclzip.lib.php';
$archive = new PclZip($filepath);
// Create a temp directory to extract the files
$tempdir = dirname($filepath).'/zip'.time().'/';
// Get the filenames from the zip file
$files = array();
foreach($archive->listContent() as $data) {
if($data['folder'] != 1) { $files[] = $data['filename']; }
}
if ($archive->extract(PCLZIP_OPT_PATH, $tempdir)) {
foreach($files as $filename) {
$f = $tempdir.$filename;
// Copy only the images
if($this->image2MIME($f) && $this->_validateImage($f, $groupid)) {
$this->_moveImage($relative, $f, basename($f));
}
}
}
// Remove the temp data
Files::delFolder($tempdir, true);
Files::delFile($filepath);
return true;
}
/**
* Validates an image, taking into account the user and its allowed parameters
* @param string $imgPath the path to the image file
* @param string $groupid the group of the file that uploaded the image
* @return boolean true if the image validates ok
* false otherwise
*/
function _validateImage($imgPath, $groupid) {
global $xoopsDB;
$size = getimagesize($imgPath);
if(!is_array($size)) {
Files::delFile($imgPath);
echo "<div style='background-color: #ff0000; padding: 5px; color: #ffffff; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;'>".
_TINYMGR_26."</div>";
return false;
} else {
$sql = "SELECT imgwidth, imgheight FROM ".$xoopsDB->prefix('tinyeditor_toolset')." WHERE tinyed_gid = ".intval($groupid)."";
$result = $xoopsDB->query($sql);
list($imgwidth, $imgheight) = $xoopsDB->fetchRow($result);
if (($size[0] > $imgwidth) || ($size[1] > $imgheight)) {
Files::delFile($imgPath);
echo "<div style='background-color: #ff0000; padding: 5px; color: #ffffff; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;'>".
_TINYMGR_27.$size[0]."x".$size[1]."px - "._TINYMGR_28.$imgwidth."x".$imgheight."px</div>";
return false;
}
}
return true;
}
/**
* Moves an image to its destination directory
* @param string $relative the path to copy the image file to
* @param string $from the path to the image file
* @param string $to the name of the moved file
* @return boolean true if the image validates ok
* false otherwise
*/
function _moveImage($relative, $from, $to) {
$path = Files::makePath($this->getBaseDir(),$relative);
$result = Files::copyFile($from, $path, $to);
//no copy error
if(!is_int($result))
{
Files::delFile($from);
return true;
}
//delete tmp files.
Files::delFile($from);
return false;
}
Bug or something wrong with my config?
div[*]

<EMBED src=../../uploads/my_movie.mp4 width=352 height=288 type=video/quicktime border="1" scale="tofit" AUTOPLAY="false" CONTROLLER="true"></EMBED>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="undefined" height="undefined"><param name="movie" value="/modules/wiwimod/undefined" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="" /><embed src="/modules/wiwimod/undefined" wmode="" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="undefined" height="undefined"></embed></object>
then I dont understand why my setting of $cfg['root_dir'] to be anything would impact phpthumb?
<img style="blabla"... or <img class="blabla".. or <style type="text/css">img {border:none;}</style>