02 Nis 2023 05:16 Yeni Konu Oluştur

Haberler:

Sitemiz Smf 2.1 ve Smf 2.0 sürümleri için Destek ve Tema paylaşım forumudur


Konusal Profil ve Mesaj Bölümü

Başlatan tetik, 13 Nis 2018 21:32

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 35

  2. 13

  3. 4

Merhaba arkadaşlar

Artık baktımda eski bilgilerden eser kalmamış snrj arkadaşın yaptıgı bit temada bir kaç şey çok hoşuma gitti ve kendisinden bu temadaki güzellikleri paylaşmasını rica edeceğim tabi mahsuru yok ise

ekteki konu içinde profil önizlemesi ve mesaj alanı kendi temama nasıl entegre ederim kodlarını paylaşırsa çok sevinirim..

Teşekkür ediyorum...

*

  1. 35

  2. 13

  3. 4
Birde bu vardı arkadaşlar unuttum bunun kodlaması nasıl eklerim

*

  1. 3,263

  2. 596

  3. 1077
öncelikle alttakileri iyice okuyun ve değişim yapmadan önce dosya yedeklerinizi alın lütfen
ilk isteğiniz biraz detaylı bir iş sitenize baktım kullandığınız tema bootstrap ile yapılmamış temayı tekrardan yapılandırmak gerekecek
kısaca değineyim bootstrap js ve css dosyalarına burdan veya dokuzharf teması içinden kopyalayıp alabilirisiniz
size yol göstermesi açısından özellikle modal olayı  şu siteyede bir bakın
temanızın index.template.php dosyasında head tagları arasına bootsrap eklediyseniz direk dokuzharf temesındaki display.template yi de kullanırsanız pek sıkıntı çıkartacanı sanmam


ikinci isteğinize gelirsek
temanızın  varsa Settings.template.php , yoksa default temadakine
bul
array(
'id' => 'smiley_sets_default',
'label' => $txt['smileys_default_set_for_theme'],
'options' => $context['smiley_sets'],
'type' => 'text',
),
altına ekle
'',
array(
'id' => 'dsocial',
'label' => $txt['dsocial'],
),
array(
'id' => 'dyoutube',
'label' => $txt['dyoutube'],
),
array(
'id' => 'dyoutubehref',
'label' => $txt['dyoutubehref'],
'type' => 'text',
),
array(
'id' => 'dfacebook',
'label' => $txt['dfacebook'],
),
array(
'id' => 'dfacebookhref',
'label' => $txt['dfacebookhref'],
'type' => 'text',
),
array(
'id' => 'dtwiter',
'label' => $txt['dtwiter'],
),
array(
'id' => 'dtwiterhref',
'label' => $txt['dtwiterhref'],
'type' => 'text',
),
array(
'id' => 'dgoogle',
'label' => $txt['dgoogle'],
),
array(
'id' => 'dgooglehref',
'label' => $txt['dgooglehref'],
'type' => 'text',
),
array(
'id' => 'dinstagram',
'label' => $txt['dinstagram'],
),
array(
'id' => 'dinstagramhref',
'label' => $txt['dinstagramhref'],
'type' => 'text',
),
array(
'id' => 'dskype',
'label' => $txt['dskype'],
),
array(
'id' => 'dskypehref',
'label' => $txt['dskypehref'],
'type' => 'text',
),
array(
'id' => 'dgithub',
'label' => $txt['dgithub'],
),
array(
'id' => 'dgithubhref',
'label' => $txt['dgithubhref'],
'type' => 'text',
),
'',
Themes/default/languages/index.turkish.php veya index.turkish-utf8.php dosyasında
bul
?>öncesine ekle
$txt['dsocial'] ='Sağ Menü ve Social iconlar devre dışı bırak';
$txt['dyoutube'] ='Youtube Buttonu devre dışı bırak';
$txt['dyoutubehref'] ='Youtube Linkini Giriniz';
$txt['dfacebook'] ='Facebook Buttonu devre dışı bırak';
$txt['dfacebookhref'] ='Facebook Linkini Giriniz';
$txt['dtwiter'] ='Twiter Buttonu devre dışı bırak';
$txt['dtwiterhref'] ='Twiter Linkini Giriniz';
$txt['dgoogle'] ='Google Buttonu devre dışı bırak';
$txt['dgooglehref'] ='Google Linkini Giriniz';
$txt['dinstagram'] ='instagram Buttonu devre dışı bırak';
$txt['dinstagramhref'] ='instagram Linkini Giriniz';
$txt['dskype'] ='Skype Buttonu devre dışı bırak';
$txt['dskypehref'] ='Skype Linkini Giriniz';
$txt['dgithub'] ='Github Buttonu devre dışı bırak';
$txt['dgithubhref'] ='Github Linkini Giriniz';

temanızın index.template.php dosyasında
bul
echo '
</body></html>';
öncesine ekle
if(empty($settings['dsocial']))
{
echo'<div class="dsocial">
<a href="#" id="scrlTop"><span class="togle ust"></span></a>';
if(empty($settings['dyoutube']))
echo'', empty($settings['dyoutubehref']) ? '<span class="dokuzharfsocial youtube"></span>' : '<a href="'.$settings['dyoutubehref'].'" title="Youtube" target="_blank"><span class="dokuzharfsocial youtube"></span></a>', '';
if(empty($settings['dfacebook']))
echo'', empty($settings['dfacebookhref']) ? '<span class="dokuzharfsocial facebook"></span>' : '<a href="'.$settings['dfacebookhref'].'" title="Facebook" target="_blank"><span class="dokuzharfsocial facebook"></span></a>', '';
if(empty($settings['dtwiter']))
echo'', empty($settings['dtwiterhref']) ? '<span class="dokuzharfsocial twiter"></span>' : '<a href="'.$settings['dtwiterhref'].'" title="Twiter" target="_blank"><span class="dokuzharfsocial twiter"></span></a>', '';
if(empty($settings['dgoogle']))
echo'', empty($settings['dgooglehref']) ? '<span class="dokuzharfsocial google"></span>' : '<a href="'.$settings['dgooglehref'].'" title="Google" target="_blank"><span class="dokuzharfsocial google"></span></a>', '';
if(empty($settings['dinstagram']))
echo'', empty($settings['dinstagramhref']) ? '<span class="dokuzharfsocial instagram"></span>' : '<a href="'.$settings['dinstagramhref'].'" title="instagram" target="_blank"><span class="dokuzharfsocial instagram"></span></a>', '';
if(empty($settings['dskype']))
echo'', empty($settings['dskypehref']) ? '<span class="dokuzharfsocial skype"></span>' : '<a href="'.$settings['dskypehref'].'" title="Skype" target="_blank"><span class="dokuzharfsocial skype"></span></a>', '';
if(empty($settings['dgithub']))
echo'', empty($settings['dgithubhref']) ? '<span class="dokuzharfsocial github"></span>' : '<a href="'.$settings['dgithubhref'].'" title="Github" target="_blank"><span class="dokuzharfsocial github"></span></a>', '';
echo'
<a href="#" id="scrlBotm"><span class="togle alt"></span></a>
</div>
<script type="text/javascript"><!-- // --><![CDATA[
$(function () { $(\'#scrlBotm\').click(function () { $(\'html, body\').animate({ scrollTop: $(document).height() }, 1500); return false; }); $(\'#scrlTop\').click(function () { $(\'html, body\').animate({ scrollTop: \'0px\' }, 1500); return false; }); });
// ]]></script>';
}
temanızın index.css dosyasında en alta ekleyin
.dsocial{right:0;position: fixed;top: 150px;background:linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%);border:1px solid #ccc; border-radius: 12px 0 0 12px;padding: 1px;}
.dokuzharfsocial{width:24px;height:26px;display:block;background:url(../images/dokuzharfsocial.png) no-repeat -0px -0px;vertical-align:middle;}
.dokuzharfsocial.youtube{background-position:0 0;}
.dokuzharfsocial.youtube:hover{background-position:-26px 0;}
.dokuzharfsocial.facebook{background-position:0 -34px;}
.dokuzharfsocial.facebook:hover{background-position:-26px -34px;}
.dokuzharfsocial.twiter{background-position:0 -68px;}
.dokuzharfsocial.twiter:hover{background-position:-26px -68px;}
.dokuzharfsocial.instagram{background-position:0 -102px;}
.dokuzharfsocial.instagram:hover{background-position:-26px -102px;}
.dokuzharfsocial.google{background-position:0 -136px;}
.dokuzharfsocial.google:hover{background-position:-26px -136px;}
.dokuzharfsocial.skype{background-position:0 -170px;}
.dokuzharfsocial.skype:hover{background-position:-26px -170px;}
.dokuzharfsocial.github{background-position:0 -204px;}
.dokuzharfsocial.github:hover{background-position:-26px -204px;}
.togle{width:20px;height:17px;display:block;background:url(../images/toggle.png) no-repeat -0px -0px;vertical-align:middle;margin: 5px 0px 0px 5px;}
.togle.ust{background-position:0 0;}
.togle.alt{background-position: 0 -17px;margin-bottom: 5px;}
ekteki iki resimide temanızın images klasörüne atınız
not bu şekilde çalışması lazım çalışmazsa sitenizde jguery ekli değildir index.template.php
</head>bulun ve öncesine ekleyin
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>


Benzer Konular (5)


MENU ×