collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 236
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Sohbet Kutusu

Refresh History
  • Destek için kullanmay?n!
  • akorkut: Ama desteklerinizi de bekliyoruz.
    November 18, 2016, 08:41:36 AM
  • akorkut: grafitus hocam, yaklaşık 10 yıl.. smf, sp,  sizin ve diğer paylaşımseverin çalışmalarınızl bize destek oldu. Herşey için çok teşekkür ederiz.
    November 18, 2016, 08:40:38 AM
  • grafitus: Merhabalar herkese. Uzun zaman oldu, hayatlar değişti. Vakit ayıramaz olduk. SMF ve SimplePortal'ın yeri farklı olsa da artık aktif olmadıkları aşikar. Belki bir gün yeniden forumlar doğar. :)) Sevgilerle.
    November 18, 2016, 08:26:32 AM
  • tc bolubeyi: gelen giden yok pek
    July 31, 2016, 02:52:53 PM
  • tekniker974: Neredeyse 1 sene olmuş
    May 12, 2016, 01:05:50 AM
  • tekniker974: Günaydın
    May 12, 2016, 01:05:19 AM
  • tc bolubeyi: merhaba dostlara
    August 28, 2015, 08:56:04 AM
  • mert1i: ker alaka
    August 03, 2015, 10:07:49 AM
  • sonkalem: sa
    July 14, 2015, 03:27:51 PM
  • tc bolubeyi: sağolun ben de iyi allaha şükür
    June 10, 2015, 05:52:54 PM
  • mkuru: Teşekkürler Hasan Bey. Sizi sormalı
    May 27, 2015, 02:53:43 AM
  • tc bolubeyi: selam dostlar nasılsınız
    May 23, 2015, 06:52:15 PM
  • streetfire: Ben seviyorum.
    May 01, 2015, 03:39:22 PM
  • streetfire: Valla bilmiyorum. Sitemde çok kullanıyorum.
    May 01, 2015, 03:39:14 PM
  • mkuru: Evet haklısın
    April 03, 2015, 08:23:32 AM
  • mert1i: portalın en çok istenen ama en aaz talep gören kısmı bu chat
    April 01, 2015, 07:35:31 AM
  • mert1i: Selamun aleyküm ahali..
    January 27, 2015, 05:20:06 AM
  • tekniker974: a.s.
    August 12, 2014, 03:22:53 PM
  • delirium: S.a
    August 02, 2014, 10:24:22 AM
  • tekniker974: :nervous-happy:kimse yok
    July 15, 2014, 01:19:26 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Aşağıdan Yukarıya Kayan Resimli Konular  (Read 12878 times)

0 Members and 1 Guest are viewing this topic.

Offline kimyaci

  • Full Member
  • ***
  • Posts: 127
  • Gender: Male
    • Forumigo8navigation
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Aşağıdan Yukarıya Kayan Resimli Konular
« on: August 03, 2012, 04:06:37 AM »

Demo : http://www.igo8navigation.com

Sağ yada Sol Bloklarda PHP Blok açıp aşağıda ki kodu yapıştırınız.
Resim genişliği yada yüksekliğini, adedi ve geçiş Hızını kendinize göre ayarlayabilirsiniz.
Blok Genişlik ve Yüksekliğini Resimlerinize göre ayarlayınız.

Code: [Select]
global $smcFunc, $scripturl;

$topic_ids = array(2024, 2040, 2049, 2053, 2066, 2058, 1986, 2064, 1847, 2055);

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_topic IN ({array_int:topics})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
      'topics' => $topic_ids,
                'limit' => 10,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'subject' => $row['subject'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="160" width="200" />' : '',
   );
$smcFunc['db_free_result']($request);

echo '
         <center><table>
           
               <td width="100%">
                  <marquee onmouseover="this.stop()" onmouseout="this.start()" width="200" height="380" scrollamount="2" scrolldelay="1" direction="up"  loop="infinite">
                  <center><table>';




foreach ($topics as $topic)
   echo '
                        <il>
                           <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=2 ALIGN=Center>', $topic['subject'], '</font><br />', $topic['first_image'], '<br /><br /></span></a>
                        </il>';
echo '
                       
                     </table></center>
                  </marquee>
               </td>

           
         </table></center>';
SMF 2.0.7 HabboArtv1, Default Themes.

Offline kimyaci

  • Full Member
  • ***
  • Posts: 127
  • Gender: Male
    • Forumigo8navigation
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #1 on: August 03, 2012, 04:57:42 PM »
Geçici Demo : http://www.igo8navigation.com

Sağ yada Sol Bloklarda PHP Blok açıp aşağıda ki kodu yapıştırınız.
Resim genişliği yada yüksekliğini, adedi ve geçiş Hızını kendinize göre ayarlayabilirsiniz.
Blok Genişlik ve Yüksekliğini Resimlerinize göre ayarlayınız.
Geçiş Yönünü aşağı Doğru da yapabilirsiniz.
Konu Başlıkları kaldırılıp sadece resim geçişi de yapılabilir.Yada resim kaldırılıp sadece konu başlıkları geçişi yapılabilir.

Not: Biraz daha düzenleme yapıldı.Yardımları için bolubeyi arkadaşımıza teşekkür ederim.

Code: [Select]
global $smcFunc, $scripturl;

$topic_ids = array(2024, 2040, 2049, 2053, 2066, 2058, 1986, 2064, 1847, 2055);

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_topic IN ({array_int:topics})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
      'topics' => $topic_ids,
                'limit' => 10,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'subject' => $row['subject'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="140" width="260" />' : '',
   );
$smcFunc['db_free_result']($request);

echo '
<div align="center">
   <table border="1" width="100%" style="border-width: 0px">
      <tr>
         <td style="border-style: none; border-width: medium" align="center">
         <marquee onmouseover="this.stop()" onmouseout="this.start()" width="260" height="380" scrollamount="2" scrolldelay="1" direction="up"  loop="infinite">';
         foreach ($topics as $topic)
   echo '
                       
                       <div class="mansetdeneme" align="center">    <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=2 ALIGN=Center>', $topic['subject'], '</font><br />', $topic['first_image'], '<br /></span></a>
                       </div><br /> ';
echo ' </marquee>
         </td>
      </tr>
   </table>
</div>';

portal.css dosyasına ekle;
Code: [Select]
.mansetdeneme
{
   border: 1px solid #5998A7;
   border-radius: 3px;
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
    padding: 3px 5px 7px 5px;
}
.mansetdeneme img
{
width: 100%;
 
}
SMF 2.0.7 HabboArtv1, Default Themes.

Offline mkuru

  • Full Member
  • ***
  • Posts: 110
  • Gender: Male
    • Mehmet Kuru Portal
  • SMF Version: 2.0.11
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #2 on: August 04, 2012, 04:32:07 AM »
Emeğiniziçin teşekkürler. Güzel bir paylaşım olmuş. Ben de naçizane ufak bir editleme yaparak konulara göre değil de bölüme göre son konuları çekecek şekilde ufak bir düzenleme yaptım.

Code: [Select]
global $smcFunc, $scripturl;

$boards = array(50);

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_board IN ({array_int:boards})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
     'boards' => $boards,
                'limit' => 5,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'subject' => $row['subject'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="160" width="180" />' : '',
   );
$smcFunc['db_free_result']($request);

echo '
<div align="center">
   <table border="1" width="100%" style="border-width: 0px">
      <tr>
         <td style="border-style: none; border-width: medium" align="center">
         <marquee onmouseover="this.stop()" onmouseout="this.start()" width="185" height="160" scrollamount="2" scrolldelay="1" direction="up"  loop="infinite">';
         foreach ($topics as $topic)
   echo '
                       
                       <div class="mansetdeneme" align="center">    <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=2 ALIGN=Center>', $topic['subject'], '</font><br />', $topic['first_image'], '<br /></span></a>
                       </div><br /> ';
echo ' </marquee>
         </td>
      </tr>
   </table>
</div>';

Buradaki
Code: [Select]
$boards = array(50);yerine hangi bölümün id sini yazarsanız o bölümdeki konuları çeker..

Resimler yukarıdan aşağıya veya aşağıdan yukarıya yerine sağdan sola doğru kayacak şekilde düzenlenebilir mi acaba ? Biraz uğraştım ama onu yapamadım.

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #3 on: August 04, 2012, 04:41:50 AM »
direction="up" yazan yeri düzenleyin
up yerine left ya da right yazın

Offline mkuru

  • Full Member
  • ***
  • Posts: 110
  • Gender: Male
    • Mehmet Kuru Portal
  • SMF Version: 2.0.11
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #4 on: August 04, 2012, 04:45:53 AM »
direction="up" yazan yeri düzenleyin
up yerine left ya da right yazın
Hocam onu denedim ama o zaman sadece bir resim gösteriyor.

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #5 on: August 04, 2012, 04:51:03 AM »
sağdan sola kayan vardı paylaşılmıştı arama yapın ozaman.

Offline mkuru

  • Full Member
  • ***
  • Posts: 110
  • Gender: Male
    • Mehmet Kuru Portal
  • SMF Version: 2.0.11
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #6 on: August 04, 2012, 05:09:36 AM »
http://simpleportal.net/index.php?topic=11620.0
Hocam o kodu da biliyorum. Uzun süre de kullandım. Ancak yukarıdaki linkte belirttiğim üzere bazı tarayıcılarda sağlıklı çalışmıyor.

Offline kimyaci

  • Full Member
  • ***
  • Posts: 127
  • Gender: Male
    • Forumigo8navigation
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #7 on: August 04, 2012, 05:24:52 AM »


Soldan sağa yada sağdan sola ayarlayabilirsiniz.

Code: [Select]
global $smcFunc, $scripturl;

$topic_ids = array(1,2,4,5);

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_topic IN ({array_int:topics})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
      'topics' => $topic_ids,
                'limit' => 10,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'subject' => $row['subject'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="160" width="200" />' : '',
   );
$smcFunc['db_free_result']($request);

echo '

         <center><table>
            <tr>
               <td width="100%">
                  <marquee onmouseover="this.stop()" onmouseout="this.start()" width="100%" height="100%" scrollamount="2" scrolldelay="1" direction="left"  loop="infinite">
                  <center><table><tr>';




foreach ($topics as $topic)
   echo '
                       
                        <td><div class="mansetdeneme" align="center">
                           <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=2 ALIGN=Center>', $topic['subject'], '</font><br />', $topic['first_image'], '<br /></a>
                        </td>';
echo '
                       
                     </table></center>
                  </marquee>
               </td>

           
         </table></center>';

Not: portal css kodları aynıdır.
SMF 2.0.7 HabboArtv1, Default Themes.

Offline mkuru

  • Full Member
  • ***
  • Posts: 110
  • Gender: Male
    • Mehmet Kuru Portal
  • SMF Version: 2.0.11
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #8 on: August 04, 2012, 05:51:05 AM »
Limiti 5 yapıp 5 adet topic id si yazdığım zaman 2. resimden sonra tekrar başa dönüyor. Yani 5 veya daha fazla resmi sonuna kadar göstermiyor.

Offline kimyaci

  • Full Member
  • ***
  • Posts: 127
  • Gender: Male
    • Forumigo8navigation
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #9 on: August 04, 2012, 07:25:48 AM »

Limit sorununu halettim.Ama konu başlıklarının uzun olmaması lazım.Halledersem paylaşırım.

Code: [Select]
global $smcFunc, $scripturl;

$topic_ids = array(2024, 2040, 2049, 2053, 2066, 2058, 1986, 2064, 1847, 2055);

$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_topic IN ({array_int:topics})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
      'topics' => $topic_ids,
                'limit' => 10,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'subject' => $row['subject'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="140" width="240" />' : '',
   );
$smcFunc['db_free_result']($request);

echo '
         <center><table>
            <tr>
               <td>
                  <marquee onmouseover="this.stop()" onmouseout="this.start()"  height="120%" scrollamount="6" scrolldelay="1" direction="left"  loop="infinite">
                  <table></center></tr>';




foreach ($topics as $topic)
   echo '
                     
                        <td><div class="mansetyan">
                        <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=2 ALIGN="Center" width="200">', $topic['subject'], '</font><br />', $topic['first_image'], '<br /><br /></a>
                         </td>';
echo '
                       
                     </table>
                  </marquee>
               </td>

           
         </tr></table></div>';

Portal.css dosyasına yaz.
Code: [Select]
.mansetyan
{
   border: 1px solid #5998A7;
   border-radius: 3px;
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
  padding: 3px 5px 7px 5px;  ;  üst sağ alt Sol
}
.mansetyan img
{
hight: 100%;
}
SMF 2.0.7 HabboArtv1, Default Themes.

Offline Skaty

  • Semi Newbie
  • *
  • Posts: 33
  • SMF Version: 2.0.2
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #10 on: May 11, 2013, 04:04:30 AM »
Arkadaşlar şu kısmı :
'first_image' => preg_match_all('~\[img\]([^\]]+)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="160" width="180" />' : '',
   );

nasıl şuna göre ayarlayabiliriz ?
[ img width=600 hight=3xx]linklinklink[/img ]

Offline streetfire

  • Semi Newbie
  • *
  • Posts: 16
    • Fiat Uno Kulübü
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #11 on: May 21, 2015, 09:20:24 AM »
Uygulamama rağmen boş çıkıyor. Nerede yanlış yapıyorum? Şu an bakınca boş. Ama blok oluşuyor. Resimli konular da çok.

Offline streetfire

  • Semi Newbie
  • *
  • Posts: 16
    • Fiat Uno Kulübü
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #12 on: May 21, 2015, 10:15:02 AM »
ID değiştirince konu isimleri geldi ama resimler gelmiyor. Ve beşer beşer sağdan sola kayıyor. Ben kaymasa da son eklenen 5 fotoğrafın 'Fotolu konuların gözükmesini istiyorum.

Yani sitem bir otomobil sitesi. Neyi nasıl yaptıklarını yada arabasının fotoğraflarını ekliyorlar ek olarak. Ben de bu eklenen fotoğrafları ana sayfada kayarak yada kaymayarak ama meraklanıp fotoya bakıp konuyu okumalarını istiyorum.

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #13 on: May 21, 2015, 10:57:22 AM »
Please read the date of the topic before posting, this topic is from 2012... Since it's very old you might not have a reply from its author (and I can't speak Turkish at all).
« Last Edit: May 21, 2015, 10:59:43 AM by ♦ Ninja ZX-10RR ♦ »
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline streetfire

  • Semi Newbie
  • *
  • Posts: 16
    • Fiat Uno Kulübü
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #14 on: May 22, 2015, 03:53:31 PM »
Sorry, you're right. :(

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Aşağıdan Yukarıya Kayan Resimli Konular
« Reply #15 on: May 22, 2015, 04:10:42 PM »
You can still post a topic in the English section, I'll try and do my best to help you :)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis