how do i add image?
Posted: Thu Mar 13, 2014 4:30 pm
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?
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?