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 10

CurtisOdenGpunzetPewPewKericgillette422 +5 guests

Wrong folder

This discussion is related to the Emoticons addon.
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

  • Posts: 148
    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.
  • instead of
    // return ' '.$EmoticonMasked.' ';
    this:
    // return ' '.$EmoticonMasked.' ';

    ???
  • Posts: 164
    try "(Path_Plugins) .DS. Emoticons .DS. images .DS. $img"
  • no doesn´t work ...
  • Posts: 16
    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)
  • Posts: 697
    @emkay that worked, thanks for the tip
  • TimTim
    Posts: 1,573
    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 Senior Developer [GitHub, Twitter, About.me]

  • @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.