SimplePortal

Support => Turkish (Türkçe) => International Support => Ki?iselle?tirme => Topic started by: nazamarya on March 17, 2012, 07:18:22 AM

Title: Kayan konular
Post by: nazamarya on March 17, 2012, 07:18:22 AM
Merhabalar. php blok ile kayan son konuları aşağıdaki kod ile oluşturdum. fakat istediğim başlığın yerine konun ilk resminin gelmesi. bu kodlar üzerinden ayarlayabilmek mümkün mü acaba? teşekkürler.
simple portal 2.3.4

Code: [Select]
<?php
$array 
ssi_recentTopics(16nullnull'array');
global 
$contex$txt$settings;
echo 
'<marquee scrollamount="2" class="moving" onmouseover="this.stop()" onmouseout="this.start()">';
foreach (
$array as $post)
{              if (!empty(
$post['new']) )
                    echo
'';
                else
                    echo
'<img src="' $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" />';echo'<div class="triangle-isosceles" id="'$post['topic'], '" style="display: none">'$post['preview'], '</div><a href="'$post['href']. '" target="_self" onmouseover="document.getElementById(\''$post['topic'], '\').style.display = \'block\'" onmouseout="document.getElementById(\''$post['topic'], '\').style.display = \'none\'">'$post['short_subject'], '</a>';
}
echo 
'</marquee>
<style> 
marquee.moving a
{
     font-size:12px;
     font-weight:bold;
     margin-right:50px;
}


.triangle-isosceles {
    position: fixed;
    top: 300px;
    left: 400px;
    padding:15px;
    margin:1em 0 3em;
    color:#fff;
    max-width: 400px;
    border: 1px solid #222222;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    -moz-box-shadow: 3px 3px 39px 2px #222222;
    -webkit-box-shadow: 3px 3px 39px 2px #222222;
    box-shadow: 3px 3px 39px 2px #222222;
    background: -moz-linear-gradient(top, rgba(41,137,216,0.9) 0%, rgba(30,87,153,0.9) 94%, rgba(30,87,153,0.9) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(41,137,216,0.9)), color-stop(94%,rgba(30,87,153,0.9)), color-stop(100%,rgba(30,87,153,0.9)));
    background: -webkit-linear-gradient(top, rgba(41,137,216,0.9) 0%,rgba(30,87,153,0.9) 94%,rgba(30,87,153,0.9) 100%);
    background: -o-linear-gradient(top, rgba(41,137,216,0.9) 0%,rgba(30,87,153,0.9) 94%,rgba(30,87,153,0.9) 100%);
    background: -ms-linear-gradient(top, rgba(41,137,216,0.9) 0%,rgba(30,87,153,0.9) 94%,rgba(30,87,153,0.9) 100%);
    background: linear-gradient(top, rgba(41,137,216,0.9) 0%,rgba(30,87,153,0.9) 94%,rgba(30,87,153,0.9) 100%);
    }
</style>'
;

?>
SimplePortal 2.3.8 © 2008-2024, SimplePortal