Sprite() function in Vanilla 2.0.18.8
I am trying to adapt the me module from Vanilla 2.1b2 to Vanilla 2.0.18.8. The me.php file has a function in it that seems not to exist in my version: Sprite(). Is this an added core function? I'm a newbie to Vanilla, so I don't know what's core and what's not. IS there some sort of codex somewhere?
Best Answers
-
peregrine MVP
check out the wiki functions should be mapped there
or you can do it yourself
in your version of vanilla
grep Sprite *
or get notepad++
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5 -
x00 MVP
check
library/functions.*
files. Vanilla has very few standalone functions, as in most OO. Functions like this are convenience functions that don't fit anywhere else. Common operations that are otherwise tedious.you would expect this to be in
functions.render.php
if you what to predefine a function you can use
function_exists
e.g.if (!function_exists('Sprite')) { function Sprite($Name, $Type = 'Sprite') { return '<span class="'.$Type.' '.$Name.'"></span>'; } }
This might be in there becuase it can be overridden easily.
grep is your friend.
5
Answers
check out the wiki functions should be mapped there
or you can do it yourself
in your version of vanilla
grep Sprite *
or get notepad++
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
check
library/functions.*
files. Vanilla has very few standalone functions, as in most OO. Functions like this are convenience functions that don't fit anywhere else. Common operations that are otherwise tedious.you would expect this to be in
functions.render.php
if you what to predefine a function you can use
function_exists
e.g.This might be in there becuase it can be overridden easily.
grep is your friend.