Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Conflict between mce_cal extension and file upload patch

phpMyEdit General     Conflict between mce_cal extension and file upload patch
Odoslať novú tému   Odpovedať na tému    
 
plemieux     Založený: 11.05.2005   Príspevky: 20  
Príspevok Zaslal: 2005-05-12 14:37
Návrat hore  Odpovedať s citátom     

I installed the patch to do file upload (see http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=29 ).

It doesn't seem to work when the mce_cal extension is present.

Is there a way to correct this?

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-05-12 17:58
Návrat hore  Odpovedať s citátom     

I'm not surprised it doesn#t work. mce_cal overrides the field display routines in the main PME class, so even if you apply the patch the patches will be ignored.

In theory you should be able to fix it by applying the patches to the functions in the mce_cal extension however I would be very surprised if the patch files work as the base code has changed. I'm sure you could hand-apply the updates if your PHP is good enough.

I can see this type of issue becoming a bigger and bigger problem over time as people want more and more field types. I've been thinking about ways of creating a way of having pluggable field types - so you could add field types without overriding other changes. Don't have an answer yet, but it would solve this problem.

There is another solution to the problems though...go and look at the iManager plug-in for TinyMCE. This would allow you to upload a file and store the HTML link to it in a textarea. You could restrict the option on TinyMCE for that field so that the only option available is image upload if you want to do that.

I think that would allow you to do the same thing, just in a slightly different way.

 
plemieux     Založený: 11.05.2005   Príspevky: 20  
Príspevok Zaslal: 2005-05-12 18:25
Návrat hore  Odpovedať s citátom     

Thanks ajh,

I have yet another problem. I also use subform with tab and this feature also seems to conflict with mce_cal extension.

I will work around the extension by using "exact" mode of TinyMCE (and hard code the list of elements).

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-05-12 19:34
Návrat hore  Odpovedať s citátom     

Could you give me some more details of what you are trying to do? mce_cal should work with tabs generally, but if you are trying to use the new subforms functionality in the CVS it is possible that I need to re-implement the extension on the latest version of the CVS. Which PME options exactly are you using?

 
plemieux     Založený: 11.05.2005   Príspevky: 20  
Príspevok Zaslal: 2005-05-12 19:49
Návrat hore  Odpovedať s citátom     

I am using v 1.167 with file upload patch.

I concurrently need to use:

    tab
    subform
    file upload
    tiny_mce

Upload and tiny_mce fail to work (with no error though) when extension is present.

 
tripwu     Založený: 18.08.2007   Príspevky: 1  
Príspevok Zaslal: 2007-08-18 14:22
Návrat hore  Odpovedať s citátom     

I can confirm that if you modify the MCE cal extension with the necessary fileupload lines of code it all works fine.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov