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: 739
  • 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: portaldaki haberlere yorum ekleme  (Read 3653 times)

0 Members and 1 Guest are viewing this topic.

Offline regal

  • Semi Newbie
  • *
  • Posts: 29
portaldaki haberlere yorum ekleme
« on: August 16, 2010, 10:28:35 AM »
Siteye baktım , varsa da göremedim.
Portaldaki haberlerin altına ziyaretçilerin yorum eklemesi için bir yorum ekleme bölümü yapabilirmiyiz.

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: portaldaki haberlere yorum ekleme
« Reply #1 on: August 16, 2010, 08:41:17 PM »
Portalda bulunan haberler, forumdaki konuların sadece bir görüntüsü diyebiliriz. Yani bunlara konuların yorumları dışında ayrıca bir yorum ekleme özelliği eklemek mantıksız olur. Ama bir hızlı yanıt özelliği ekleyebiliriz. :nervous-happy:

Not: Sadece Bölüm Haberleri bloğunda çalışır!

./Sources/PortalBlocks.php
Code: (Bulun) [Select]
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile
Code: (Değiştirin) [Select]
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile, $options, $user_info, $language;
Code: (Bulun) [Select]
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
Code: (Değiştirin) [Select]
'new_comment' => !empty($row['locked']) ? '' : '| <a href="#" id="QuickReply" onclick="displayQuickReply(\'QuickReply' . $row['id_topic'] . '\'); return false;" >' . $txt['ssi_write_comment'] . '</a>',
Code: (Bulun) [Select]
if (empty($return))
Code: (Değiştirin) [Select]
if (!isset($context['response_prefix']) && !($context['response_prefix'] = cache_get_data('response_prefix', 600)))
{
if ($language === $user_info['language'])
$context['response_prefix'] = $txt['response_prefix'];
else
{
loadLanguage('index', $language, false);
$context['response_prefix'] = $txt['response_prefix'];
loadLanguage('index');
}
cache_put_data('response_prefix', $context['response_prefix'], 600);
}

if (empty($return))

Code: (Bulun) [Select]
foreach ($return as $news)
{
echo '
<h3 class="catbg"><span class="left"></span>
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a> | ', $news['timeyear'], '
</h3>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="sp_content_padding">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" />
<div class="middletext">', $news['timeday'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['timeday'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>
<span class="botslice"><span></span></span>
</div>
<br />';
}
Code: (Değiştirin) [Select]
foreach ($return as $news)
{
echo '
<h3 class="catbg"><span class="left"></span>
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a> | ', $news['timeyear'], '
</h3>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="sp_content_padding">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" />
<div class="middletext">', $news['timeday'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['timeday'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
<form id="QuickReply', $news['id'], '" style="display: none;" action="', $scripturl, '?action=post2', empty($context['current_board']) ? '' : ';board=' . $context['current_board'], '" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
<input type="hidden" name="topic" value="', $news['id'], '" />
<input type="hidden" name="subject" value="', $context['response_prefix'], $news['subject'], '" />
<input type="hidden" name="icon" value="xx" />
<input type="hidden" name="from_qr" value="1" />
<input type="hidden" name="notify" value="', !empty($context['is_marked_notify']) || !empty($options['auto_notify']) ? '1' : '0', '" />
<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
<input type="hidden" name="num_replies" value="', $news['replies'], '" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />';

// Guests just need more.
if ($context['user']['is_guest'])
echo '
<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';

// Is visual verification enabled?
if (!empty($context['require_verification']))
echo '
<strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';

echo '
<div class="quickReplyContent">
<textarea cols="75" rows="7" style="', $context['browser']['is_ie8'] ? 'max-width: 100%; min-width: 100%' : 'width: 100%', '; height: 100px;" name="message" tabindex="', $context['tabindex']++, '"></textarea>
</div>
<div class="righttext padding">
<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />
</div>
</form>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function displayQuickReply(div)
{
var current = document.getElementById(div).style.display == \'none\' ? 1 : 0;

document.getElementById(div).style.display = current ? \'\' : \'none\';
}
// ]]></script>
</div>
<span class="botslice"><span></span></span>
</div>
<br />';
}
my modsI don't reply support PMs. Please use support forums.

Offline regal

  • Semi Newbie
  • *
  • Posts: 29
Re: portaldaki haberlere yorum ekleme
« Reply #2 on: August 17, 2010, 09:37:03 AM »
Bunuda istiyordum. ÇoK İYİ Oldu. Teşekkür ederim. Sanırım benim anlatımımdan kaynaklanan bir yanlış anlaşılma oldu. Tabiki üyeler için böyle bir şeye gerek yok. 
Benim isteğim üye olmayan kişilerinde portalda bulunan yazılara, adı soyadı ve mailini yazarak yada sadece adını yazarak yorum ekleyebilsinler istiyorum.
örneğin, haberci24.com ün kullandığı gibi bir şey.

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: portaldaki haberlere yorum ekleme
« Reply #3 on: August 17, 2010, 02:02:43 PM »
Forumunuzda ziyaretçilere yazma izni verirseniz bu da mümkün olur.
my modsI don't reply support PMs. Please use support forums.

Offline regal

  • Semi Newbie
  • *
  • Posts: 29
Re: portaldaki haberlere yorum ekleme
« Reply #4 on: August 19, 2010, 08:39:40 AM »
Sources/PortalBlocks.php
de ilk satır olan
Code: [Select]
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profilebulunmuyor

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: portaldaki haberlere yorum ekleme
« Reply #5 on: August 19, 2010, 10:03:17 AM »
SMF 1.1.x kullanıyorsunuz sanırım? Bunu bulun:
Code: (Bulun) [Select]
global $scripturl, $db_prefix, $txt, $settings, $user_info, $modSettings, $context, $color_profile, $func;
Code: (Değiştirin) [Select]
global $scripturl, $db_prefix, $txt, $settings, $user_info, $modSettings, $context, $color_profile, $func, $options, $user_info, $language;
my modsI don't reply support PMs. Please use support forums.

Offline turkpowers

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 1.1.11
  • SP Version: 2.1.1
Re: portaldaki haberlere yorum ekleme
« Reply #6 on: October 10, 2010, 03:48:42 PM »
smf 1.1.11 kullanıyorum ikinci koduda bulamadım :S