Hi, hope this is going to be an exciting extension, but I get this error after installing LiveDiscussions
Notice: Undefined variable: AccountUserID in /vanilla/installation/extensions/LiveDiscussions/default.php on line 89
any clue?
I get this error with Firebug on the discussion page: B is not a function
emptyFunction(a#LDLink javascript:void(0);, 0)prototype.js (line 1)
emptyFunction(li, undefined)prototype.js (line 1)
e()mootools.js (line 1)
AttachLink()live.js (line 57)
(no name)()live.js (line 289)
e()mootools.js (line 1)
e(undefined)mootools.js (line 1)
e(function())mootools.js (line 1)
e("domready", undefined, undefined)mootools.js (line 1)
e()mootools.js (line 1)
emptyFunction()prototype.js (line 1)
[Break on this error] var Prototype={Version:"1.5.0",BrowserFeatures:{XPath:!!document.evaluate},Scrip...
Looks like prototype's being added to the header by an extension. Prototype is incompatible with Mootools. There's no easy way of fixing this that I know of other than re-writing the javascript of the incompatible extension.
Argh... I've found the culprit, and it's Discussion Tags. I definitely can't stop using this extension for the forum on which I installed Live Discussion, and javascript is a foreign language to me
That would be pretty awesome, since this extension badly needs some updates in my opinion, especially role-based tag using permissions and a way to delete tags from the database without having to use PHPMyAdmin.
I was just going to re-write the javascript to use the Mootools framework instead of Prototype. But if the extension needs some updates I will look into it.
You can go ahead and add a Mootools hack, but you may want to hold up on re-writing Discussion Tags. I'm already working on an alternative version that will add and change a few features...
Ah good, timefire, if you could give me a buzz when you release the new version if there are any changes to the javascript. In the meantime, I'll update Mootools to provide an alternative javascript file for Discussion Tags at its present state.
Version 1.5 of Mootools is now compatible with Discussion Tags version 0.3.1
If you have no other prototype-using extensions then Live Discussions should now work. It's very layout-specific though (as is most javascript) so theme or style changes may be a problem. As long as the core functionality works though, I'm happy. It is by no means complete at the moment and better functionality (such as better theme support) will definitely be added in the future once I start getting some feedback.
I get these errors from Firebug: Class is not a constructor
[Break on this error] UpdateDiscussion: function(el, updt, Prepend) {
live.js (line 236)
LiveDiscussion has no properties
[Break on this error] LiveDiscussion.Page = 'index';
this looks great, i just have one question. where can i adjust where the 'live discussions' header option appears in the panel? i looked through each of the files but can't seem to find the code anywhere. i'm no addon coder though so perhaps i missed it.
@Gauzy: The link is added dynamically via Javascript so you won't find it by looking through the PHP code.
@Ø: It looks like prototype and scriptaculous are still being added to the head for some reason. Have you got Mootools 1.5 installed? There doesn't seem to be any Mootools javascript files at all...
Comments
B is not a function emptyFunction(a#LDLink javascript:void(0);, 0)prototype.js (line 1) emptyFunction(li, undefined)prototype.js (line 1) e()mootools.js (line 1) AttachLink()live.js (line 57) (no name)()live.js (line 289) e()mootools.js (line 1) e(undefined)mootools.js (line 1) e(function())mootools.js (line 1) e("domready", undefined, undefined)mootools.js (line 1) e()mootools.js (line 1) emptyFunction()prototype.js (line 1) [Break on this error] var Prototype={Version:"1.5.0",BrowserFeatures:{XPath:!!document.evaluate},Scrip...
But I'm not sure it's an easy task...
Class is not a constructor [Break on this error] UpdateDiscussion: function(el, updt, Prepend) { live.js (line 236) LiveDiscussion has no properties [Break on this error] LiveDiscussion.Page = 'index';
<script src="/js/global.js" type="text/javascript"></script> <script src="/js/vanilla.js" type="text/javascript"></script> <script src="/js/ajax.js" type="text/javascript"></script> <script src="/js/ac.js" type="text/javascript"></script> <script src="/js/prototype.js" type="text/javascript"></script> <script src="/js/scriptaculous.js" type="text/javascript"></script> <script src="http://www.uberclub.org/js/builder.js" type="text/javascript"></script> <script src="http://www.uberclub.org/js/effects.js" type="text/javascript"></script> <script src="http://www.uberclub.org/js/dragdrop.js" type="text/javascript"></script> <script src="http://www.uberclub.org/js/controls.js" type="text/javascript"></script> <script src="http://www.uberclub.org/js/slider.js" type="text/javascript"></script> <script src="/extensions/DiscussionTags/functions.js" type="text/javascript"></script> <script src="/extensions/DiscussionTags/ac.js" type="text/javascript"></script> <script src="/extensions/LiveDiscussions/live.js" type="text/javascript"></script> <script charset="utf-8" type="text/javascript" src="http://feeds.feedburner.com/~s/uberclub-discussions?i=POST-URL-HERE"></script> <script src="http://feeds.feedburner.com/~d/static/site-tracker.js" charset="utf-8" type="text/javascript"></script> <script type="text/javascript">
The last one refers to Live Discussions.