Neler yeni
Image 1

Style WGrid

Style WGrid The simplest and fastest way to build great UI for your community. Our beautifully designed theme comes with hundreds of customizable features.

Buy Now
Image 2

Kali Xenforo Theme

Attract members with an elegant design, present your community and destinations in great detail, and have members enjoy the time. Kali is a professional theme that is a great choice for XenForo users.

Buy Now
Image 3

SenSai

We are glad to release the SenSai theme. It’s a clean and simple style that fully supports the latest XenForo community software. SenSai is fully responsive and retina-ready. It will look great on any desktop, laptop, tablet, or smartphone. the Plain theme will help you to build a popular community.

Buy Now
Image 4

W7

Style W7 The simplest and fastest way to build great UI for your community. Our beautifully designed theme comes with hundreds of customizable features.

Soon
  • Sitemiz Bir Webmaster forumu ve tartışma platformu dur webmaster forumu dışındaki konular yasaktır direkt silinecektir.
  • Our site is a Webmaster forum and discussion platform. Topics outside the webmaster forum are prohibited and will be deleted immediately.

SMF 2.1 RC2 Webtiryaki PostBit

  • Konuyu Başlatan Konuyu Başlatan orhan
  • Başlangıç tarihi Başlangıç tarihi

orhan

Moderator
Katılım
5 Ara 2018
Mesajlar
466
Tepkime puanı
94
Puanları
28
Display.template.php
bul
Find
Kod:
<div class="post_wrapper">';

Değiştir
Replace With
Kod:
<div class="post_wrapper message-inner">';

Bul
Find:
Kod:
<div class="poster">';

Değiştir
Replace With
Kod:
<div class="poster message-cell message-cell--user">';

Bul
Find:
Kod:
<h4>';

Ustune ekle
Add Before
Kod:
<ul class="user_info">';

 // Show the user's avatar.
 if (!empty($modSettings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
 echo '
 <li class="avatar avatar_d">
 <a href="', $message['member']['href'], '">', $message['member']['avatar']['image'], '</a>
 </li>

Bul
Find:
Kod:
</h4>
 <ul class="user_info">';

 // Show the user's avatar.
 if (!empty($modSettings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
 echo '
 <li class="avatar">
 <a href="', $message['member']['href'], '">', $message['member']['avatar']['image'], '</a>
 </li>';

Değiştir
Replace With
Kod:
</h4>';

Bul
Find:
Kod:
<li class="membergroup">', $message['member']['group'], '</li>';

Sonrasina ekle
Add After

Kod:
// Show the member's custom title, if they have one.
 if (!empty($message['member']['title']))
 echo '
 <li class="title">', $message['member']['title'], '</li>';

 // Don't show these things for guests.
 if (!$message['member']['is_guest'])
 {
 // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
 if ((empty($modSettings['hide_post_group']) || empty($message['member']['group'])) && !empty($message['member']['post_group']))
 echo '
 <li class="postgroup">', $message['member']['post_group'], '</li>';

Bul
Find:
Kod:
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

Değiştir
Replace With
Kod:
<span class="floatright">(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</span></li>';

Bul Sil
Find Delete
Kod:
// Show the member's custom title, if they have one.
 if (!empty($message['member']['title']))
 echo '
 <li class="title">', $message['member']['title'], '</li>';

 // Don't show these things for guests.
 if (!$message['member']['is_guest'])
 {
 // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
 if ((empty($modSettings['hide_post_group']) || empty($message['member']['group'])) && !empty($message['member']['post_group']))
 echo '
 <li class="postgroup">', $message['member']['post_group'], '</li>';

Bul Sil
Find Delete
Kod:
// Show the member's custom title, if they have one.
 if (!empty($message['member']['title']))
 echo '
 <li class="title">', $message['member']['title'], '</li>';

 // Don't show these things for guests.
 if (!$message['member']['is_guest'])
 {
 // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
 if ((empty($modSettings['hide_post_group']) || empty($message['member']['group'])) && !empty($message['member']['post_group']))
 echo '
 <li class="postgroup">', $message['member']['post_group'], '</li>';

Bul
Find
Kod:
<li class="email"><a href="mailto:' . $message['member']['email'] . '" rel="nofollow">', ($settings['use_image_buttons'] ? '<span class="main_icons mail centericon" title="' . $txt['email'] . '"></span>' : $txt['email']), '</a></li>';

Sonrasina Ekle
Add After
Kod:
// Any custom fields to show as icons?
 if (!empty($message['custom_fields']['icons']))
 {
 echo '
 <li class="im_icons">';

 foreach ($message['custom_fields']['icons'] as $custom)
 echo '
 <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>';

 echo '
 </li>';
 }

Bul
Find
Kod:
// Poster info ends.
 echo '

Sonrasina Ekle
Add After
Kod:
<span class="message-userArrow"></span>

Bul
Find
Kod:
<div class="postarea">

Değiştir
Replace With
Kod:
<div class="postarea message-cell message-cell--main">

Bul Sil
Find Delete
Kod:
</div><!-- .postarea -->

Bul
Find
Kod:
</div><!-- .moderatorbar -->

Altina Ekle
Add After
Kod:
</div><!-- .postarea -->

Index.css

Ekleyin
Add After
Kod:
/* Display Duzenleme */
#forumposts .windowbg {
    color: #141414;
    background: #fefefe;
    border-width: 1px;
    border-style: solid;
    border-top-color: #dfdfdf;
    border-right-color: #d8d8d8;
    border-bottom-color: #cbcbcb;
    border-left-color: #d8d8d8;
    border-radius: 4px;
    padding: 0px 0px;
}
.message-inner {
    display: flex;
}
.message-cell.message-cell--user {
    flex: 0 0 159px;
}
.message-cell.message-cell--user, .message-cell.message-cell--action {
    position: relative;
    background: #f5f5f5;
    border-right: 1px solid #d8d8d8;
    min-width: 0;
}
.message-cell {
    display: block;
    vertical-align: top;
    padding: 10px;
}
.user_info {
    margin: 3px 0 0 0;
}
.poster .avatar_d {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    margin-bottom: 10px;
}
.avatar.avatar--m {
    width: 96px;
    height: 96px;
    font-size: 58px;
}
.poster img.avatar {
    max-width: 100%;
    max-height: 100%;
    width: 96px;
    height: 96px;
    padding: 3px;
    border: 1px solid #bbb;
    background: none repeat scroll 0 0 #f8f9fa;
}
.profile_icons {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}
.message-cell.message-cell--main {
    padding-left: 15px;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    background: #fdfdfd;
}
.message-userArrow {
    position: absolute;
    top: 20px;
    right: -1px;
    border: 10px solid transparent;
    border-left-width: 0;
    border-right-color: #d8d8d8;
}
.message-userArrow:after {
    position: absolute;
    top: -9px;
    right: -11px;
    content: "";
    border: 9px solid transparent;
    border-left-width: 0;
    border-right-color: #fefefe;
}
.user_info .icons {
    text-align: center;
}
.user_info .postgroup {
    text-align: center;
}
@media (max-width: 650px) {
.message-inner {
 display: block;
}
#main_content_section {
 padding: 12px 12px 16px 12px;
}
.message-cell:first-child {
 border-radius: 0;
 border-top-left-radius: 3px;
 border-top-right-radius: 3px;
}
.message-cell.message-cell--user {
 width: auto;
 border-right: none;
 border-bottom: 1px solid #d8d8d8;
}
.message-userArrow {
 top: auto;
 right: auto;
 bottom: -1px;
 left: 24px;
 border: none;
 border: 10px solid transparent;
 border-top-width: 0;
 border-bottom-color: #d8d8d8;
}
.message-userArrow:after {
 top: auto;
 right: auto;
 left: -9px;
 bottom: -10px;
 border: none;
 border: 9px solid transparent;
 border-top-width: 0;
 border-bottom-color: #fefefe;
}
}

Bul
Find
Kod:
.poster h4 {
    font-size: 1.2em;
}

Değiştir
Replace With
Kod:
.poster h4 {
    font-size: 1.2em;
    text-align: center;
}

Bul Sil
Find Delete
Kod:
.postarea, .moderatorbar {
    margin: 0 0 0 175px;
}
 
Thank you very much for sharing, however when I make all the modifications my post section is very strange, as it also gives me some problems in my display.template default.
 
Buscador' Alıntı:
Thank you very much for sharing, however when I make all the modifications my post section is very strange, as it also gives me some problems in my display.template default.

Hello Try this, you may be making a mistake somewhere.
 
Thank you very much my dear orhan, you do not know how much I appreciate your help.
 
Geri
Üst Alt