Topic: SAPE

Embed SAPE:

<?
if (! $ sape) {
             if (! defined ('_SAPE_USER')) {
                 define ('_SAPE_USER', '***');
             }
             require_once ($ _SERVER ['DOCUMENT_ROOT']. '/'. _SAPE_USER. '/ sape.php');
             $ sape = new SAPE_client ();
}
global $ sape;
$ link = $ sape-> return_links ();
if ($ link) {
   echo $ link;
}
?>

Create a snippet sape in index.template as

<? echo Snippet::get ('sape');?>

He does so, that after him there is nothing output.


What can be?

Re: SAPE

snippet: sape

<?php
echo 'some text here to test!';
?>

and code in template

<?php echo Snippet::get('sape');?>

will output:

some text here to test!

Monstra Loves You! Give some love back!

Re: SAPE

Ok. What problem in SAPE?

Re: SAPE

hm...

        <div>
           <?php echo Snippet::get('adsense') ;?>
        </div>
<script type="text/javascript"><!--
google_ad_client = "";
/* top only image */
google_ad_slot = "";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

thats also not working, no content after ad.

Re: SAPE

This

<script type="text/javascript"><!--
google_ad_client = "";
/* top only image */
google_ad_slot = "";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

must work at all ? are you shure ? I tested and it doesnt work at all in dumy html page.

Monstra Loves You! Give some love back!