| Author |
Message |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
Database-f* up, sorry for the quadruple-post.
_________________
Mini-me
Last edited by Syrion on Tue May 13, 2008 2:25 am; edited 2 times in total |
|
| Tue May 13, 2008 2:23 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
Maybe someone could write a plugin-configurator* like the X-Fields one for TinyFCK.
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.
* You'll see this in your settings/options area when X-fields is enabled.
_________________
Mini-me |
|
| Tue May 13, 2008 2:23 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  | 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. | What would you like configurated? Toolbars for TinyFCK? Path to images? Just curious.
 |  | 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. | 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?
|
|
| Tue May 13, 2008 5:02 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
 |  | 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!
About the configuration-idea: those two examples you provide are good ones, I don't know if others have any suggestions?
_________________
Mini-me |
|
| Tue May 13, 2008 6:57 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
 |  |  |  | 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! |
Use the code below for your 'tinyfck.config.php' file located in the 'plugins/tinyfck' folder:  |  | <?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);
?> |
Last edited by sidtheduck on Wed May 21, 2008 10:40 pm; edited 1 time in total |
|
| Tue May 13, 2008 7:54 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
Thanks for the code, I installed it, but I have the idea they still use separate directories.
Back to the idea of a configurator:
- language swapper
_________________
Mini-me |
|
| Wed May 14, 2008 1:57 am |
|
 |
ivanh
Joined: 16 Aug 2007 Posts: 72
|
|
|
|
i get an xml error
heres the attachment
i love this addon for the upload files !!
| Description: |
|
 Download |
| Filename: |
boo.GIF |
| Filesize: |
45.17 KB |
| Downloaded: |
38 Time(s) |
|
|
| Wed May 21, 2008 8:27 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
I edited my post above. It should read:  |  | include_once($TinyFCK['serverpath']."data/config.php"); | instead of:  |  | include_once("../../data/config.php"); |
|
|
| Wed May 21, 2008 10:41 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
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.
To clarify it, the path of the actual image is:
 |  | /cms/uploads/images/photo.jpg |
But the "insert/edit image" function links to:
 |  | /cms/uploads/images/Image/photo.jpg |
_________________
Mini-me
Last edited by Syrion on Thu May 22, 2008 11:39 pm; edited 1 time in total |
|
| Thu May 22, 2008 1:14 am |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
| Thu May 22, 2008 1:30 am |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 174
|
|
|
|
It works now! Thanks a lot! 
_________________
Mini-me |
|
| Thu May 22, 2008 11:43 pm |
|
 |
mikeD
Joined: 02 Jan 2008 Posts: 27
|
|
|
|
 |  |
when I return at the line ; there was a very big space between 2 lines.
|
Hello,
I am having the same issue as manu, where it seems to be adding a <br /> before, after and in between each <p> tag. i.e. when typing a return.
E.g.:
 |  | <p><br />My first paragraph here...<br /></p><br /><p><br />My second paragraph here...<br /></p> |
And so the result is an extra space before and after each paragraph.
Any suggestions as to how to fix this?
Thanks.
_________________ Take a penny, leave a penny. |
|
| Mon Jul 28, 2008 2:59 pm |
|
 |
sidtheduck

Joined: 28 Mar 2008 Posts: 71
|
|
|
|
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). I haven't done this, so I don't know if there would be any issues either.
|
|
| Tue Jul 29, 2008 6:24 am |
|
 |
DistantJ
Joined: 29 Jul 2008 Posts: 1
|
|
|
|
This sounds excellent. Before I install, I wanted to ask -
Is it possible to set the default font face and colour, and set a background colour?
I say this because my site has a black background and white size 2 Verdana text, and I'd like my writers to be able to see how the article will look while they make it. I'd also like to set the width of the editor to the same width as my article page, but judging from posts in here I'm pretty sure that's already possible.

|
|
| Tue Jul 29, 2008 10:36 am |
|
 |
mikeD
Joined: 02 Jan 2008 Posts: 27
|
|
|
|
 |  | 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). |
Sid,
I am using FF2 on MacOSX. Not sure what 'nl2br' function is but I found a solution on my own. I enabled the format switcher plugin and edited it to make 'html' the default instead of 'html with br' and that has corrected the issue for me.
Thx.
_________________ Take a penny, leave a penny. |
|
| Tue Jul 29, 2008 2:15 pm |
|
 |
|