Keyarn
Graham My question is asuming i replace it with the an of the number you showed me without pasting the code will it work?
Graham
Keyarn no you can change it to one of the numbers I listed not 'any number'
as for the code its what I use for debugging it's just a tool to help when creating templates
use it or not it's up to you
Keyarn
Graham Xo you mean i should past the above code in my forum twig? Or i should just just change de number to any number and it will work
Graham
Keyarn It is in 16 32 64 128 and 150 just change the number
{{avatar_src}} is set within the post_view routine that outputs the post so it changes constantly for each avatar on the page and has no value outside that routine (except maybe the last avatar from the array ) and does not indicate the avatars of online users
Keyarn
Graham ok sir but what of dis
{{avarta_src}}
or post.author.avatars[64]
Copy code plz will it work? Because that profile.avatars [16] is very small and if i increase de with or de length then it wont look brighter again and i want it to be bright plz sir elp me
Graham
Keyarn The class would have to be defined within the twig for it to work
and it will only work when a forum function is on the page
the value also needs to be wrapped in {{...}}
.ford {background-image : url( {{ profile.avatars[16] }} ); background-repeat : no-repeat; background-position : right bottom; }
Copy code Then just add the class to the element
Keyarn
Graham Sir plz will dis work?
.ford {background-image : url( profile.avatars[16] ); background-repeat : no-repeat; background-position : right bottom; }
Copy code asin i want to use the profile icon as background somewhere plz sir i want to know
Keyarn
Graham Ok you mean it will not work or what
Graham
Keyarn it may be possible to convert part of it but not all
xtscript does not have the equivalent of some of the javascript
Keyarn
Graham But sir is there any way to code the above javascript to xtscript. Plz i want to keep it away from source code viewers plz teach me sir