Author |
Message |
zacklk
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 06, 2010
Posts: 79
|
Posted:
Wed Sep 08, 2010 4:42 am |
|
Hey guys i tried to add wibiya toolbar to my RN 2.4 site. but it didnt work out. here is what i did
created a file /includes/addons/head-Widiya.php with the flowing code
Code:<?php
echo '<script src="http://cdn.wibiya.com/Toolbars/dir_0529/Toolbar_529706/Loader_529706.js" type="text/javascript"></script>';
?>
|
What did i do wrong?
if i add this to body toolbar start to work. but light box and almost all other Jquery scripts stop working
/includes/addons/body-Widiya.php
Code:<?php
$bodyHTML = '
<script src="http://cdn.wibiya.com/Toolbars/dir_0529/Toolbar_529706/Loader_529706.js" type="text/javascript"></script>
';
if (is_array($bodyJS) and function_exists('addJSToBody')) addJSToBody($bodyHTML, 'inline');
else echo $bodyHTML."\n";
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Wed Sep 08, 2010 5:48 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Wed Sep 08, 2010 10:01 am |
|
zacklk, you must use addJSToHead in the top script as you used addJSToBody in the second. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
zacklk
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 08, 2010 10:08 am |
|
Palbin wrote: | zacklk, you must use addJSToHead in the top script as you used addJSToBody in the second. | tnx palbin. so the same thing i have to change addJSToBody. is it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Wed Sep 08, 2010 11:27 am |
|
From what I can tell by looking at the site, it needs to be in the body, so the includes/addons/body-Widiya.php approach should work. When I tested it, it appears to be a problem with the CSS (maybe duplicate class names). I noticed that it installs 2 CSS classes:
http://10.14.122.68:15871/en/Default/blockStyle.css
http://s7.addthis.com/static/r07/widget43.css
That is likely the problem. The jQuery stuff still works (e.g. nukeNAV), but doesn't look like it should, at least in FireFox. As far as I know, there really isn't anyway to change this, since the JS loads the CSS after the theme's CSS. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
zacklk
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 08, 2010 8:12 pm |
|
kguske wrote: | From what I can tell by looking at the site, it needs to be in the body, so the includes/addons/body-Widiya.php approach should work. When I tested it, it appears to be a problem with the CSS (maybe duplicate class names). I noticed that it installs 2 CSS classes:
http://10.14.122.68:15871/en/Default/blockStyle.css
http://s7.addthis.com/static/r07/widget43.css
That is likely the problem. The jQuery stuff still works (e.g. nukeNAV), but doesn't look like it should, at least in FireFox. As far as I know, there really isn't anyway to change this, since the JS loads the CSS after the theme's CSS. |
Thanks for the clarification. guess ill stay with meebo. thank again for all you help guys. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
luckson
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 02, 2008
Posts: 22
Location: NaGaLim
|
Posted:
Sun Dec 12, 2010 6:08 am |
|
if this is customized properly for ravennuke it'll be another excellent addition! I am using Wibiya too but just embeding the codes into my theme file. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 12, 2010 7:26 am |
|
From what I can tell, there is not currently a way to customize it for RavenNuke as it appears to use CSS that conflicts with various themes. The best way would be for Widiya's CSS classes to use unique names (yes, the themes should, too, so you could "customize" the CSS class names in your theme to avoid conflicts). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|