Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 8

CurtisOdenericgillettemcu_hqmimi59 +4 guests

Magic Plugin - Not Working For First Post In Discussion???

This discussion is related to the Magic addon.
This plugin appears to only work for comments added to already existing discussions and not for the content of the actual initial discussion. Has anyone else noticed this?

Comments

  • Posts: 18
    Not on the Magic Plugin but I have experienced the same behaviour using the Spoiler Plugin. The funny thing is it works AOK on my local install but not on my remote one. I'm thinking there's some conflict between plugins somewhere but I simply can't find it.
  • Oh, that's interesting. Ok, then I will dig around I guess. Thanks!
  • I'm having this problem with content that was imported into Vanilla 2.0.6 from Vanilla 1.1.1. Magic works great for new content. I'm looking into this too.
  • Any update on this? Please :)
  • Upgraded to the 2.0 and new posts work like a charm. Old posts that my users have created no love. Wahh Whaaa.

    Let us know the word on this.
  • Posts: 144
    See the link below to make corrections which will fix this plugin.
    http://vanillaforums.org/discussion/12204/magic-plugin-update/p1
  • Add:
    $Sender->EventArguments['Discussion']->Body = $this->MakeView($Sender->EventArguments['Discussion']->Body);
    After:
    $Sender->EventArguments['Comment']->Body = $this->MakeView($Sender->EventArguments['Comment']->Body);
    On line: 90
  • Posts: 36
    Did all the changes mentioned above but it still does not work on any post at all!! I am using Vanilla 2.0.

    Please help.

    Thank you.
  • Posts: 250
    The proper fix is to replace
    $Sender->EventArguments['Comment']->Body = $this->MakeView($Sender->EventArguments['Comment']->Body);
    With:
    $Sender->EventArguments[$Sender->EventArguments['Type']]->Body = $this->MakeView($Sender->EventArguments[$Sender->EventArguments['Type']]->Body);
  • Posts: 1
    TiGR said:

    The proper fix is to replace

    $Sender->EventArguments['Comment']->Body = $this->MakeView($Sender->EventArguments['Comment']->Body);
    With:
    $Sender->EventArguments[$Sender->EventArguments['Type']]->Body = $this->MakeView($Sender->EventArguments[$Sender->EventArguments['Type']]->Body);
    Thank TiGR! This fix works like a charm!
  • phudq90 said: The proper fix is to replace$Sender->EventArguments['Comment']->Body = $this->MakeView($Sender->EventArguments['Comment']->Body);

    With:$Sender->EventArguments[$Sender->EventArguments['Type']]->Body = $this->MakeView($Sender->EventArguments[$Sender->EventArguments['Type']]->Body);

    I had the opposite situation on my forum, (take this example: doctorsinfuga.it/forum/discussion/27/video-procedure#Item_3 ) the videos in the first post where showin fine and in the other posts they where showed smaller and with this string beside: type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">

    I've followed the instrucion above and now all videos in all posts are giving me this message...

Sign In or Register to comment.