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.

comment removal

2

Comments

  • same bug error : no message (in a javascript alert) and the comment are still in the count but when refreshing, the comment is removed
  • Was the comment whispered?
  • euh i dont active the whisper so, ill try :)
  • not whispered i activate this option, tried again same error but it seem remove, even in the database
  • edited August 2006
    Mine wasn't working either, when choosing delete it would just jump to the top of the page. No error and nothing was removed. After deactivating, deleting and then reinstalling the latest version it still just jumps to the top of the page and nothing happens. I've checked permissions etc. Even hide seems to be responding weird. It just sits there and never responds unless I completely reload the page. I'm not sure what is going on.
  • I think I may see what the matter could be for your error, sabina. I managed to hardcode one of the table names in, in lower case, contrary to the real db name, which is in upper case. Windows dosn't give a crap about the table case, but I seem to remember that unix-based servers do. Could you give it another whirl?

    As for your problems, metacode, it sounds almost like you've got javascript disabled or something. When it jumps to the beginning of the page, do you see a '#' added to the url (or maybe instead of an #Item_x)? If you do it definitely means the js isn't executing. What browser were you using, and are you sure js isn't disabled?
  • same problem as METACODE ...

    if i remove the # in the link, the confirmation pops up. an if i click ok, nothing happens!
  • @SirNot - I'm using Safari 2.0.4 and JS is enabled (all other ajax stuff works fine). I also tried and got the same behavior in FireFox 1.5.0.6. The link in the status bar shows # only without an item id.
  • Could you try it again now and see if it works?
  • now it works ... but only without the #

    here:

    '<a href="" id="RmComment_'.$C->CommentID.'" onclick="if(confirm(\''
  • SirNot it's working ! you're my hero =) tx :)
  • Thanks STE7130 for your help, and I'm glad it's finally working. I've added your change to the extension.
  • Woohoo!
  • btw, the comment are still count even when its removed
  • I changed the method it decrement comments, so now does it work? How about the latest comment information (ie. last comment author, time), is that still up-to-date?
  • SirNot im sorry i just realized that the first comment is the message in the discussion everything work just fine thank you so much for your help :)
  • Working fine now after reinstalling. Thanks for sticking with this SirNot, your efforts are greatly appreciated.
  • Sirnot, you're going to hate me for this, but don't decrement the number of comments in a discussion when hidden comments are deleted.

    I now have a discussion with -2 comments in it.
  • Oops, sorry. I didn't know that hidden comments were so thoroughly removed from sight. Does it work properly know?

    (by the way, I can't seem to view hidden comments in my installation, is this a bug, or is my installation just old/screwed up?)
  • Do you have this option enable in your "forum preferences" (account page)? It is off by default.
This discussion has been closed.