

jpspereira
Mar 24, 2010 08:55 PM
Hi!
I need to add some im messenger to my cynin.
I had installed ejabberd server and I'm trying to add iJab on main_template.pt.
But I'm having some issues... when I invoke iJab javascript from his folder, it seems that isn't found.
I have something like that:
<script type="text/javascript" language="javascript" src="ijab_config.js"></script> ---> it's found
<script type="text/javascript" language="javascript" src="ijab_i18n_en.js"></script> ----> it's found
<script type="text/javascript" language="javascript" src="ijab/ijab.nocache.js"></script> ----> it's not found
And yes... I have file and folder in write place.
Do you have any ideas?
Thanks
I need to add some im messenger to my cynin.
I had installed ejabberd server and I'm trying to add iJab on main_template.pt.
But I'm having some issues... when I invoke iJab javascript from his folder, it seems that isn't found.
I have something like that:
<script type="text/javascript" language="javascript" src="ijab_config.js"></script> ---> it's found
<script type="text/javascript" language="javascript" src="ijab_i18n_en.js"></script> ----> it's found
<script type="text/javascript" language="javascript" src="ijab/ijab.nocache.js"></script> ----> it's not found
And yes... I have file and folder in write place.
Do you have any ideas?
Thanks
Hmm... these JS files -> *where* have you uploaded them? Basically what could be happening is the skin folder is not finding the subfolders.
Try these approaches:
1. First try and actually call the URL for the JS file that's not loading in your browser directly, to see what error you're getting.
2. If you can put the 3rd file also in the same place where the other 2 files are working and loading from perhaps it would work? Basically eliminate the sub-folder if possible. There are several ways to make sub-folders work if indeed that is the problem (and it's not getting easily solved). You could try creating subfolders in the custom skin layer in portal_skins object in ZMI, for example, or create your own skin layer product, and so on.
iJab is an interesting project. Would love to see a working integration. Do let us know how it goes and discuss if you have any problems.
I'm working on it!
I had already tryed your first approach, but... the last JS has a own sub-folders, so, I can see it and connect to server, but doesn't anything... iJab layout, images... etc.
Now, i discovered ZMI :)... I'm new with Cynin. And I'm trying the second approach.
Do you know in which file can I create my sub-folders in my custom skin layer?
Many thx.
We'll keep in touch about a working integration.
I had tried creating a folder in root and then cut to inside folder... but doesn't work. :(
Any ideas?
I have released a plone product -- anz.ijabbar, integrate iJab into a plone site, you can download and try it from here: http://plone.org/products/anz.ijabbar
best regard
Best regards.
There is a bug in the first version of anz.ijabbar, please try its new version. Feel free to contact me if you have any problems to run it.
Best regards
I had installed the anz.ijabbar at my cynin... but... doesn't appear at my portal. Do you know about any kind of "special" configuration.
Best regards
Today I installed cyn.in myself and test anz.ijabbar in it, now I know why the chat bar do not display. cyn.in customized main_template.pt and delete original "Footer", but my chat bar viewlet is registered to it. You can modify like this to resolve it:
find cyn.in's main_template.pt and customize it;
find this line:
<div id="footer"><tal:block replace="structure provider:ubify.ubifycolophonmanager" /></div>
then add the following contents between <div id="footer">....</div>:
<div tal:replace="structure provider:plone.portalfooter" />
the last contents will like this:
<div id="footer">
<tal:block replace="structure provider:ubify.ubifycolophonmanager" />
<div tal:replace="structure provider:plone.portalfooter" />
</div>
that's it, open your browser and access any cyn.in page, you'll find a chat bar show under the page, you can talk with me now:)
Hope this help.
Best regards
eastxing
However, this is perhaps not going to look as good as it could, I think. I mean there will now be two footers at the bottom, yes? Instead it would be great if you could also register your viewlet for the ubify.ubifycolophonmanager provider, this would make it work for both products.
You should conditionally include the viewlet registration in your configure.zcml, this way the anz.ijabbar product will work in both normal plone as well as Cyn.in. Use the following zcml snippet as an example:
<configure zcml:condition="installed ubify.policy">
<browser:viewlet
name="your.viewlet.name"
manager="ubify.viewlets.browser.interfaces.IUbifyColophon"
class="your.viewlet.Class"
permission="zope2.View"
/>
</configure>