0 Membros e 1 Visitante estão a ver este tópico.
[font=verdana][color=#0000ff][size=2][b]Adicionar em cima do Pesquisado[/b][/size][/color][/font][font=Verdana][size=78%][code]//Full Top 10 Moderntasarim.Com Translate Candidosa2 Support SMFPTif ($_GET['top']=='5'){$limit=5;$top=5;}elseif($_GET['top']=='10'){$limit=10;$top=10;}elseif($_GET['top']=='15'){$limit=15;$top=15;}elseif($_GET['top']=='20'){$limit=20;$top=20;}elseif($_GET['top']=='25'){$limit=25;$top=25;}else {$limit=10;$top=10;}echo'<table width="100%" cellpadding="0" cellspacing="2" style="font-size:11px;border:1px solid #ccc;padding:1px;"><tr><td class="catbg" width="100%" colspan="5"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="70%" align="left"><span style="color:#FFF;">Top';echo $top;echo'</span></td><td widht="30%" align="right" valign="top"><form action="', $scripturl, '" method="get" style="padding:0;margin: 0;"><select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);"><option value="?top=5">Resultado</option><option value="?top=5"> 5 Resultado</option><option value="?top=10">10 Resultado</option><option value="?top=15">15 Resultado</option><option value="?top=20">20 Resultado</option><option value="?top=25">25 Resultado</option></form></td></tr></table></td></tr><tr><td class="windowbg2" width="27%" align="left"><table class="windowbg" width="100%" cellpadding="0" cellspacing="2" style="margin-bottom:5px;"><tr><td width="100%" align="left" style="padding-left:5px;">Tópicos aleatórios</td></tr></table>';global $db_prefix;//Rasgele Konular$rasgelekonular=mysql_query("SELECT * FROM {$db_prefix}topics order by rand() limit $limit");while($rasgele=mysql_fetch_array($rasgelekonular)){$rasgelekonu=mysql_query("SELECT * FROM {$db_prefix}messages WHERE id_topic = ".$rasgele['id_topic']);while($rasgele2=mysql_fetch_array($rasgelekonu)){$rasgele2['subject'] = shorten_subject($rasgele2['subject'],32);echo '<table width="100%" cellpadding="0" cellspacing="0" style="padding-left:5px;"><tr><td width="100%" align="left">';echo '<img src="', $settings['images_url'], '/top10/rasgelek.gif" alt="" border="0" style="vertical-align:middle;margin-right:2px;" /><a href=', $scripturl, '?topic=';echo $rasgele2['id_topic'];echo ">";echo $rasgele2['subject'];echo "</a>";echo "</td></tr></table>";mysql_free_result($rasgelekonu);}}echo'</td><td class="windowbg2" width="73%" align="left"><table class="windowbg" width="100%" cellpadding="0" cellspacing="2" style="margin-bottom:5px;"><tr><td width="40%" align="left" style="padding-left:4px;">último Poste</td><td width="15%" align="left"> Hit</td><td width="20%" align="left">Por</td><td width="25%" align="left">Histórico</td></tr></table>';global $db_prefix;//Son Mesajlar$sonm=mysql_query("SELECT * FROM {$db_prefix}messages order by id_msg desc limit $limit");while($sonkonular=mysql_fetch_array($sonm)){$sonkonular['subject'] = shorten_subject($sonkonular['subject'],32);$grup=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where id_member = '".$sonkonular['id_member']."'"));if($grup['id_group']==0){$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_post_group']."'"));}else{$renk=mysql_fetch_array(mysql_query("Select * from {$db_prefix}membergroups where id_group = '".$grup['id_group']."'"));}$gercekisim=mysql_fetch_array(mysql_query("Select * from {$db_prefix}members where member_name = '".$sonkonular['poster_name']."'"));$hitcek=mysql_fetch_array(mysql_query("select id_topic,num_views from {$db_prefix}topics where id_topic = '".$sonkonular['id_topic']."'"));echo '<table width="100%" cellpadding="0" cellspacing="0" style="padding-left:5px;"><tr><td width="40%" align="left">';echo '<img src="', $settings['images_url'], '/top10/sonk.gif" width="13" height="13" alt="" border="0" style="vertical-align:middle;margin-right:2px;" /><a href=', $scripturl, '?topic=';echo $sonkonular['id_topic'].".msg".$sonkonular['id_msg']."#new".">".$sonkonular['subject']."</a> ";echo '</td><td width="15%" align="left">';echo $hitcek['num_views'].'<img src="', $settings['images_url'], '/top10/hitk.gif" alt="" border="0" style="margin-left:2px;" />';echo '</td><td width="20%" align="left">';echo '<img src="', $settings['images_url'], '/top10/yazank.png" alt="" border="0" style="vertical-align:middle;margin-right:2px;" /><a href=', $scripturl, '?action=profile;u=';echo $sonkonular['id_member']."><font color='".$renk['online_color']."'>".$gercekisim['real_name']."</font></a>";echo '</td><td width="25%" align="left">';echo '<img src="', $settings['images_url'], '/top10/zamank.gif" alt="" border="0" style="vertical-align:middle;margin-right:2px;" />'.timeformat($sonkonular['poster_time']);echo '</td></tr></table>';}echo '</td></tr></table><br />';//Full Top10 Moderntasarim.Com Translate By Candidosa2