html - Embedding a Dynamic Map into Php -


my name chris , first question.

i having issues trying figure out how embed minecraft server dynamic map php.

the map 209.105.236.244:8123

the code in trying embed is

<div class="span6"> <?php if( protectthis("1, 2") ) : ?>     <h1 class="page-header"><?php _e('you have ability view map'); ?></h1>     <p><?php _e('you able see content if have <span class="label label-info">special</span> user level. ')?></p> <?php else : ?>     <div class="alert alert-warning"><?php _e(' ***dynamic map here***'); ?></div> <?php endif; ?> </div> 

i not able figure out how make map display here instead of them going url. :3

if can provide me solution or jumping off point on how go this, amazing! please , thank :)

i'm assuming intend call javascript based on page source @ 209.105.236.244:8123

you forgo echo <?php _e(' ***dynamic map here***'); ?> , include map related scripts here did other html tags. should still fall within "else" condition these scripts called if requirements met.

in case, time protectthis("1, 2") not true, map should displayed.

<?php if( protectthis("1, 2") ) : ?> <h1 class="page-header"><?php _e('you have ability view map'); ?></h1> <p><?php _e('you able see content if have <span class="label label-info">special</span> user level. ')?></p> <?php else : ?> <div class="alert alert-warning"> <script type="text/javascript" src="js/script.js"></script> <script type="text/javascript" src="js/script.json.js"></script> </div> <?php endif; ?> 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -