Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Wrong folder

This discussion is related to the Emoticons addon.
edited August 2010 in Vanilla 2.0 - 2.8
Hello, the links to the smileys are wrong, when you have the forum in a subfolder.
Esp. I have my Vanilla in http://www.domain.com/forum and it wants to display the smileys from here: http://www.domain.com/plugins/Emoticons/images/smile.gif not from http://www.domain.com/forum/plugins/Emoticons/images/smile.gif ...
Where do I have to change, to use the subfolder???

Comments

  • phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP
    Hi Boombatze,

    Strange, schouldn't be a problem. But try to open the file ~/Emoticons/default.php on look for line 227. There is an [img]-Tag with adressation.

    Try to put your direct URL inside as a workyaround.
    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
  • instead of
    // return ' '.$EmoticonMasked.' ';
    this:
    // return ' '.$EmoticonMasked.' ';

    ???
  • try "(Path_Plugins) .DS. Emoticons .DS. images .DS. $img"
  • no doesn´t work ...
  • the plugin uses Gdn::Config('Garden.WebRoot') which doesn't seem to be available per default install.

    Adding the following line to your /conf/config.php might help:
    $Configuration['Garden']['WebRoot'] = 'forums/';
    (assuming "forums" is the (sub-)directory your vanilla is installed in)
  • RaizeRaize vancouver ✭✭
    @emkay that worked, thanks for the tip
  • TimTim Operations Vanilla Staff
    We actually prefer that you using the built-in plugin convenience functions when building internal URLs. For an image to be served on the page, try:

    $ImgPath = $this->GetWebResource('images/'.$Img);

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • oliverraduneroliverraduner Contributing to Vanilla since 2010 Switzerland ✭✭
    @Boombatze @phreak @zodiacdm @emkay @Raize
    I fixed the Plugin by following the standards as described by @Tim. Either I missed that when making the initial release, or this feature has not been there then ;-)

    Anyway, it works now with the latest release of Vanilla (2.0.16) - probably even some older releases...:
    http://vanillaforums.org/addon/emoticons-plugin-1.3
Sign In or Register to comment.