Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Bad variable call in template Sep 3rd, 2014 at 3:38am Mark & QuoteQuote Not sure this is the best way to fix it, but to highlight what definitely doesn't work Code Index: cgi-bin/yabb2/Templates/default/Post.template =================================================================== --- cgi-bin/yabb2/Templates/default/Post.template (revision 1560) +++ cgi-bin/yabb2/Templates/default/Post.template (working copy) @@ -173,7 +173,7 @@ {yabb smilieslist} </select></td> </tr><tr> - <td class="center h_70px"><img name="smiliextra_image" src="'+smilieurl[0]+'" alt="" onclick="javascript: Smiliextra();" class="cursor"></td> + <td class="center h_70px"><img name="smiliextra_image" src="$defaultimagesdir/$SmilieURL[0]" alt="" onclick="javascript: Smiliextra();" class="cursor"></td> </tr><tr> <td class="center h_15px"><span class="small"><a href="javascript: smiliewin();">$post_smiltxt{'17'}</a></span></td> </tr></table> GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Bad variable call in template Reply #1 - Sep 3rd, 2014 at 4:48am Mark & QuoteQuote That should work. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Bad variable call in template Reply #2 - Sep 3rd, 2014 at 9:27am Mark & QuoteQuote Dandello wrote on Sep 3rd, 2014 at 4:48am:That should work. I don't trust in anything I write in the middle of the night, because next morning I have no idea whatsoever what it was supposed to do I just check if you did any changes before committing and comment if I see something that doesn't look right GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Bad variable call in template Reply #3 - Sep 3rd, 2014 at 2:46pm Mark & QuoteQuote Moved the src call to just after img and made it $imagesdir instead of $defaultimagesdir. YaBB has a function that checks on image paths and $imagesdir helps trigger it - it should work on Smilies, too. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged