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.

Vanillacons & Transmogrifier Problems

edited December 2006 in Vanilla 1.0 Help
Don't know if this is a proper subject, but I'm having problems with adding smileys to the post form. I just need a small bar underneath the comment field listing 20 smiley images. On clicking on one of these images it should paste some smiley code within the comment field. Transmogrifier extension is installed to change this code (e.g. :cry:) to an image. I tried to modify Vanillacons extension to accomplish the goal of getting this smiley bar, but as I'm not good at php, javascript and all these things, I ran into difficulties. For some reason it's working for some images while others don't. And I don't know why. Is Vanillacons Extension maybe overkill for this purpose. I wouldn't need a big library. It's only these 20 smileys. Strange thing is, when clicking the images, the correct code is pasted in the comment field. It's also working correctly in the preview. But after saving, some images are shown while others have a wrong url like : <img src=" src="/images/emoticons/wink.gif" />

Comments

  • We fixed it on our own. :)

    Commented out some lines from "default.php" (VanillaCons) and it works.

    // Global StringFormatter # $VanillaconsFormatter = $Context->ObjectFactory->NewObject($Context, "VanillaconsFormatter"); # $VanillaconsFormatter->LoadSmilies($Smilies); # $Context->StringManipulator->AddGlobalManipulator("VanillaconsFormatter", $VanillaconsFormatter); }
  • I was messing around in Vanillacons earlier trying to learn a thing or two and spotted a minor typo at line 22 "succesfully" and "rebuilded" and changed them to "successfully" and "rebuilt". I also changed the Dictionary term to reflect the correction.

    So change line 22 from:$Context->Dictionary['VanillaconsRebuilded'] = 'The smilies have succesfully been rebuilded and are now ready to use.';to$Context->Dictionary['VanillaconsRebuilt'] = 'The smilies have successfully been rebuilt and are now ready to use.';

    And change line 187 from: <p class="Description">'.$this->Context->GetDefinition('VanillaconsRebuilded').'</p>to <p class="Description">'.$this->Context->GetDefinition('VanillaconsRebuilt').'</p>
This discussion has been closed.