SimplePortal
Support => Turkish (Türkçe) => International Support => Ki?iselle?tirme => Topic started by: HeRaM 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?
-
SP'de Zaten Var Arama Yapmanı Tavsiye Ederim :nervous-happy:
-
aradım taradım yok belki yanlış aramışımdır bunun ismi ne olarak geçiyor?
-
(http://c1111.hizliresim.com/r/m/mj04.jpg) Bu şekil gözükecek sola doğru kayacak. Yardım eder misiniz nasıl olcak?
-
Kullandığınız kodu ekleyin bakalım.
-
kullandığım kod yok :D 0 dan bu şekilde eklicem :D nasıl ekleyebilirim ?
-
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.
-
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.
-
googlede kayan resim kodu diye arama yapınız. çok yerde değişik şekillerde verilmiş.
-
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?
-
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?
-
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.
-
Ç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
-
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>';
-
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
-
Öğrenmek için kendiniz çaba sarfetmeli, araştırma, deneme yanılma yapmalısınız. Bu şekilde hazır kodu editleterek öğrenemezsiniz.
-
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 kodları nereye eklicez?
-
dediğiniz gibi yaptım. yanlız konu başlıkları kayıyor,resimler görünmüyor.. yardım