Page 1 of 1

how do i add image?

Posted: Thu Mar 13, 2014 4:30 pm
by KaL
ok this is what i got so far:

1) create map module

2) this is the only line i got:

echo "<center><img src='{$webBaseDir}modules/map/home.jpg'></center><br>";

3) i added .htaccess file:

<FilesMatch "\.(png|jpg|gif|js|css)$">
allow from all
</FilesMatch>



i ran it and all i see is a broken image. i tested the image by uploading it to the location module inside the game, it works! But how do i get it to work inside my map module?

And how do i get it to work when using the Enable text editor?

Re: how do i add image?

Posted: Thu Mar 13, 2014 6:12 pm
by a_bertrand

Re: how do i add image?

Posted: Thu Mar 13, 2014 8:25 pm
by KaL
Is that new on wiki? Kool! That Should Be easier. I love your engine so much, I wonder if I can use it for something instead of a game. For example: shopping cart, etc...

Re: how do i add image?

Posted: Fri Mar 14, 2014 4:50 am
by a_bertrand
It was there since I added the feature (long time ago) inside the engine. And yes you could use the engine for other things than a game ;)