Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Wed Sep 08, 2010 4:42 am Reply with quote

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";

?>
 
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Wed Sep 08, 2010 5:48 am Reply with quote

I would recommend that you have a read of the followig guidance.
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Wed Sep 08, 2010 10:01 am Reply with quote

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. 
View user's profile Send private message
zacklk
PostPosted: Wed Sep 08, 2010 10:08 am Reply with quote

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?
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Wed Sep 08, 2010 11:27 am Reply with quote

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:
Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login!

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 google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
zacklk
PostPosted: Wed Sep 08, 2010 8:12 pm Reply with quote

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:
Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login!

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.
 
luckson
New Member
New Member


Joined: Aug 02, 2008
Posts: 22
Location: NaGaLim

PostPosted: Sun Dec 12, 2010 6:08 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
kguske
PostPosted: Sun Dec 12, 2010 7:26 am Reply with quote

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).
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©