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: 430
  • 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: Bir konunun son mesajını gösterme  (Read 7489 times)

0 Members and 1 Guest are viewing this topic.

Offline JANJ@N

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
  • Simple is The Best
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Bir konunun son mesajını gösterme
« on: February 19, 2011, 02:32:26 PM »
seçilen bir konuya yazılan son mesajın içeriğini , resim varsa resimi gösterebilir miyiz  :0

Offline JANJ@N

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
  • Simple is The Best
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Bir konunun son mesajını gösterme
« Reply #1 on: February 22, 2011, 09:56:44 AM »
bunu çok istemiştim ama sanırım mümkün değil  :|

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Bir konunun son mesajını gösterme
« Reply #2 on: March 07, 2011, 11:12:56 AM »
Biraz geç oldu ama. Bunu kullanabilirsiniz:
Code: [Select]
global $smcFunc, $scripturl;

$topic = 2;

$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_last_msg)
WHERE t.id_topic = {int:topic}
LIMIT 1',
array(
'topic' => $topic,
)
);
list($id_topic, $subject, $body) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$body = parse_bbc($body);

echo '
<strong><a href="', $scripturl, '?topic=', $id_topic, '.0">', $subject, '</a></strong>
<p>', $body, '</p>';
my modsI don't reply support PMs. Please use support forums.

Offline JANJ@N

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
  • Simple is The Best
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Bir konunun son mesajını gösterme
« Reply #3 on: March 10, 2011, 04:54:16 AM »
önemli değil ne demek, gerçekten çok iyi oldu, teşekürler

birde, mesajın linkine tıklayınca, ilk mesaja gidiyor, tıklandığında son mesaja götürebilir miyiz
« Last Edit: March 10, 2011, 05:27:40 AM by JANJ@N »

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Bir konunun son mesajını gösterme
« Reply #4 on: March 10, 2011, 09:53:01 AM »
Bunu kullanın:
Code: [Select]
global $smcFunc, $scripturl;

$topic = 2;

$request = $smcFunc['db_query']('', '
SELECT t.id_topic, t.id_last_msg, m.subject, m.body
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
WHERE t.id_topic = {int:topic}
LIMIT 1',
array(
'topic' => $topic,
)
);
list($id_topic, $id_last_msg, $subject, $body) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$body = parse_bbc($body);

echo '
<strong><a href="', $scripturl, '?topic=', $id_topic, '.msg', $id_last_msg, '#new">', $subject, '</a></strong>
<p>', $body, '</p>';
my modsI don't reply support PMs. Please use support forums.

Offline JANJ@N

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
  • Simple is The Best
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Bir konunun son mesajını gösterme
« Reply #5 on: March 10, 2011, 12:32:40 PM »
teşekürler :)

Offline JANJ@N

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
  • Simple is The Best
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: Bir konunun son mesajını gösterme
« Reply #6 on: March 10, 2011, 01:21:46 PM »
peki şöyle bi düzenleme mümkünmü,  resim olan mesajlarda, tek resim çekebilirmiyiz, resmin boyutu orj büyüklükte çıkıyor, kendimiz belirleyebilirmiyiz boyutları,   senin bir kategorideki konuların resimlerini çeken bi kodun vardı ya, o mantıkla yani, mesajdaki yazııyı göstrmese de olur

Offline birlikteforum

  • Newbie
  • Posts: 3
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: Bir konunun son mesajını gösterme
« Reply #7 on: December 19, 2013, 04:07:40 AM »
Üzerinden uzun bir süre geçmiş ama resim ve karakter sınırlaması yapabilirmiyiz.
veya belli bir satırdan sonra devamını oku gibi

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Bir konunun son mesajını gösterme
« Reply #8 on: February 07, 2014, 05:46:48 PM »
Üzerinden uzun bir süre geçmiş ama resim ve karakter sınırlaması yapabilirmiyiz.
veya belli bir satırdan sonra devamını oku gibi
Buyrun, umarim hala ihtiyaciniz vardir:
Code: [Select]
global $smcFunc, $scripturl;

$topic = 2;

$request = $smcFunc['db_query']('', '
SELECT t.id_topic, t.id_last_msg, m.subject, m.body
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
WHERE t.id_topic = {int:topic}
LIMIT 1',
array(
'topic' => $topic,
)
);
list($id_topic, $id_last_msg, $subject, $body) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$body = shorten_subject($body, 120) . '<a href="' . $scripturl . '?topic=' . $id_topic . '">...</a>'; // 120 karakterden oncesini alir.
$body = parse_bbc($body);

echo '
<strong><a href="', $scripturl, '?topic=', $id_topic, '.msg', $id_last_msg, '#new">', $subject, '</a></strong>
<p>', $body, '</p>';
my modsI don't reply support PMs. Please use support forums.