simple portal devamını oku,yorum yaz yerine buton yapmak

Başlatan rock3r, 06 Eyl 2015 00:30

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 277

  2. 41

  3. 17

smf de simple portal kullanmaktayım gayet kullanışlı gayetde memnunum . Benim sormak istediğim başlıktan da anlaşılacağı gibi portal da bulunan haberler kısmında bulunan devamını oku ve Yorum yaz yerine buton yerleştirmek istiyorum .

şuan ki görünümü bu şekilde .



  olmasını istediğim vb.

2. resimdekiler temsilidir . sadece onlar gibi buton olmasını istediğimin görsel karşılığı olarak düşünün .

Bu konuda yardımlarınızdan ötürü çok teşekkürler.   



*

  1. 3,263

  2. 596

  3. 1077
sources/PortalBlocks.php de bul
'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>',
değiştir
'comment_link' => !empty($row['locked']) ? '' : '| <a class="snrjButton" 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>',

portal.css ekle
.snrjButton {
-moz-box-shadow: 0px 10px 14px -7px #3e7327;
-webkit-box-shadow: 0px 10px 14px -7px #3e7327;
box-shadow: 0px 10px 14px -7px #3e7327;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #77b55a), color-stop(1, #72b352));
background:-moz-linear-gradient(top, #77b55a 5%, #72b352 100%);
background:-webkit-linear-gradient(top, #77b55a 5%, #72b352 100%);
background:-o-linear-gradient(top, #77b55a 5%, #72b352 100%);
background:-ms-linear-gradient(top, #77b55a 5%, #72b352 100%);
background:linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77b55a', endColorstr='#72b352',GradientType=0);
background-color:#77b55a;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
border:1px solid #4b8f29;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:13px;
font-weight:bold;
padding:6px 12px;
text-decoration:none;
text-shadow:0px 1px 0px #5b8a3c;
}
.snrjButton:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #72b352), color-stop(1, #77b55a));
background:-moz-linear-gradient(top, #72b352 5%, #77b55a 100%);
background:-webkit-linear-gradient(top, #72b352 5%, #77b55a 100%);
background:-o-linear-gradient(top, #72b352 5%, #77b55a 100%);
background:-ms-linear-gradient(top, #72b352 5%, #77b55a 100%);
background:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#72b352', endColorstr='#77b55a',GradientType=0);
background-color:#72b352;
}
.snrjButton:active {
position:relative;
top:1px;
}

*

  1. 277

  2. 41

  3. 17

*

  1. 3,263

  2. 596

  3. 1077

pardon ya kodlara tam bakmadan yazmıştım
sources/PortalBlocks.php de bul ve class="snrjButton" sil (bu kısım fazlalık olmuş)
'comment_link' => !empty($row['locked']) ? '' : '| <a class="snrjButton" href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
dediğin yeri yapmak için bu koduclass="snrjButton" alttaki a tagına ekle
bul
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',şu şekilde
'link' => '<a class="snrjButton" href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',

*

  1. 277

  2. 41

  3. 17
teşekkürler snrj oldu . Biraz geç yazdım yeni geçtim pc başına .

*

  1. 3,263

  2. 596

  3. 1077
güle güle kullanın
daha fazla buton için http://www.bestcssbuttongenerator.com/ sitesine bakabilirsin
beğendiğin butonu seç sonra altındaki get css tıkla
portal.css ekle mybutton kısımları snrjbutton olarak değiştir 

*

  1. 277

  2. 41

  3. 17
Sağolasın üstad eminim benim gibi bunu yapmayı düşünen çok kişi vardır .

*

  1. 3,263

  2. 596

  3. 1077

umarım faydalı olur


Benzer Konular (5)


MENU ×