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

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Portal Catbg'lerini Kişileştirme  (Read 5428 times)

0 Members and 1 Guest are viewing this topic.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Portal Catbg'lerini Kişileştirme
« on: June 11, 2010, 09:17:10 AM »
S.a.Forumda Uyguladığım catbglerde yanları oval yaptım.Portalda catbgler oval olmadı.Aşağıdaki resimde belirttiğim gibi Forumdaki catbgler gibi simple portaldaki catbgleride oval yapmak istiyorum.Yardımlarınızı bekliyorum.


Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #1 on: June 11, 2010, 10:55:38 AM »
Yaptığınız işlemi ./Themes/default/Portal.template.php dosyasında ki function template_block($block) fonksiyonuna da uyarlamalısınız.
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #2 on: June 11, 2010, 11:19:35 AM »
Ben BoardIndex.template.php'de aşağıdaki kodları koydum ve oldu ama simple portalda uygulamayı bilmiyorum.Portal.template.php ekte.Yardımlarını bekliyorum.

Code: [Select]
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
$first = true;



foreach ($context['categories'] as $category)
{
echo'
</b><br /><table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td background="' . $settings['images_url'] . '/catbgsol.gif" width="10" height="30"></td>
      <td class="catbg" style="padding: 5px 5px 5px 10px;">';
      $first = false;

      // If this category even can collapse, show a link to collapse it.
      if ($category['can_collapse'])
         echo '
            <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

      echo '
            ', $category['link'], '</td>
      <td background="' . $settings['images_url'] . '/catbgsag.gif" width="42" height="30">&nbsp;</td>
   </tr>
</table>';




// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor" style="margin-top: 0px;">

',
empty($settings['boardname_posts_lastposts_nodisplay']) ? '<tr>
<td height="18" class="titlebg" width="30" align="center" valign="middle">
&nbsp;
</td>
<td height="18" class="titlebg">
<font style="font-size: 8pt">'. $txt[20].'</font>
</td>
<td height="18" class="titlebg" valign="middle" align="center" style="width: 12px;">
<font style="font-size: 8pt">'. $txt[21].'</font>
</td>
<td height="18" class="titlebg" valign="middle" align="center" style="width: 12px;">
<font style="font-size: 8pt">'. $txt[330].'</font>
</td>
<td height="18" class="titlebg" valign="middle" align="center" width="25%">
<font style="font-size: 8pt">'. $txt[22].'</font>
</td>
</tr>' : '' ;

[/b]

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #3 on: June 11, 2010, 03:55:15 PM »
Ektekini deneyin.
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #4 on: June 11, 2010, 04:24:50 PM »
Ektekini deneyin.

Denedim olmadı.Tüm sayfa gitti sadece {'portal_above' adlı teması yüklenemiyor.} çıktı.

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #5 on: June 11, 2010, 04:52:13 PM »
Bizzat denedim, hata vermiyor.
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #6 on: June 11, 2010, 05:36:27 PM »
Bende neden hata verdi bilmiyorum.

Edit:Txt'de açtığımda kodlar yatay halde uzuyor,Normalde dikey halde aşağıya doğru gidiyordu sorun ondan olabilirmi?

http://hayalperest.in/01.jpg

« Last Edit: June 11, 2010, 05:43:40 PM by erol_unver »

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #7 on: June 12, 2010, 03:33:04 AM »
Evet, ondan kaynaklanıyor. portal _above temasını yorum satırı olarak okuyor. Aşağıdaki kodu Portal.template.php olarak kaydedin:
Code: [Select]
<?php
// Version: 2.3; Portal

function template_portal_above()
{
global $context$modSettings;

if (empty($modSettings['sp_disable_side_collapse']) && ((!empty($modSettings['showleft']) && !empty($context['SPortal']['blocks'][1])) || (!empty($modSettings['showright']) && !empty($context['SPortal']['blocks'][4]))))
{
echo '
<div class="sp_right sp_fullwidth">'
;

if (!empty($modSettings['showleft']) && !empty($context['SPortal']['blocks'][1]))
echo '
<a href="#side" onclick="return sp_collapseSide(1)">'
sp_embed_image($context['SPortal']['sides'][1]['collapsed'] ? 'expand' 'collapse'''nullnulltrue'sp_collapse_side1'), '</a>';

if (!empty($modSettings['showright']) && !empty($context['SPortal']['blocks'][4]))
echo '
<a href="#side" onclick="return sp_collapseSide(4)">'
sp_embed_image($context['SPortal']['sides'][4]['collapsed'] ? 'expand' 'collapse'''nullnulltrue'sp_collapse_side4'), '</a>';

echo '
</div>'
;
}

echo '
<table id="sp_main">
<tr>'
;

if (!empty($modSettings['showleft']) && !empty($context['SPortal']['blocks'][1]))
{
echo '
<td id="sp_left"'
, !empty($modSettings['leftwidth']) ? ' width="' $modSettings['leftwidth'] . '"' ''$context['SPortal']['sides'][1]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' '''>';

foreach ($context['SPortal']['blocks'][1] as $block)
template_block($block);

echo '
</td>'
;
}

echo '
<td id="sp_center">'
;

if (!empty($context['SPortal']['blocks'][2]))
foreach ($context['SPortal']['blocks'][2] as $block)
template_block($block);
}

function 
template_portal_below()
{
global $context$modSettings;

echo '
<br />'
;

if (!empty($context['SPortal']['blocks'][3]))
foreach ($context['SPortal']['blocks'][3] as $block)
template_block($block);

echo '
</td>'
;

if (!empty($modSettings['showright']) && !empty($context['SPortal']['blocks'][4]))
{
echo '
<td id="sp_right"'
, !empty($modSettings['rightwidth']) ? ' width="' $modSettings['rightwidth'] . '"' ''$context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' '''>';

foreach ($context['SPortal']['blocks'][4] as $block)
template_block($block);

echo '
</td>'
;
}
echo '
</tr>
</table>'
;
}

function 
template_block($block)
{
global $settings;

if ($block['type'] == 'sp_boardNews')
{
$block['type']($block['parameters'], $block['id']);

return;
}

echo '
<div class="sp_block'
, !empty($block['style']['no_body']) ? '' ' tborder''">
<table class="sp_block">'
;

if (empty($block['style']['no_title']))
{
echo '
<tr>
<td background="' 
$settings['images_url'] . '/catbgsol.gif" width="10" height="30"></td>
<td class="sp_block_padding '
$block['style']['title']['class'], '"', !empty($block['style']['title']['style']) ? ' style="' $block['style']['title']['style'] . '"' '''>';

if (empty($block['force_view']))
echo '
<a class="sp_float_right" href="javascript:void(0);" onclick="sp_collapseBlock(\''
$block['id'], '\')"><img id="sp_collapse_'$block['id'], '" src="'$settings['images_url'], $block['collapsed'] ? '/expand.gif' '/collapse.gif''" alt="*" /></a>';

echo '
'
parse_bbc($block['label']), '
</td>
<td background="' 
$settings['images_url'] . '/catbgsag.gif" width="42" height="30">&nbsp;</td>
</tr>'
;
}

echo '
<tr'
, (empty($block['force_view']) ? ' id="sp_block_' $block['id'] . '"' '') , $block['collapsed'] && empty($block['force_view']) ? ' style="display: none;"' '''>
<td'
, empty($block['style']['no_title']) ? ' colspan="3"' ''' class="sp_block_padding', empty($block['style']['body']['class']) ? '' ' ' $block['style']['body']['class'], '"', !empty($block['style']['body']['style']) ? ' style="' $block['style']['body']['style'] . '"' '''>';

$block['type']($block['parameters'], $block['id']);

echo '
</td>
</tr>
</table>
</div>
<br />'
;
}

?>
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #8 on: June 12, 2010, 05:29:52 AM »
Teşekkürler.Bloklar oldu ama Portal Haberleri Başlığı olmadı.

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #9 on: June 12, 2010, 01:59:03 PM »
./Sources/PortalBlocks.php'yi açın.
Code: (Bulun) [Select]
foreach ($return as $news)
{
echo '
<div class="tborder">
<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> | ', $news['timeyear'], '</td>
</tr>
<tr class="windowbg">
<td class="sp_regular_padding" colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" />
<div class="middletext">', $news['timeday'], ' ', $txt[525], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['timeday'], ' ', $txt[525], ' ', $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>
<br />';
}
Code: (Değiştirin) [Select]
foreach ($return as $news)
{
echo '
<div class="sp_block">
<table class="sp_block">
<tr>
<td background="' . $settings['images_url'] . '/catbgsol.gif" width="10" height="30"></td>
<td class="catbg sp_block_padding" style="padding: 5px 5px 5px 10px;">', $news['icon'], '&nbsp;<a href="', $news['href'], '" >', $news['subject'], '</a> | ', $news['timeyear'], '</td>
<td background="' . $settings['images_url'] . '/catbgsag.gif" width="42" height="30">&nbsp;</td>
</tr>
<tr class="windowbg">
<td class="sp_block_padding" colspan="3">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" />
<div class="middletext">', $news['timeday'], ' ', $txt[525], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['timeday'], ' ', $txt[525], ' ', $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="3">
<div class="sp_right sp_block_padding">', $news['link'], '</div>
</td>
</tr>
</table>
</div>
<br />';
}
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #10 on: June 12, 2010, 03:00:21 PM »
Çok Teşekkürler.Sorun Çözüldü.

Edit: Başka konu açmak istemedim.Aşağıdaki resimde belirttiğim yazıyı nasıl ortalarım aşağıya doğru.Çok Teşekkürler.

« Last Edit: June 12, 2010, 04:24:56 PM by erol_unver »

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #11 on: June 12, 2010, 05:42:19 PM »
Yukarıdaki koddaki catbg sp_block_paddingden sonra sp_middle ekleyin.
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #12 on: June 12, 2010, 05:57:11 PM »
Ekledim hiçbir etkisi olmadı.

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Portal Catbg'lerini Kişileştirme
« Reply #13 on: June 12, 2010, 06:44:35 PM »
Üzgünüm, daha fazla yardımcı olamıyacağım. Tasarımcı yeteneğimden geleni yaptım. :) Google'da CSS ile araştırmalar yaparak belki siz çözüme ulaşabilirsiniz.
my modsI don't reply support PMs. Please use support forums.

Offline erol_unver

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.1
  • SP Version: 2.3.1
Re: Portal Catbg'lerini Kişileştirme
« Reply #14 on: June 13, 2010, 03:05:57 AM »
Olsun Önemli Değil.Yardımların İçin Çok Teşekkürler.