<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Script rotazione link adsense style]]></title><description><![CDATA[<p dir="auto">Conoscete uno script per creare una rotazione di link simile ad adsense?</p>
<p dir="auto">Ciaoooo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/topic/16052/script-rotazione-link-adsense-style</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 21:03:43 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/16052.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Sep 2006 06:33:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script rotazione link adsense style on Tue, 05 Sep 2006 10:46:51 GMT]]></title><description><![CDATA[<p dir="auto">Mi rispondo da solo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /> l'ho trovato, ma non funziona e non capisco perche' <a href="http://www.rss-wiki.com/scripts.php" rel="nofollow ugc">http://www.rss-wiki.com/scripts.php</a></p>
<p dir="auto">Consiste in 3 files:<br />
1count (che conta le visualizzazioni ed ha permesso chmod777)<br />
2link (che contiene i link)<br />
4ad.php (che sceglie e mostra i link)</p>
<p dir="auto">Questo e' il file 4ad.php</p>
<pre><code class="language-php">&lt;?php

    $ad = file('2link');            //get the ads
    $count = file_get_contents('1count');    //get the current ad to display

    //just put them in their own vars for simplicity
    //two ads for 468x60 banner - $a to $d for ad1 and $f to $i for ad2
    $a = $ad[$count+0];    //title
    $b = $ad[$count+1];    //description line 1
    $c = $ad[$count+2];    //description line 2
    $d = $ad[$count+3];    //URL

    $f = $ad[$count+5];    //title of ad2...
    $g = $ad[$count+6];
    $h = $ad[$count+7];
    $i = $ad[$count+8];

    $k = $ad[$count+10];    //title
    $l = $ad[$count+11];    //description line 1
    $m = $ad[$count+12];    //description line 2
    $n = $ad[$count+13];    //URL

    $p = $ad[$count+15];    //title of ad2...
    $q = $ad[$count+16];
    $r = $ad[$count+17];
    $s = $ad[$count+18];

?&gt;

    &lt;style type="text/css"&gt;

    a.foot {
        color: #000;
        text-decoration: none;
    }
    b {

        font-size: 13px;
        font-family: arial,geneva,helvetica,sans-serif;
        text-decoration: none;
    }
    table {
        background: #fff;
        font-family: arial,geneva,helvetica,sans-serif;
        font-size: 12px;
        width: 728px;
        height: 90px;
        border: 0px solid color:#fff;
    }
    td {
        vertical-align: top;
        border: 0px solid color: #fff;
    }

    td.foot {
        background: #fff;
        font-size: 10px;
        font-weight : bolder;
        color: #000;
        height: 1px;
        text-decoration : none;
        text-indent : 0px;
        line-height : 10px;
    }
    &lt;/style&gt;
&lt;?

    //display the banner
    echo "&lt;table&gt;&lt;tr&gt;&lt;td width=\"25%\"&gt;";
        echo '&lt;a href="'.$d.'" target="_blank"&gt;&lt;b&gt;'.$a.'&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;';
        echo $b.' ';
        echo $c;
    echo "&lt;/td&gt;&lt;td width=\"25%\"&gt;";
        echo '&lt;a href="'.$i.'" target="_blank"&gt;&lt;b&gt;'.$f.'&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;';
        echo $g.' ';
        echo $h;
    echo "&lt;/td&gt;&lt;td width=\"25%\"&gt;";
        echo '&lt;a href="'.$n.'" target="_blank"&gt;&lt;b&gt;'.$k.'&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;';
        echo $l.' ';
        echo $m;
    echo "&lt;/td&gt;&lt;td width=\"25%\"&gt;";
        echo '&lt;a href="'.$s.'" target="_blank"&gt;&lt;b&gt;'.$p.'&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;';
        echo $q.' ';
        echo $r;
    echo "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=\"2\" class=\"foot\"&gt;
            &lt;a class=\"foot\" href=\"javascript:location.reload(true)\"&gt;Refresh Links&lt;/a&gt;&lt;/td&gt;
        &lt;td colspan=\"2\" class=\"foot\" align=\"right\"&gt;
            &lt;a class=\"foot\" href=\"pubblicita.php\"&gt;Pubblicità&lt;/a&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;&lt;/table&gt;";

    //update the count file so we get new ads each time the page loads
    if (count($ad) &lt;= $count+20)
        file_put_contents('1count', 0); //end of list reset back to start, not randon sequence
    else
        file_put_contents('1count', $count+20);

    /* Note the file format of 2link is paramount or data will not be in sync
      really did not want to have to create a database to show a few links */
?&gt;
</code></pre>
<p dir="auto">A non funzionare e' il file 1count che rimane comunque sepre fermo a 0, voi vedete un'errore nel file 4ad.php ?</p>
<p dir="auto">Ciaooooo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/364676</link><guid isPermaLink="true">https://dev.connect.gt/post/364676</guid><dc:creator><![CDATA[sawadee]]></dc:creator><pubDate>Tue, 05 Sep 2006 10:46:51 GMT</pubDate></item></channel></rss>