embedding swf in drupal 7? - drupal

I need to embed swf generated from fusionchart to my drupal 7 node. Since there is no D7 version of swftools, I guess I have to use swfobject javascrpit library.
My question is, how can I use it with fusionchart to display graphs...??

There is a Drupal Module that allows you to integrate FusionCharts.
http://drupal.org/project/fusioncharts
Otherwise, swfobject is already included in the latest version of FusionCharts JavaScript Library. Including FusionCharts.js provides you with all the necessary items required to render FusionCharts.

Related

Is there a way to reuse the built-in HTML editor in Cofoundry

I would like to embed Cofoundry's built-in administration interface visual editor in other custom non-admin pages. The idea is not to use any of the fancy attributes like [HTML], but rather be able to load the editor using low level JavaScript and HTML instead of installing yet another editor myself and use that.
I suppose it is a standard HTML editor, so given the URLs for it in Cofoundry, I assume it would be possible to use the editor's own standard documentation for embedding the editor.
So, question, which editor is it - and what are the built-in URLs (paths) to it's components?
As of v0.9 Cofoundry uses TinyMCE as the HTML editor. You'd be better off using your own build of the editor than linking to the Cofoundry source as it's liable to change.

How does harfbuzz support Mongolian layout?

I am working on a project. The UI is developed using QT, and Mongolian is needed to be displayed on the UI.But the Mongolian displayed on the UI is a single mongolian character.
QT's layout engine uses the harfbuzz library. There is no Mongolian related module in the harfbuzz source code.Does harfbuzz support Mongolian layout? If it doesn't,any other library can work?
Another,I found some message in help manual.
https://harfbuzz.github.io/opentype-shaping-models.html
["The Arabic shaping model supports Arabic, Mongolian, N'Ko, Syriac, and several other connected or cursive scripts." ]
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Yes because logic of Mongolian script was similar to Arabic that's why it is handled on the same code path.
But that is just a detail, clients shouldn't care about the way harfbuzz works and organized internally and if you have something that works in Windows or macOS shaper but not in HarfBuzz, or you just believe your expectations is what should a shaper do, just file a bug about it in HarfBuzz repo.
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Not differently from creating a text render for any other script which is the point of creating unified shapers. Maybe libraqm, works on top of HarfBuzz, can provide what you need eventually, I remember it had supporting for top to bottom writing mode also, have a look it at I suggest.
Thanks!

Can I have customized versions of boostrap 3 in the same site?

I downloaded a customized version of bootstrap 3 from the web (I changed the number of columns to 7), but my website uses zf2 which comes packaged with bootstrap 3. How can I have a page of my website use this customized version and have the rest of the site use the standard build?
Will I have to do something with LESS? I'm just unsure of how this would work or if it can work at all.
I tagged this with zf2 because that is my specific use case, but this is more a general boostrap, css question.
If you only want ONE page to use it, why not just output the customized Bootstrap CSS files on that one page, and the standard CSS files on everything else?
No, since both versions of bootstrap use the same class names, you can not use multiple instances of bootstrap on the same page.

To add a Java script file in a customize feature in drupal

i have create a customize feature in open atrium. now i have to implement the a javascript file like mindmap in that customise feature. how can this possible to add in the open atrium feature.
i have completed the feature using the book module of the open atrium. Now i have to change only the text area in to mindmap.how can it implemented in the feature.plz help me.
You are using the open atrium custom feature and want add a js file then you can follow the build a feature link https://community.openatrium.com/documentation-en/node/449
and then read the drupal_add_js function in the link http://drupal.org/node/304255.
You want to use drupal_add_js() in a custom module or theme depending on what you are making. If it is a one off site just add it to your theme. If youre trying to fix the moduel add it directly to the upstream module. If youre augmenting the module for your own purposes add it to a new helper module so that you can upgrade that module in the future without concerns of losig your work.
http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_js/6

How to create a QT plugin that customizes UI?

We would want the users to be able to optionally customize our QT applications. So if they would want to create their own theme for our applications, all they have to do is load their own CSS file.
Do we really need to create a plugin to be able to do that? If yes, could somebody give me the basic steps/ or a jump start on how to do it? If no, are there features in QT that I need to know to be able to do that without creating a plugin?
I have a Jabber instant messenger which is plugin based and written in Qt. It includes a style plugin that does exactly what you describe. The source for that plugin is here:
https://github.com/sje397/saje/tree/master/plugins/styles/
(Note: this is a plugin for my application - not a 'Qt style plugin')
Basically all you need to do is load a style sheet and call QApplication::setStyleSheet:
QFile f("filename");
if(f.open(QIODevice::ReadOnly)) {
qApp->setStyleSheet(f.readAll());
}
An example of a valid style sheet is here. Note that it is for my app, so includes some of my own class names etc.

Resources