I can't get this to work. It's giving me server errors that says something about settings.php but I only have default.php in the zipped file so I renamed setings to default and the error was gone but the webby chat is hidden and I can't find it anywhere. Chatango is better for now (until I can figure out webby chat).
this is cool and it works on my forum... BUT i get this error msg in people.php and a couple other php pages. So I removed it for now... How can I fix it?
Fatal error: Call to a member function on a non-object in /home/www/ava.eu.pn/extensions/webby_chat/default.php on line 106
add-on needs to ensure that it only tries to add a tab on pages where these are available. try replacing the last part of the code with this (added a little page check, unverified!)://////////////////////
if (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php'))) {
$Menu->AddTab("Chat", "", "javascript: __wbc_slide_chat_pane();");
$Head->AddString('<script language="JavaScript" type="text/javascript" >
var __ptw_s = document.location.href;
var __ptw_t = document.title;
var __ptw_suggest_user_name = "' . $Context->Session->User->Name . '";
var __ptw_force_guests = true;
var __ptw_disable_chat_button = true;
');
// add extra user defined variables
$Head->AddString(str_replace('\r\n', "\r\n", $Configuration['WEBBY_CHAT_EXTRAS']));
// end script
$Head->AddString("\r\n</script>");
// call chat
$Head->AddString('<script src="http://www.webbychat.com/chat_js/chat.php?src=vanilla" language="javascript" type="text/javascript"></script>');
};
?>
well... change this:if (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php'))) to if (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php','search.php','account.php'))) Pretty much you can add all pages to the array (list). If you have specific php pages for the light gallery (see address bar in your browser) you could add those too. Give it a try.
PS The author of this plugin should make the appropriate changes to the uploaded code (and I'm not sure there aren't more appropriate changes). As-is, the add-on is buggy.
Comments
Thanks
Dan
Fatal error: Call to a member function on a non-object in /home/www/ava.eu.pn/extensions/webby_chat/default.php on line 106
////////////////////// if (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php'))) { $Menu->AddTab("Chat", "", "javascript: __wbc_slide_chat_pane();"); $Head->AddString('<script language="JavaScript" type="text/javascript" > var __ptw_s = document.location.href; var __ptw_t = document.title; var __ptw_suggest_user_name = "' . $Context->Session->User->Name . '"; var __ptw_force_guests = true; var __ptw_disable_chat_button = true; '); // add extra user defined variables $Head->AddString(str_replace('\r\n', "\r\n", $Configuration['WEBBY_CHAT_EXTRAS'])); // end script $Head->AddString("\r\n</script>"); // call chat $Head->AddString('<script src="http://www.webbychat.com/chat_js/chat.php?src=vanilla" language="javascript" type="text/javascript"></script>'); }; ?>
Light gallery extension page
search.php
account.php
members extension page
can this be fixed?
if (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php')))
toif (in_array($Context->SelfUrl, array('index.php','comments.php','categories.php','search.php','account.php')))
Pretty much you can add all pages to the array (list). If you have specific php pages for the light gallery (see address bar in your browser) you could add those too. Give it a try.
PS The author of this plugin should make the appropriate changes to the uploaded code (and I'm not sure there aren't more appropriate changes). As-is, the add-on is buggy.
only the ones with short urls like search.php
Bugs: Custom Settings for WebbyChat don't work. The break the settings.php instead.
as a nugget in the footer spot with http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=283 than
using this silly add-on...