Linkleri Buton Yapmak İstiyorum (Yanıtla, Anket Ekle, Alıntı, Değiştir vs.)

Started by OverTa[k]e, August 30, 2012, 01:31:00 PM

Previous topic - Next topic

OverTa[k]e

Merhaba arkadaşlar ,

Aşağıdaki yanıtla, anket ekle, haberdar et .... alıntı, değiştir, sil .... tüm bunları buton nasıl yapabiliriz ben denedim ancak tema farklı olduğu için ve bi türlü tam olmadı. Butonlar kaydı, hatalar vs. verdi. Bu konuda yardımcı olursanız sevinirim ..







Flypside


Temanın Display.template.php dosyasında
Burdan
// Maybe we can approve it, maybe we should?
Buraya kadar sil yazı hariç
// Can we restore topics?
Bul
// Can we restore topics?
Üstüne ekle
        // Maybe we can approve it, maybe we should?
        if ($message['can_approve'])
            echo '
              <a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"></a>';

        // Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                   <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                   <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '"><img src="' . $settings['images_url'] . '/buttons/duzenle.gif"></a>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                   <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"><img src="' . $settings['images_url'] . '/buttons/sil.gif"></a>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                   <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"><img src="' . $settings['images_url'] . '/buttons/bol.gif"></a>';


daha sonra temanın images klasorune buttons klasorune bol.gif sil.gif alinti.gif duzenle.gif isimli imageslerini at.

SMF SUPPORT SERVICE | SEO | PORTAL | FORUM | MOD | THEME | DATABASE | GOOGLE OPT vs..

contact: [email protected]


ingilizce dökümanları

Antes

Resimlerle uğraşmak istemezsen

http://www.simplemachines.org/community/index.php?topic=483315.0 < (Burada yeni.gif dosyasını nasıl CSS3 butona çevirebileceğimizi açıkladım ama CSS 'yi ve link class 'larını kullanarak butona çevirebilirsin)

OverTa[k]e

Öncelikle teşekkür ederim. Peki bunu nasıl yapacağız ?


// Multi Quote by NIBOGO
if ($context['can_reply'])
echo '
<li class="mquote" id="mquote_' . $message['id'] . '"><a href="javascript:void(0);" onclick="return mquote(' . $message['id'] . ',\'none\');">', $txt['multi_quote'], '</a></li>
<li class="mquote_remove" id="mquote_remove_' . $message['id'] . '"><a href="javascript:void(0);" onclick="return mquote(' . $message['id'] . ',\'remove\');">', $txt['multi_quote_remove'], '</a></li>';




Antes

// Multi Quote by NIBOGO
if ($context['can_reply'])
echo '
<li class="mquote" id="mquote_' . $message['id'] . '"><a href="javascript:void(0);" class="css3button" onclick="return mquote(' . $message['id'] . ',\'none\');">', $txt['multi_quote'], '</a></li>
<li class="mquote_remove" id="mquote_remove_' . $message['id'] . '"><a href="javascript:void(0);" class="css3button" onclick="return mquote(' . $message['id'] . ',\'remove\');">', $txt['multi_quote_remove'], '</a></li>';

olarak yapabilirsiniz.

OverTa[k]e

Teşekkür ederim Antes, ayrıca pm attım. Ancak ben Flypside 'a sormuştum :)




Antes

Bunu
padding: 2px;
bununla değiştirirmisiniz ?
padding-top: 2px;
padding-bottom: 2px;


Antes

acaba localde mi değişiklik yapıyorsunuz yoksa, sitenizde mi ? yaptığınız değişikliği görebileceğim bi site var mı ? Size ona göre bi çözüm üretebileyim.

OverTa[k]e

Quote from: Antes on August 30, 2012, 05:48:22 PM
acaba localde mi değişiklik yapıyorsunuz yoksa, sitenizde mi ? yaptığınız değişikliği görebileceğim bi site var mı ? Size ona göre bi çözüm üretebileyim.

Profilimde yer alan site




Antes

Ben değişik bi şey göremiyorum hala butonlar <span> Lütfen daha detaylı bilgi sağlayın veya görmemi sağlayın

OverTa[k]e

Quote from: Antes on August 30, 2012, 06:48:11 PM
Ben değişik bi şey göremiyorum hala butonlar <span> Lütfen daha detaylı bilgi sağlayın veya görmemi sağlayın

Anladım, buyrun üyelik

denemeuye
123321



Bu arada Flypside nin söylediği gibi bunu nasıl yapabilirim ?

// Multi Quote by NIBOGO
if ($context['can_reply'])
echo '
<li class="mquote" id="mquote_' . $message['id'] . '"><a href="javascript:void(0);" onclick="return mquote(' . $message['id'] . ',\'none\');">', $txt['multi_quote'], '</a></li>
<li class="mquote_remove" id="mquote_remove_' . $message['id'] . '"><a href="javascript:void(0);" onclick="return mquote(' . $message['id'] . ',\'remove\');">', $txt['multi_quote_remove'], '</a></li>';





Antes

ul.quickbuttons li a {
display: block;
float: left;
height: 20px;
line-height: 18px;
padding: 0px 0px 0px 20px;
}


Buradaki padding butona vereceğiniz padding 'i önceden belirlediği için, çok fazla sağa doğru gözüküyor, bütün butonlarınızı güncelleyeceksiniz (öyle sanıyorum)

padding: 0px 5px; olarak değiştirin (böyle yaparsanız yazılar ikonlarla çakışık gözükecektir, ikonları da kaldırmanız gerekebilir)

ya da

padding: 0px 5px 0px 20px;

yaparak, Çoklu altıntı kısmına da bir ikon eklersiniz.

OverTa[k]e

Yazı ortalamasını yaptım hocam ,  ikonda ekledim oda iyi oldu peki diğerlerini yani aşağıdakileri nasıl css yapabilirim ??

        // Maybe we can approve it, maybe we should?
        if ($message['can_approve'])
            echo '
              <a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"></a>';

        // Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                   <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                   <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '"><img src="' . $settings['images_url'] . '/buttons/duzenle.gif"></a>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                   <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"><img src="' . $settings['images_url'] . '/buttons/sil.gif"></a>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                   <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"><img src="' . $settings['images_url'] . '/buttons/bol.gif"></a>';




OverTa[k]e

Quote from: BA on August 30, 2012, 08:45:59 PM
Yazı ortalamasını yaptım hocam ,  ikonda ekledim oda iyi oldu peki diğerlerini yani aşağıdakileri nasıl css yapabilirim ??

        // Maybe we can approve it, maybe we should?
        if ($message['can_approve'])
            echo '
              <a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"></a>';

        // Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                   <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '"><img src="' . $settings['images_url'] . '/buttons/alinti.gif"></a>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                   <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '"><img src="' . $settings['images_url'] . '/buttons/duzenle.gif"></a>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                   <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"><img src="' . $settings['images_url'] . '/buttons/sil.gif"></a>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                   <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"><img src="' . $settings['images_url'] . '/buttons/bol.gif"></a>';


güncel :)




Antes

Kusura bakmayın gözümden kaçmış...

Onlara da class ekleyin, resimleri kaldırın yerine uygun metinleri yazın ve css üzerinden düzenleme yapın.

OverTa[k]e

Quote from: Antes on September 04, 2012, 04:51:39 PM
Kusura bakmayın gözümden kaçmış...

Onlara da class ekleyin, resimleri kaldırın yerine uygun metinleri yazın ve css üzerinden düzenleme yapın.

Denedim ancak alıntı butonu çalışmadı sanırım yanlışlıklar yaptım  :(




Antes

Default tema üzerinde deneme yaptım bi sıkıntı çıkmadı. Alıntı her iki şekilde de (Hızlı cevap açık/kapalı) yapabiliyorum.

OverTa[k]e

CSS tamamda diğerini yapamadım bi tanesini örnek bazında yapsanız devamını getiririm.




Antes

        // Maybe we can approve it, maybe we should?
        if ($message['can_approve'])
            echo '
              <a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '"></a>';

        // Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                   <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" class="css3button" onclick="return oQuickReply.quote(', $message['id'], ');">Alıntı</a>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" class="css3button">Alıntı</a>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                   <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '"><img src="' . $settings['images_url'] . '/buttons/duzenle.gif"></a>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                   <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"><img src="' . $settings['images_url'] . '/buttons/sil.gif"></a>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                   <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"><img src="' . $settings['images_url'] . '/buttons/bol.gif"></a>';



Ben alıntı butonlarını düzenledim. Deneyin çalışırsa diğerlerini de aynı şekilde düzenlersiniz.

OverTa[k]e

Hocam yaptım ancak tr karakter hatası oluyor. Yani düzenle yazınca karakter hataları oluyor, duzenle yazmak gerekiyor hata olmaması için.. bu konuda ne yapabiliriz ?




Flypside


Modifications.turkish.php dosyasında ?> dan önce

$txt['duzenle'] = 'Düzenle';
$txt['alinti'] = 'Alıntı';


şeklinde istediğiniz gibi düzenleyerek ekleyin daha sonra göstermek istediğiniz sayfada ise aşağıdaki gibi eklemelisiniz.
',$txt['duzenle'],'

Türkçe kararkter problemi yaşadığınız kısımlarda bu şekilde kullanınız.
SMF SUPPORT SERVICE | SEO | PORTAL | FORUM | MOD | THEME | DATABASE | GOOGLE OPT vs..

contact: [email protected]


ingilizce dökümanları

OverTa[k]e

Tamamdır, ikinizede teşekkür ederim.   8)


Birde bu şekilde yukarı çık yapmak istiyorum aynen buradaki mod gibi, bu modu kurdum ancak chrome de çalışmıyor. Bu modu veya css nasıl yaparım her tarayıcıda çalışanı ?

http://custom.simplemachines.org/mods/index.php?mod=3072




Flypside


Basit olarak söyliyeyim fakat denemedim, sen bir dene..

Temanın index.css dosyasının en altına ekle:
#go_top{
    position: fixed;
    bottom: 10px;
    right: 5px;
    display: none;
    cursor: pointer;
}


index.template.php dosyasını aç </body> tagından önce ekle:
<a href="#" id="go_top"><img src = "'.$settings['images_url'].'/go_top.png" alt ="go up"/></ a>

temanın images klasorune görünmesini istediğin images'i go_top.png şeklinde atmalısın.
SMF SUPPORT SERVICE | SEO | PORTAL | FORUM | MOD | THEME | DATABASE | GOOGLE OPT vs..

contact: [email protected]


ingilizce dökümanları

OverTa[k]e

Olmadı hocam, gözükmedi. Ve birde buradakı gibi yapabilir miyim ? Örnekte gösterilen büyük onu küçültürüz ve sanırım kodlarda hatalar var. Ama sadece ve hoş olmuş. Hover almasıda güzel. Yapılabilir mi hocam ?

http://uzmanadam.com/jquery-css-sayfa-basina-gitme-animasyonlu.html





Flypside


Jquery back to top diğe arama yaparsan alternatif birçok bulabilirsin.
SMF SUPPORT SERVICE | SEO | PORTAL | FORUM | MOD | THEME | DATABASE | GOOGLE OPT vs..

contact: [email protected]


ingilizce dökümanları

OverTa[k]e

Bunlar içinde yapmak istiyorum antes aynı şekilde denedim ama bu sefer butonlar çok ufak oldu. Yardımcı olabilir misin


    Yeni Konu
    Yeni Anket
    Haberdar Et
    Okunmuş Say





YusufUmer

Quote from: BA on September 20, 2012, 08:11:47 PM
Bunlar içinde yapmak istiyorum antes aynı şekilde denedim ama bu sefer butonlar çok ufak oldu. Yardımcı olabilir misin


    Yeni Konu
    Yeni Anket
    Haberdar Et
    Okunmuş Say


Advertisement: