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 question
This discussion has been closed.
Comments
look in setting.php (or in icons extension maybe) for this wrong path and change it
And I must tell you that rebuilding does not corrects this issue.
If you logout of the Vanilla forum then sign back in does it work correctly? Maybe my solution was just a fluke?
I installed Vanillacons. I also thought that putting a couple of extra icon folders in there would be good (add another couple of categories of images). After a bit of tinkering, and getting rid of the new folders and images and getting back to the original ones, I can see the icons in each category but I cannot add them to my comments. They show up in the Add Your Comments box before I post, but when I post they are not there. Is there a problem between FCKeditor and Vanillacons? I have FCKeditor added to my extensions, the thought just occurred to me that it might be interfering with Vanillacons.
Did anyone find the fix for this? Thanks for your help.
Edited to say: I found the fix. I had FCKeditor installed and it did not work with Vanillacons. I unplugged FCKeditor and now Vanillacons work well. I even installed my own folder of .gifs for my forumites to play with. A friend of mine told me that Vanillacons might not work with something like FCKeditor, sure enough that was the case.
Posted: Thursday, 8 February 2007 at 7:40PM (AEDT)
I figured it was in the default.php in this portion of the code, specifically where it's generating the HTML for the specific .gif file.:
function Rebuild() { $count = 0; $dircount = 0; $fh = fopen(dirname(__FILE__).'/smilies.js', 'w'); $fh2 = fopen(dirname(__FILE__).'/smilies.php', 'w'); $Smilies = "<?php\n"; $Output = "var arrSmilies = new Array();\n"; $SmiliesDir = $this->Context->Configuration["APPLICATION_PATH"] . $this->Context->Configuration["SMILIES_PATH"]; foreach( glob($SmiliesDir.'*', GLOB_ONLYDIR) as $dir ) { $dircount++; $Output .= "\narrSmilies[\"".basename($dir)."\"] = new Array();\n"; $i = 0; foreach( glob($dir.'/*') as $file ) { $link = $this->GetSmilieUrl(basename($file)); $imgurl = $this->GetSmilieImg(basename($dir), basename($file)); $Output .= "arrSmilies[\"".basename($dir)."\"][".$i."] = '"; $Output .= "<span onclick=\"insertSmilie(\'".$link."\');\" class=\"VanillaconsLink\"><img src=\"".$imgurl."\" alt=\"\" /></span>"; $Output .= "';\n"; $Smilies .= "\$Smilies[\"".$this->GetSmilieUrl(basename($file))."\"] = \"".$this->GetSmilieImg(basename($dir), basename($file))."\";\n"; $i++; $count++; } }
I tried inserting HTML non breaking spaces before the span, adding another span with the nbsp but no luck... Am I in the right place here...?
maybe you should look at the insertSmilie javascript function