Beğen Butonu Sorunu

Başlatan i30Türkiye, 27 Şub 2016 10:36

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.



  1. 632

  2. 252

Merhabalar ;

tarantula901 arkadaşımın bir yerdeki metininden yaptığım kadarıyla oldu ama tüm mesajlarda gözükmüyor bunu nasıl sağlayabileceğiz.Yada böyle daha güzel beğen butonları varmıdır.

if ($message['id'] ==   $context['first_message'])
{
echo'
<iframe src="http://www.facebook.com/plugins/like.php?href=', $scripturl, '?topic=', $message['id'], '&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
';
}

first message yerine başka bir parametremi yazmamız gerekiyor ?

*

  1. 3,263

  2. 596

  3. 1077
social media için epeyce mod var
http://custom.simplemachines.org/mods/index.php?mod=3559
http://custom.simplemachines.org/mods/index.php?mod=2810
http://custom.simplemachines.org/mods/index.php?mod=967
profil için
http://custom.simplemachines.org/mods/index.php?mod=3304


$context['first_message']  = konun ilk mesajında göstermek için

if ($message['id']) bu şekilde yaparsanız her mesajın altında çıkacaktır



  1. 632

  2. 252
Alıntı yapılan: snrj - 27 Şub 2016 11:13social media için epeyce mod var
http://custom.simplemachines.org/mods/index.php?mod=3559
http://custom.simplemachines.org/mods/index.php?mod=2810
http://custom.simplemachines.org/mods/index.php?mod=967
profil için
http://custom.simplemachines.org/mods/index.php?mod=3304


$context['first_message']  = konun ilk mesajında göstermek için

if ($message['id']) bu şekilde yaparsanız her mesajın altında çıkacaktır


firstmessage kaldırdığım zamna ayrıştırma hatası veriyor. Birkaç deneme yaılma yöntemi yaptım ama bir türlü olmadı.Yukardaki verdiğim kodda neyi eksiltip neyi arttırıcam bir yazarsanız sevinirim.

*

  1. 150

  2. 40

  3. 175

temanizin Display.templete.php dosyasinda

bul

<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
altina ekle

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

/* 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}



ben font icon kulandim görselerde siz isterseniz ikon kulana bilirsiniz.



  1. 632

  2. 252
Alıntı yapılan: gecitli - 27 Şub 2016 11:45temanizin Display.templete.php dosyasinda

bul

<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
altina ekle

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

/* 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}



ben font icon kulandim görselerde siz isterseniz ikon kulana bilirsiniz.

Paylaşımınız için çok teşekkür ederim. Ama istediğim şey smf.konusal.com daki gibi mesaj içinde sorunsuz her mesajda gözükecek bir beğen butonuydu. Detaylı birşey istememiştim.Yinede çok teşekkürler.

*

  1. 3,263

  2. 596

  3. 1077
geçitli hocam benden önce belirtmiş saolsun

her mesajda çıkması için verlien kodlarda bul
if ($message['id'] == $context['first_message'])değiştir
if ($message['id'])



  1. 632

  2. 252
Alıntı yapılan: snrj - 27 Şub 2016 11:50geçitli hocam benden önce belirtmiş saolsun

her mesajda çıkması için verlien kodlarda bul
if ($message['id'] == $context['first_message'])değiştir
if ($message['id'])

 Çok sağol sayın snrj. Yaptığım hatayı simdi anladım gülmekten ölürüz:) eşittir işaretlerinin yaına parantez koymuşum aslında eşittirleri silecekmişim. ;D  ;D  ;D 

Birde karma modundaki arttır azalt yerine icon koyabliyorduk onun kodlaması hangi dosyada acaba. Birde resim için tam kod ne yazılacaksa rica edicem sizden  8)



*

  1. 3,263

  2. 596

  3. 1077

http://smf.konusal.com/index.php?topic=1000.0



  1. 632

  2. 252



  1. 632

  2. 252
Alıntı yapılan: snrj - 27 Şub 2016 11:57http://smf.konusal.com/index.php?topic=1000.0

Sayın snrj hocam , acaba butonlarla aynı çerçeve içine alabilmemiz mümkünmü. Yine aynı şekilde ama , aynı çerçevede olacak.




Benzer Konular (5)


MENU ×