Smf Social Bookmarks(Konuyu Paylaş)

orhan

Moderator
Katılım
5 Ara 2018
Mesajlar
466
Tepkime puanı
93
Puanları
28
2jwfn7.png


Bu modu bir kac kişi istemişti yapmami zaman bulamamiştim yapmaya bir şeyler yapmaya caliştim umarim işinizi görür ben font icon kulandim görselerde siz isterseniz ikon kulana bilirsiniz

temanizin Display.templete.php dosyasinda

bul
Kod:
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';

altina ekle

Kod:
if ($message['id'] == $context['first_message'])
echo '

<ul class="sharepost">
                <li><a class="twitter"rel="nofollow"href="http://twitter.com/share?url=', $scripturl, '/topic,',$context['current_topic'], '.', $message['counter'], ';msg', $message['id'], '&title=Remember This Site" target="twitter"><i class="fa fa-twitter"/>Tweet</i></a></li>
 
                <li><a class="facebook" rel="nofollow"href="http://www.facebook.com/sharer.php?u=', $scripturl, '/topic,',$context['current_topic'], '.', $message['counter'], ';msg', $message['id'], '&title=Remember This Site" target="Share"><i class="fa fa-facebook"/>facebook</i></a></li>

                <li><a class="gplus" rel="nofollow"href="http://plus.google.com/share?url=', $scripturl, '/topic,',$context['current_topic'], '.', $message['counter'], ';msg', $message['id'], '&title=Remember This Site" target="google-plus"><i class="fa fa-google-plus"/>google-plus</i></a></li>

 <li><a class="linkedin" rel="nofollow"href="http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=', $scripturl, '/topic,',$context['current_topic'], '.', $message['counter'], ';msg', $message['id'], '&title=Remember This Site" target="linkedin"><i class="fa fa-linkedin"/>linkedin</i></a></li>

                <li><a class="pinterest" rel="nofollow"href="http://pinterest.com/pin/create/button/?url=', $scripturl, '/topic,',$context['current_topic'], '.', $message['counter'], ';msg', $message['id'], '&title=Remember This Site" target="pinterest"><i class="fa fa-pinterest"/>pinterest</i></a></li>
</ul>';

temanizin index.css,inde

uygun bir yere ekleyin
Kod:
/* CSS Share Button */
.sharepost li{width: 9%;padding:0;list-style:none;}
.sharepost li a{padding: 5px 0px;background-color:#aaa;color:#fff;display:block;border-radius:2px;}
.sharepost{overflow:hidden;text-align:center;margin-bottom: 0px;}
.sharepost li a:hover{opacity:1;color:#fff;}
.sharepost li .twitter:hover{background-color:#55acee}
.sharepost li .facebook:hover{background-color:#3b5998}
.sharepost li .gplus:hover{background-color:#dd4b39}
.sharepost li .pinterest:hover{background-color:#cc2127}
.sharepost li .linkedin:hover{background-color:#0976b4}
.sharepost li{float:left;margin-right: 0.2%;}
.sharepost li:last-child{margin-right:0}
.sharepost li .fa:before{margin-right:5px}
 
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>'; hocam bu kodu bulamadım. Benzer bir kod var altına sizin verdiğiniz kodları ekleyince hata veriyor
 
Bulmanız gereken kod bunun altina ekleyin

Kod:
// Show the member's signature?
	if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
		echo '
							<div class="signature" id="msg_', $message['id'], '_signature"', $ignoring ? ' style="display:none;"' : '', '>
								', $message['member']['signature'], '
							</div>';
 

Yasal Uyarı

İçerik sağlayıcı paylaşım sitesi olarak hizmet veren webtiryakin.com 5651 sayılı kanunun 8. maddesine ve T.C.Knın 125. maddesine göre tüm üyelerimiz yaptıkları paylaşımlardan kendileri sorumludur. Hukuka ve mevzuata aykırı olduğunu düşündüğünüz içeriği BURADAN bildirebilirsiniz. Kısa sürede dönüş yapmaya çalışacağız.
Geri
Üst