Forums / Developer / Language not activating in emotions plugin for ezoe

Language not activating in emotions plugin for ezoe

Author Message

Erik Weinmaster

Monday 19 April 2010 11:28:56 am

I have ezoe enabled along with the emotions plugin for ezoe. I have setup in the ezoe.ini config Plugins[]=emotions and Buttons[]=emotions to add the feature. The funny thing is the actual functionality works just fine. I can click the button, click an emotion, and it returns the right image. However, the wording doesn't seem to be coming through. Thus in emotions.htm there are several references to {#emotions_dlg.bla_bla_bla}, and thats what I see, not the english (which is the language I'm using) title, or icon emotion description.

thanks,

erik

André R.

Tuesday 20 April 2010 5:07:50 am

ezoe is only tested with the extensions and buttons mentioned in ezoe.ini, to be able to enable that extension you'll have to merge emotions_dlg language strings to ezoeServerFunctions::i18n, which is the function that bridges translations in eZ Publish with the once you have in TinyMCE.

EDIT: But that won't help as this extensions add smily images to the content, and since these are not eZ Publish images, they are ignored by the xml parser and thus removed when you click publish / store.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Erik Weinmaster

Tuesday 20 April 2010 7:20:56 am

I don't understand why the emotions are removed when you click publish? The Emotions plugin is included in the 4.3 download (and 4.2 for that matter). I understand its up to individual people to customize the look and function of ezoe, but why is it stripped out in the end? Is this a bug in eZ Publish?

André R.

Monday 26 April 2010 9:43:24 am

No, ezxml does not understand images, only relations, and as long as the image miss a id="eZObject_<object_id>" attribute to a valid eZ object, it will be ignored.

One alternative would be to somehow map them to custom tags that have a "image_url" custom attribute on them, and the custom tag is defined as IsInline[<custom_tag_name>]=image in content.ini

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 10:34:01
Script start
Timing: Jan 18 2025 10:34:01
Module start 'content'
Timing: Jan 18 2025 10:34:01
Module end 'content'
Timing: Jan 18 2025 10:34:01
Script end

Main resources:

Total runtime0.2098 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.8594180.8125
Module start 'content' 0.00620.0058 768.671997.8359
Module end 'content' 0.01200.1977 866.5078526.2500
Script end 0.2098  1,392.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.6745200.0002
Check MTime0.00140.6605200.0001
Mysql Total
Database connection0.00070.350710.0007
Mysqli_queries0.160476.44971410.0011
Looping result0.00200.93711390.0000
Template Total0.197394.010.1973
Template load0.00080.398810.0008
Template processing0.196593.629910.1965
Override
Cache load0.00060.262610.0006
Sytem overhead
Fetch class attribute can translate value0.00080.397910.0008
XML
Image XML parsing0.00080.368910.0008
General
dbfile0.00301.4069200.0001
String conversion0.00000.002830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs