SimplePortal

Support => International Support => Turkish (Türkçe) => Topic started by: macgyver on October 05, 2011, 06:10:34 PM

Title: Bölüm haberlerini 2 li yan yana dizme Yardım
Post by: macgyver on October 05, 2011, 06:10:34 PM
vermiş olduğunuz PortalBlocks.php dosyasını attım ama olmadı

konulardaki gibi kodları yapmaya calısıyorum kodları secip yapıstırdığım zaman kodlar

Code: [Select]
$counter = false; if ($context['SPortal']['core_compat']) { foreach ($return as $news) { echo ' <div style="width: 300px; float: ', $counter ? 'right' : 'left', '; display:block; position:relative;"> <div class="tborder"> <table class="sp_block"> <tr class="catbg"> <td class="sp_middle">', $news['icon'], '</td> <td class="sp_middle sp_regular_padding sp_fullwidth"><a href="', $news['href'], '" >', $news['subject'], '</a> </tr> <tr class="windowbg"> <td class="sp_regular_padding" colspan="2">'; if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href'])) echo ' <img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /> <div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>'; else echo ' <div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>'; echo ' <div class="post"><hr />', $news['body'], '<br /><br /></div> </td> </tr> <tr> <td class="windowbg2" colspan="2"> <div class="sp_right sp_regular_padding">', $news['link'], ' ',  $news['new_comment'], '</div> </td> </tr> </table> </div> </div> ', $counter ? '<br />' : '', ''; $counter = !$counter; } } else { foreach ($return as $news) { echo ' <div style="width: 333px; float: ', $counter ? 'right' : 'left', '; margin-right:25px;float: left;position: relative;height:327px; margin-top:10px;overflow: hidden;border-bottom: 1px dotted #8a9397;">             <a href="', $news['href'], '" >', $news['subject'], '</a> </h3> <div class="windowbg"> <span class="topslice"><span></span></span> <div class="sp_content_padding">';                           echo ' <img src="' . $settings['images_url'] . '/calendar.jpg" alt="" /><span class="sp_right:5px">', $news['time'], '</a>';  echo ' <span style="float:right"><img style="vertical-align: middle"> <img src="' . $settings['images_url'] . '/eye.png" alt="Visitas" width="16" height="16" original-title="Visitas"><img style="vertical-align: middle"> <img src="' . $settings['images_url'] . '/comments.png" alt="Comentarios" width="19" height="16" original-title="Comentarios"></span> <div class="post"><style="height:168px; overflow:hidden;"><hr />', $news['body'], '</div> <div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div> </div> <span class="botslice"><span></span></span> </div> </div> ', $counter ? '<br />' : '', ''; $counter = !$counter; } }
kodlar böyle yapısıyor :( dik
SimplePortal 2.3.8 © 2008-2024, SimplePortal