17 Nis 2021 10:32 Yeni Konu Oluştur

Haberler:

Üye kayıt esnasında E-posta adresinizin doğru olduğuna ve Aktivasyon Mailinize bakmayı unutmayın.


simpleportal bölüm haberleri edit

Başlatan snrj, 13 Tem 2014 23:15

« önceki - sonraki »

0 Üye ve 4 Ziyaretçi konuyu incelemekte.

*

  1. 3,077

  2. 584

  3. 960
13 Tem 2014 23:15 Son düzenlenme: 27 Ağu 2014 19:45 Smfci



sources/PortalBlocks.php
bul
function sp_boardNews($parameters, $id, $return_parameters = false)
{
 global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

 $block_parameters = array(
 'board' => 'boards',
 'limit' => 'int',
 'start' => 'int',
 'length' => 'int',
 'avatar' => 'check',
 'per_page' => 'int',
 );

 if ($return_parameters)
 return $block_parameters;

 $board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
 $limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
 $start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
 $length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
 $avatars = !empty($parameters['avatar']);
 $per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;

 $limit = max(0, $limit);
 $start = max(0, $start);

 loadLanguage('Stats');

 $stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
 $icon_sources = array();
 foreach ($stable_icons as $icon)
 $icon_sources[$icon] = 'images_url';

 $request = $smcFunc['db_query']('', '
 SELECT t.id_first_msg
 FROM {db_prefix}topics AS t
 INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
 INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
 WHERE ' . (empty($board) ? '{query_see_board}
 AND t.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
 AND t.approved = {int:is_approved}' : '') . '
 AND (t.locked != {int:locked} OR m.icon != {string:icon})
 ORDER BY t.id_first_msg DESC
 LIMIT {int:limit}',
 array(
 'current_board' => $board,
 'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
 'is_approved' => 1,
 'locked' => 1,
 'icon' => 'moved',
 'limit' => $limit,
 )
 );
 $posts = array();
 while ($row = $smcFunc['db_fetch_assoc']($request))
 $posts[] = $row['id_first_msg'];
 $smcFunc['db_free_result']($request);

 if (empty($posts))
 {
 echo '
 ', $txt['error_sp_no_posts_found'];
 return;
 }
 elseif (!empty($per_page))
 {
 $limit = count($posts);
 $start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

 $clean_url = preg_replace('~news' . $id . '=\d+;?~', '', $_SERVER['REQUEST_URL']);
 $current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

 $page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
 }

 $request = $smcFunc['db_query']('', '
 SELECT
 m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
 t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
 a.id_attach, a.attachment_type, a.filename, t.num_views
 FROM {db_prefix}topics AS t
 INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
 LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
 LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
 WHERE t.id_first_msg IN ({array_int:post_list})
 ORDER BY t.id_first_msg DESC
 LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
 array(
 'post_list' => $posts,
 'start' => $start,
 'limit' => !empty($per_page) ? $per_page : $limit,
 )
 );
 $return = array();
 $colorids = array();
 while ($row = $smcFunc['db_fetch_assoc']($request))
 {
 $limited = false;
 if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
 {
 $row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
 $limited = true;
 }
 elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
 {
 $row['body'] = $smcFunc['substr']($row['body'], 0, $length);
 $limited = true;
 }

 $row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

 // Only place an ellipsis if the body has been shortened.
 if ($limited)
 $row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

 if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
 {
 $avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
 $avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
 }
 else
 {
 $avatar_width = '';
 $avatar_height = '';
 }

 if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
 $icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

 censorText($row['subject']);
 censorText($row['body']);

 if ($modSettings['sp_resize_images'])
 $row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

 if (!empty($row['id_member']))
 $colorids[$row['id_member']] = $row['id_member'];

 $return[] = array(
 'id' => $row['id_topic'],
 'message_id' => $row['id_msg'],
 'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
 'subject' => $row['subject'],
 'time' => timeformat($row['poster_time']),
 'views' => $row['num_views'],
 'body' => $row['body'],
 'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
 'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
 'replies' => $row['num_replies'],
 'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
 'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
 'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
 'poster' => array(
 'id' => $row['id_member'],
 'name' => $row['poster_name'],
 'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
 'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
 ),
 'locked' => !empty($row['locked']),
 'is_last' => false,
 'avatar' => array(
 'name' => $row['avatar'],
 'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
 'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
 'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
 ),
 );
 }
 $smcFunc['db_free_result']($request);

 if (empty($return))
 {
 echo '
 ', $txt['error_sp_no_posts_found'];
 return;
 }

 $return[count($return) - 1]['is_last'] = true;

 if (!empty($colorids) && sp_loadColors($colorids) !== false)
 {
 foreach ($return as $k => $p)
 {
 if (!empty($color_profile[$p['poster']['id']]['link']))
 $return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
 }
 }

 if ($context['SPortal']['core_compat'])
 {
 foreach ($return as $news)
 {
 echo '
 <div class="tborder sp_article_content">
 <table class="sp_block">
 <tr class="catbg">
 <td class="sp_middle">', $news['icon'], '</td>
 <td class="sp_middle sp_regular_padding sp_fullwidth"><a href="', $news['href'], '" >', $news['subject'], '</a></td>
 </tr>
 <tr class="windowbg">
 <td class="sp_regular_padding" colspan="2">';

 if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
 echo '
 <a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
 <div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
 else
 echo '
 <div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

 echo '
 <div class="post"><hr />', $news['body'], '<br /><br /></div>
 </td>
 </tr>
 <tr>
 <td class="windowbg2" colspan="2">
 <div class="sp_right sp_regular_padding">', $news['link'], ' ',  $news['new_comment'], '</div>
 </td>
 </tr>
 </table>
 </div>';
 }
 }
 else
 {
 foreach ($return as $news)
 {
 echo '
 <div class="cat_bar">
 <h3 class="catbg">
 <span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
 </h3>
 </div>
 <div class="windowbg sp_article_content">
 <span class="topslice"><span></span></span>
 <div class="sp_content_padding">';

 if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
 echo '
 <a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
 <div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
 else
 echo '
 <div class="middletext">', $news['time'], ' ', $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>';
 }
 }

 if (!empty($per_page))
 echo '
 <div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}

değiştir
function sp_boardNews($parameters, $id, $return_parameters = false)
{
 global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

 $block_parameters = array(
 'board' => 'boards',
 'limit' => 'int',
 'start' => 'int',
 'length' => 'int',
 'avatar' => 'check',
 'per_page' => 'int',
 );

 if ($return_parameters)
 return $block_parameters;

 $board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
 $limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
 $start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
 $length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
 $avatars = !empty($parameters['avatar']);
 $per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;

 $limit = max(0, $limit);
 $start = max(0, $start);

 loadLanguage('Stats');

 $stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
 $icon_sources = array();
 foreach ($stable_icons as $icon)
 $icon_sources[$icon] = 'images_url';

 $request = $smcFunc['db_query']('', '
 SELECT t.id_first_msg
 FROM {db_prefix}topics AS t
 INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
 INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
 WHERE ' . (empty($board) ? '{query_see_board}
 AND t.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
 AND t.approved = {int:is_approved}' : '') . '
 AND (t.locked != {int:locked} OR m.icon != {string:icon})
 ORDER BY t.id_first_msg DESC
 LIMIT {int:limit}',
 array(
 'current_board' => $board,
 'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
 'is_approved' => 1,
 'locked' => 1,
 'icon' => 'moved',
 'limit' => $limit,
 )
 );
 $posts = array();
 while ($row = $smcFunc['db_fetch_assoc']($request))
 $posts[] = $row['id_first_msg'];
 $smcFunc['db_free_result']($request);

 if (empty($posts))
 {
 echo '
 ', $txt['error_sp_no_posts_found'];
 return;
 }
 elseif (!empty($per_page))
 {
 $limit = count($posts);
 $start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

 $clean_url = preg_replace('~news' . $id . '=\d+;?~', '', $_SERVER['REQUEST_URL']);
 $current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

 $page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
 }

 $request = $smcFunc['db_query']('', '
 SELECT
 m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
 t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
 a.id_attach, a.attachment_type, a.filename, t.num_views
 FROM {db_prefix}topics AS t
 INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
 LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
 LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
 WHERE t.id_first_msg IN ({array_int:post_list})
 ORDER BY t.id_first_msg DESC
 LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
 array(
 'post_list' => $posts,
 'start' => $start,
 'limit' => !empty($per_page) ? $per_page : $limit,
 )
 );
 $return = array();
 $colorids = array();
 while ($row = $smcFunc['db_fetch_assoc']($request))
 {
 $limited = false;
 if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
 {
 $row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
 $limited = true;
 }
 elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
 {
 $row['body'] = $smcFunc['substr']($row['body'], 0, $length);
 $limited = true;
 }

 $row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

 // Only place an ellipsis if the body has been shortened.
 if ($limited)
 $row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

 if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
 {
 $avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
 $avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
 }
 else
 {
 $avatar_width = '';
 $avatar_height = '';
 }

 if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
 $icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

 censorText($row['subject']);
 censorText($row['body']);

 if ($modSettings['sp_resize_images'])
 $row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

 if (!empty($row['id_member']))
 $colorids[$row['id_member']] = $row['id_member'];

 $return[] = array(
 'id' => $row['id_topic'],
 'message_id' => $row['id_msg'],
 'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
 'subject' => $row['subject'],
 'time' => timeformat($row['poster_time'],'<div class="snrj_time"><span style="color:white;">%b</span><span style="margin-top: -5px;">%d</span><span style="margin-top: -5px;">%Y</span></div>'),
 'views' => $row['num_views'],
 'body' => $row['body'],
 'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
 'link' => '<a class="snrjButton" href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
 'replies' => $row['num_replies'],
 'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
 'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
 'new_comment' => !empty($row['locked']) ? '' : ' <a class="snrjButton" href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
 'poster' => array(
 'id' => $row['id_member'],
 'name' => $row['poster_name'],
 'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
 'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
 ),
 'locked' => !empty($row['locked']),
 'is_last' => false,
 'avatar' => array(
 'name' => $row['avatar'],
 'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
 'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
 'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
 ),
 );
 }
 $smcFunc['db_free_result']($request);

 if (empty($return))
 {
 echo '
 ', $txt['error_sp_no_posts_found'];
 return;
 }

 $return[count($return) - 1]['is_last'] = true;

 if (!empty($colorids) && sp_loadColors($colorids) !== false)
 {
 foreach ($return as $k => $p)
 {
 if (!empty($color_profile[$p['poster']['id']]['link']))
 $return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
 }
 }


 foreach ($return as $news)
 {
 echo '
 <div class="cat_bar">
 <h3 class="catbg">
 <span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
 </h3>
 </div>
 <div class="snrj">';

 echo '
 <div class="sp_snrj">
 ', $news['time'], '<img style="margin-left: 18px; border-radius: 0px; height: 48px;" src="', $settings['images_url'], '/time.png" alt="time"/>
 <p><a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '"/></a> </p>
 <p><b>', $news['poster']['link'], '</b></p>
 <span><b>', $txt['sp-articlesViews'], ':</b> ', $news['views'], '</span> <br/>
 <span><b>', $txt['sp-articlesComments'], ': </b>', $news['replies'], '</span><br/>
 ', $news['link'], '<br/>
 ',  $news['new_comment'], '
 </div>';

 echo '<div class="post">', $news['body'], '</div>
 </div>';
 }


 if (!empty($per_page))
 echo '
 <div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}

function sp_quickSearch($parameters, $id, $return_parameters = false)
{
 global $scripturl, $txt, $context;

 $block_parameters = array();

 if ($return_parameters)
 return $block_parameters;

 echo '
 <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
 <div class="sp_center">
 <input type="text" name="search" value="" class="sp_search" /><br />
 <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
 <input type="hidden" name="advanced" value="0" />
 </div>
 </form>';
}

portal.css de en alta ekle
.snrj{height: 237px; margin: 3px 3px 15px; overflow: hidden; color: rgb(0, 0, 0);background: linear-gradient(to top, #E2E9F3 1%, #FFF 70%) repeat scroll 0% 0% transparent;border-style: solid;
border-width: 1px 1px;border-color: #003054 #00405A #003341;border-radius: 5px;}
.sp_snrj{float: left;padding: 5px;border-radius: 5px;height: 227px;background: linear-gradient(to right,rgba(10,91,153,0.65) 0%,rgba(0,0,0,0) 100%);margin: 0px 5px 0px 0px;}
.sp_snrj p{text-align: center;padding: 0px;margin: 2px 0px 0px;}
.sp_snrj img{width: 50px;height: 45px;border-radius: 30px;}
.snrj .post img{float: left;width: 130px;height: 110px;margin: 1px 10px -1px 0px;border-width: 5px 2px;border-radius: 25px;border-style: solid;border-color: #044F86 #014B63 #000;}
.snrj_time span{display: inherit;text-align: center;font-size: 11px;font-weight: bold;}
.snrj_time{width: 60px;position: absolute;margin-left: 14px;}
.snrjButton {box-shadow:inset 0px 1px 0px 0px #f5978e;background:linear-gradient(to bottom, #f24537 5%, #c62d1f 100%);background-color:#f24537;border-radius:15px;border:1px solid #d02718;display:inline-block;cursor:pointer;color:#fff;font-family:Georgia;font-size:11px;font-weight:bold;padding:3px 7px;text-decoration:none;margin-top: 5px;}
.snrjButton:hover {background:linear-gradient(to bottom, #c62d1f 5%, #f24537 100%);background-color:#c62d1f;}
.snrjButton:active {position:relative;top:1px;}
.sp_snrj .snrjButton {color:#fff;}

ekteki resimi temanızın images klasörüne atın

***

  1. 499

  2. 83

  3. 107
bunu benim siteye uygulacasak güzel dururmu aceba
hey gidi dünya..



  1. 632

  2. 251
Güzelmiş deneyip görmek lazım.
Paylaşım için çok teşekkür ederim.


MENU ×