avatar_orhan

SMF 2.1 RC2 Webtiryaki PostBit

Started by orhan, Jul 03, 2020, 11:49 AM

Previous topic - Next topic
Topic keywords [SEO] Smf2.1RC2Webtiryaki
Display.template.php
bul
Find
<div class="post_wrapper">';
Değiştir
Replace With
<div class="post_wrapper message-inner">';
Bul
Find:
<div class="poster">';
Değiştir
Replace With
<div class="poster message-cell message-cell--user">';
Bul
Find:
<h4>';
Ustune ekle
Add Before
<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:
</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
</h4>';
Bul
Find:
<li class="membergroup">', $message['member']['group'], '</li>';
Sonrasina ekle
Add After

// 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:
(<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
<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
// 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
// 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
<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
// 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
// Poster info ends.
 echo '

Sonrasina Ekle
Add After
<span class="message-userArrow"></span>
Bul
Find
<div class="postarea">
Değiştir
Replace With
<div class="postarea message-cell message-cell--main">
Bul Sil
Find Delete
</div><!-- .postarea -->
Bul
Find
</div><!-- .moderatorbar -->
Altina Ekle
Add After
</div><!-- .postarea -->
Index.css

Ekleyin
Add After
/* 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
.poster h4 {
    font-size: 1.2em;
}

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

Bul Sil
Find Delete
.postarea, .moderatorbar {
    margin: 0 0 0 175px;
}

Emeginiz icin teşekkür ederim hocam

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.

Quote from: Buscador on Jul 06, 2020, 01:06 AMThank 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.