Mini-meWhat would you like configurated? Toolbars for TinyFCK? Path to images? Just curious.Syrion wrote:Maybe someone could write a plugin-configurator* like the X-Fields one for TinyFCK.
* You'll see this in your settings/options area when X-fields is enabled.
Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting? Or did you mean to have a system setting to toggle use of either the TinyFCK filemanager or the CuteNewsRU image manager?Syrion wrote:Is it possible to link the TinyFCK-filemanager with the CuteNewsRu one (so they both use whatever is set in the system-options)? Or it's not working for me (if the most recent adapted TinyFCK-version should do this) or this option isn't there.
sidtheduck wrote:Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting?
Mini-meSyrion wrote:sidtheduck wrote:Do you mean to link the image path of TinyFCK filemanager and CuteNewsRU to whatever is set in 'Path to image folder:' system setting?
Right on!
<?php
//set up the absolute path variable to CutenewsRU
$serverpath = dirname(dirname(dirname(__FILE__)));
//workaround for windows machines running apache
if ($serverpath[0] != "/"){
$serverpath = str_replace("\", "/", $serverpath);
$serverpath = substr($serverpath, strpos("/", $serverpath), (strlen($serverpath)-1));
}
$TinyFCK['serverpath'] = (substr($serverpath, -1)=="/") ? $serverpath : $serverpath."/";
//set up the root path and absolute URL path variable to this script
if (!empty($_SERVER['DOCUMENT_ROOT'])){
$absrootpath = $_SERVER['DOCUMENT_ROOT'];
}else{
$absrootpath = str_replace($_SERVER['SCRIPT_NAME'], "", realpath($_SERVER['SCRIPT_FILENAME']));
}
$TinyFCK['rootpath'] = str_replace($absrootpath, "", $TinyFCK['serverpath']);
include_once($TinyFCK['serverpath']."data/config.php");
$cuterootarray = parse_url($config_path_image_upload);
$cuteroot = $cuterootarray['path'];
$TinyFCK['imgpath'] = $cuteroot;
$TinyFCK['absimgpath'] = $absrootpath.$cuteroot;
//print_r($TinyFCK);
?>include_once($TinyFCK['serverpath']."data/config.php");include_once("../../data/config.php");/cms/uploads/images/photo.jpg
/cms/uploads/images/Image/photo.jpg
Mini-meSyrion wrote:Great! It works now!
Only problem I encountered is that if you try to embed an image through the image-insert button in TinyFCK is that it automaticly adds Image/ in the path.
manu wrote:when I return at the line ; there was a very big space between 2 lines.
<p><br />My first paragraph here...<br /></p><br /><p><br />My second paragraph here...<br /></p>sidtheduck wrote:mikeD,
Do you have a plugin or a hack of some sort that has an nl2br function? I don't think TinyMCE by itself adds *both* a <p> tag and a <br /> tag, but I could be wrong as well. Also, what browser are you using that you get this issue with? I know TinyMCE had some issues < 3.0 with Safari so it may be best to upgrade to the newest TinyMCE (with the additional FCKeditor image editor plugins from TinyFCK).
Return to Additional Downloads
Users browsing this forum: No registered users and 1 guest