Please login or register to participate.
Discussion
.
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
Replies (11)
dhiraj Mar 25, 2010 11:12 AM
Hmm... interesting! :)

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.
jpspereira Mar 25, 2010 02:02 PM
Thx :)

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.
jpspereira Mar 25, 2010 07:31 PM
How can I create sub-folders inside ubify_cyninv2theme_custom_templates on ZMI?
I had tried creating a folder in root and then cut to inside folder... but doesn't work. :(

Any ideas?
eastxing Apr 08, 2010 04:34 AM
Hi,guys!
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
jpspereira Apr 13, 2010 05:13 PM
How can I use your integration? I had installed anz.ijabbar as documented instructions but doesn't appear at my Cyn.in. Could I forget something? Thx.

Best regards.
eastxing May 07, 2010 05:06 AM
Hi, there
     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
jpspereira Aug 11, 2010 01:26 PM
Hi!

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
checho Aug 17, 2010 01:52 AM
Do you get something? I really like this feature ;)
eastxing Sep 30, 2010 09:10 AM
Hi, guys
      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
dhiraj Sep 30, 2010 11:00 AM
Hmm.., so that was the missing piece of the puzzle!? Great that you got it working, keep up the good work! :)

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>
andrebrown Nov 05, 2010 09:21 AM
I would like to modify anz.ijabbar to use my own openfire server. Can you help with that please?
 
Loading