<?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://connect.gt/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=pjkabbjvlkk" class="not-responsive emoji emoji-customizations emoji--ciauz" title=":ciauz:" alt=":ciauz:" /></p>
]]></description><link>https://connect.gt/topic/16052/script-rotazione-link-adsense-style</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 04:21:15 GMT</lastBuildDate><atom:link href="https://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://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=pjkabbjvlkk" class="not-responsive emoji emoji-android emoji--smile" 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<br />
[PHP]&lt;?php</p>
<pre><code>$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];
</code></pre>
<p dir="auto">?&gt;</p>
<pre><code>&lt;style type="text/css"&gt;

a.foot {
    color: <a class="plugin-hashtag-a" href="https://connect.gt/hashtags/000">#000</a>;
    text-decoration: none;
}
b {

    font-size: 13px;
    font-family: arial,geneva,helvetica,sans-serif;
    text-decoration: none;
}
table {
    background: <a class="plugin-hashtag-a" href="https://connect.gt/hashtags/fff">#fff</a>;
    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:;
}

td.foot {
    background:;
    font-size: 10px;
    font-weight : bolder;
    color:;
    height: 1px;
    text-decoration : none;
    text-indent : 0px;
    line-height : 10px;
}
&lt;/style&gt;
</code></pre>
<p dir="auto">&lt;?</p>
<pre><code>//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 */
</code></pre>
<p dir="auto">?&gt;[/PHP]</p>
<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://connect.gt/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=pjkabbjvlkk" class="not-responsive emoji emoji-customizations emoji--ciauz" title=":ciauz:" alt=":ciauz:" /></p>
]]></description><link>https://connect.gt/post/364676</link><guid isPermaLink="true">https://connect.gt/post/364676</guid><dc:creator><![CDATA[sawadee]]></dc:creator><pubDate>Tue, 05 Sep 2006 10:46:51 GMT</pubDate></item></channel></rss>