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: 253
  • 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]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Kayan Resimler  (Read 11586 times)

0 Members and 1 Guest are viewing this topic.

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Kayan Resimler
« on: November 11, 2011, 01:46:10 PM »
Merhaba kayan resimlerin altında konunun tam adı çıkıyor ve çok uzun oluyor sadece resmin çıkma ihtimali yok mu? yazısız ama gene tıklayınca konuya gidecek?

Offline macgyver

  • Semi Newbie
  • *
  • Posts: 30
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #1 on: November 13, 2011, 12:35:44 PM »
SP'de Zaten Var Arama Yapmanı Tavsiye Ederim  :nervous-happy:





Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #2 on: November 19, 2011, 05:28:03 AM »
aradım taradım yok belki yanlış aramışımdır bunun ismi ne olarak geçiyor?

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #3 on: November 19, 2011, 05:35:14 AM »
Bu şekil gözükecek sola doğru kayacak. Yardım eder misiniz nasıl olcak?

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #4 on: November 19, 2011, 05:37:13 AM »
Kullandığınız kodu ekleyin bakalım.

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #5 on: November 19, 2011, 05:38:37 AM »
kullandığım kod yok :D 0 dan bu şekilde eklicem :D nasıl ekleyebilirim ?

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #6 on: November 19, 2011, 05:49:32 AM »
Merhaba kayan resimlerin altında konunun tam adı çıkıyor ve çok uzun oluyor sadece resmin çıkma ihtimali yok mu? yazısız ama gene tıklayınca konuya gidecek?
Burada öyle dememişsiniz.

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #7 on: November 19, 2011, 01:57:46 PM »
Yanlış anlatmışım ben hata bende özür dilerim :(  Ben bu konuyu açtığım zaman elimde bir kod vardı ama eklediğim zaman kötü değil felaket iğrenç duruyodu. Bnde sonradan kaldırdım.Ama ihtiyacım arttı bu bloğa,dedim ben böyle bi konu açmıştım acaba bişey yazan  oldumu diye baktım yazılmış o yüzden altına devam ettim.Yeni konu açmak istemedim o kod artık elimde yok o yüzden varsa yukardaki şekilde 0 rica etsem yapabilir miyiz? İnş. anlatabilmişimdir.

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #8 on: November 19, 2011, 01:59:44 PM »
googlede kayan resim kodu diye arama yapınız. çok yerde değişik şekillerde verilmiş.

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #9 on: November 19, 2011, 02:20:18 PM »
Code: [Select]
global $smcFunc, $scripturl;

$topic_ids = array(17, 6, 12, 9);

$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 m.subject',
array(
'topics' => $topic_ids,
)
);
$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="250" width="100" />' : '',
);
$smcFunc['db_free_result']($request);

echo '
<table>
<tr>
<td><input type="button" value="«" onclick="document.getElementById(\'images_marquee\').direction = \'left\';" /></td>
<td width="100%">
<marquee id="images_marquee" behavior="scroll" direction="left" scrollamount="8"  height="245" width="100%" onmouseover="this.stop();" onmouseout="this.start();">
<table>
<tr>';
foreach ($topics as $topic)
echo '
<td>
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">', $topic['first_image'], '<br /><span>', $topic['subject'], '</span></a>
</td>';
echo '
</tr>
</table>
</marquee>
</td>
<td><input type="button" value="»" onclick="document.getElementById(\'images_marquee\').direction = \'right\';" /></td>
</tr>
</table>';
Bu konu ile ilgili bu kodu buldum :D ama konuların ismi tamamı çokıyo ve arası boşluk çok oluyo. Sadece resim çıkmasını nasıl ayarlayabiliriz?

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #10 on: November 19, 2011, 02:36:04 PM »
birde resimler birbirine yapışık oluyo bunu yeni fark ettim kısa isimli bir konu ekledim resimler yapışık geliyo aralarında 2-3 cm boşluk olabilir mi?

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #11 on: November 19, 2011, 02:39:26 PM »
Code: [Select]
global $smcFunc, $scripturl;

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

$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 m.subject',
array(
'topics' => $topic_ids,
)
);
$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="100" width="100" />' : '',
);
$smcFunc['db_free_result']($request);

echo '
<table>
<tr>
<td><input type="button" value="«" onclick="document.getElementById(\'images_marquee\').direction = \'left\';" /></td>
<td width="100%">
<marquee id="images_marquee" behavior="scroll" direction="left" scrollamount="8"  height="100" width="100%" onmouseover="this.stop();" onmouseout="this.start();">
<table>
<tr>';
foreach ($topics as $topic)
echo '
<td>
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">', $topic['first_image'], '<br /><span></span></a>
</td>';
echo '
</tr>
</table>
</marquee>
</td>
<td><input type="button" value="»" onclick="document.getElementById(\'images_marquee\').direction = \'right\';" /></td>
</tr>
</table>';
bu kodu kullanın.

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #12 on: November 19, 2011, 02:44:22 PM »
Çok teşekkür ederim yazılar kalkmışta :D resimler birbirlerine yapışık geliyo arada 3-4-5 cm :D boşluk olamaz mı cm dediğime bakmayın 2  parmak kalınlığında :D (Normal insan parmağı) :D

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #13 on: November 19, 2011, 02:50:07 PM »
Code: [Select]
global $smcFunc, $scripturl;

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

$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 m.subject',
array(
'topics' => $topic_ids,
)
);
$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="100" width="100" />' : '',
);
$smcFunc['db_free_result']($request);

echo '
<table>
<tr>
<td><input type="button" value="«" onclick="document.getElementById(\'images_marquee\').direction = \'left\';" /></td>
<td width="100%">
<marquee id="images_marquee" behavior="scroll" direction="left" scrollamount="8"  height="100" width="100%" onmouseover="this.stop();" onmouseout="this.start();">
<table>
<tr>';
foreach ($topics as $topic)
echo '
<td>
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">', $topic['first_image'], '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><span></span></a>
</td>';
echo '
</tr>
</table>
</marquee>
</td>
<td><input type="button" value="»" onclick="document.getElementById(\'images_marquee\').direction = \'right\';" /></td>
</tr>
</table>';

Offline HeRaM

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: None
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #14 on: November 19, 2011, 02:55:02 PM »
Vallahi Allah senden razı olsun. Gerçekten güzel oldu başka yer olsa bırak istediğimi yapmak kodu bile zor verirlerdi gerçekten sağolun iyiki varsınız :D keşke kodlamayı yeteri kadar bilsemde bende simple portala yardımcı  olabilseydimm :D

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Kayan Resimler
« Reply #15 on: November 19, 2011, 03:05:52 PM »
Öğrenmek için kendiniz çaba sarfetmeli, araştırma, deneme yanılma yapmalısınız. Bu şekilde hazır kodu editleterek öğrenemezsiniz.

Offline sefa05

  • Newbie
  • Posts: 2
  • SMF Version: 2 RC1
  • SP Version: 2.0.2
Re: Kayan Resimler
« Reply #16 on: March 17, 2012, 09:54:17 AM »
Code: [Select]
global $smcFunc, $scripturl;

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

$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 m.subject',
array(
'topics' => $topic_ids,
)
);
$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="100" width="100" />' : '',
);
$smcFunc['db_free_result']($request);

echo '
<table>
<tr>
<td><input type="button" value="«" onclick="document.getElementById(\'images_marquee\').direction = \'left\';" /></td>
<td width="100%">
<marquee id="images_marquee" behavior="scroll" direction="left" scrollamount="8"  height="100" width="100%" onmouseover="this.stop();" onmouseout="this.start();">
<table>
<tr>';
foreach ($topics as $topic)
echo '
<td>
<a href="', $scripturl, '?topic=', $topic['id_topic'], '.0">', $topic['first_image'], '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><span></span></a>
</td>';
echo '
</tr>
</table>
</marquee>
</td>
<td><input type="button" value="»" onclick="document.getElementById(\'images_marquee\').direction = \'right\';" /></td>
</tr>
</table>';

Bu kodları nereye eklicez?

Offline xakbul

  • Newbie
  • Posts: 3
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Kayan Resimler
« Reply #17 on: February 25, 2013, 06:28:30 PM »
dediğiniz gibi yaptım. yanlız konu başlıkları kayıyor,resimler görünmüyor.. yardım