Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Live Discussions

edited March 2008 in Vanilla 1.0 Help
Live Discussions


  • 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?
  • Uploaded version 1.1 of Live Discussions.
  • Try the new version. Thanks for the bug report.
  • Sadly I can't test it right now... Does it work with Discussion Overview?
  • I have no idea, probably not - at the moment it has a very specific usage. I'm sure it could be made to work with Discussion Overview though.
  • 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 :(
  • Depending on how complicated the extension is, I can probably write a Mootools-compatible version.
  • 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.

    But I'm not sure it's an easy task...
  • 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...
  • Guys, you rock :)
  • 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';
  • That would suggest that mootools isn't being added properly. I'm not quite sure why. What scripts are in your header?
  • 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.
  • Tons of stuff:
    <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="" type="text/javascript"></script> <script src="" type="text/javascript"></script> <script src="" type="text/javascript"></script> <script src="" type="text/javascript"></script> <script src="" 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=""></script> <script src="" charset="utf-8" type="text/javascript"></script> <script type="text/javascript">

    The last one refers to Live Discussions.
  • @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...
Sign In or Register to comment.