Smf Social Bookmarks(Konuyu Paylaş)

Hello, welcome back!

We want to bring together those who have knowledge and those who need it, to bring together people with different perspectives so that they can understand each other better and to enable everyone to share their knowledge.

  • 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.

orhan

Moderator
Joined
Dec 5, 2018
Messages
466
Reaction score
95
Points
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
Code:
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';

altina ekle

Code:
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
Code:
/* 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

Code:
// 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>';
 
Back
Top Bottom