Embedding Zestoi data in any PHP file

From Adult Web Scripts Wiki

Jump to: navigation, search

say for example you just wanted a 6x2 grid of models from livejasmin and xlovecam and created a template called grid.tpl in smarty (or could be grid.php in php etc) that lays out the data for each grid cell - then that could be inserted in your own php page by:

  <?= zestoi('webcams', 'cols=6&rows=2&template=grid.tpl&site=livejasmin|xlovecam') ?>

the main site engine does require htaccess to be enabled - but the admin pages dont and you dont *need* to use them, i.e: you could display a profile in the template with something like /profile.php?site={$site}&name={$seoname} and then have a uber simple profile.php file that would display the data like:

using an external smary template like above (though ofc you'd want to sanitize $_GET first):

  <? echo zestoi('webcams', 
          "template=profile.tpl&site=$_GET[site]&seoname=$_GET[seoname]") ?>

or embed within the same file with something like:

  <?
    zestoi('webcams', "site=$_GET[site]&seoname=$_GET[seoname");
    echo "the model is called " . zestoi_val('name') . "<br>";
    echo "the model is " . zestoi_val('age') . " years old<br>"; 
  ?>