Hello,
I wanted to have a place holder image for the RPG image, since this field is empty is nothing is put in and I find it prettier if there is an image there.
I looked around and figured this could be accomplished with the usage of a JS script. I am, however, very inexperienced with these codes and tried something but it didn't work. Sadly.
So this is the script I tried, I put it in the template of the profile (templates > profile > profile_view_body)
Thanks in advance ^^
Greetings,
Hert
I wanted to have a place holder image for the RPG image, since this field is empty is nothing is put in and I find it prettier if there is an image there.
I looked around and figured this could be accomplished with the usage of a JS script. I am, however, very inexperienced with these codes and tried something but it didn't work. Sadly.
So this is the script I tried, I put it in the template of the profile (templates > profile > profile_view_body)
- Code:
<script type="text/javascript">
//<![CDATA[
if(typeof(_userdata) == "undefined")
var _userdata = new Object();
_userdata["image"] = "<img src="http://placehold.it/462x65" />";
//]]>
</script>
- Code:
<td width="462px"><div id="image">{RPG_IMAGE}</div></td>
Thanks in advance ^^
Greetings,
Hert