Konuyu Oyla:
  • Toplam: 0 Oy - Ortalama: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Forumunuz için genişletilebilir alıntı mesajları yapımı
#1
Global.css'inize ekleyin:
Kod:
.mycode_quote {
    position: relative;
    overflow-y: auto;
    max-height: 200px;
    transition: max-height 500ms ease-in-out;
}

.quote__expand {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, rgba(249,250,250,0) 0%, #f9fafa 60%);
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    text-align: center;
    height: 75px;
    cursor: pointer;
}

.quote__expand span {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
}

Footer şablonuna girin ve en alta ekleyin:
Kod:
<script>
const bbCodeQuoteExpandHtml = '<div class="quote__expand"><span>Devamını görmek için tıklayın...</span></div>';

const bbCodeQuotes = $('.mycode_quote');
bbCodeQuotes.each(function() {
    if ($(this).parent('.mycode_quote').length) {
        return $(this).css('max-height', 'initial');
    }

    if (this.scrollHeight > this.clientHeight) {
        return $(this).css('overflow', 'hidden').append(bbCodeQuoteExpandHtml)
    }
})

const bbCodeQuoteExpand = $('.quote__expand');
bbCodeQuoteExpand.on('click', function() {
    const bbCodeQuote = $(this).parent('.mycode_quote');

    $(this).remove();
    bbCodeQuote.css('max-height', bbCodeQuote.prop('scrollHeight'));
})
</script>


Şu şekilde görünecektir:
Ekran-Al-ntasds.jpg
Cevapla PGM
Teşekkür verenler: admin , NextWorld , Novruz , ASİ DADAŞ
#2
(29-10-2019 Saat: 00:29)Ripbyrustavi Nickli Kullanıcıdan Alıntı: Global.css'inize ekleyin:
Kod:
.mycode_quote {
    position: relative;
    overflow-y: auto;
    max-height: 200px;
    transition: max-height 500ms ease-in-out;
}

.quote__expand {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to bottom, rgba(249,250,250,0) 0%, #f9fafa 60%);
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    text-align: center;
    height: 75px;
    cursor: pointer;
}

.quote__expand span {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
}

Footer şablonuna girin ve en alta ekleyin:
Kod:
<script>
const bbCodeQuoteExpandHtml = '<div class="quote__expand"><span>Devamını görmek için tıklayın...</span></div>';

const bbCodeQuotes = $('.mycode_quote');
bbCodeQuotes.each(function() {
    if ($(this).parent('.mycode_quote').length) {
        return $(this).css('max-height', 'initial');
    }

    if (this.scrollHeight > this.clientHeight) {
        return $(this).css('overflow', 'hidden').append(bbCodeQuoteExpandHtml)
    }
})

const bbCodeQuoteExpand = $('.quote__expand');
bbCodeQuoteExpand.on('click', function() {
    const bbCodeQuote = $(this).parent('.mycode_quote');

    $(this).remove();
    bbCodeQuote.css('max-height', bbCodeQuote.prop('scrollHeight'));
})
</script>


Şu şekilde görünecektir:
Ekran-Al-ntasds.jpg

Alıntı deneme...

destek'te uyguladım, bakalım olacak mı...
Teşekkürler.
----------------
"Ana prensibimiz insana saygı" dedik, kimileri bunu yanlış anladı, sürekli tepemize çıktı. 
Bundan sonra ana prensibim: "isteyen istediği yere gitsin". Forumda sürekli negatif enerji yayanları, hakaret edenleri ya da hakaretimsi yazanları dahi banlayacağım. Forumda etkileşim azalacakmış umuruda değil. Yıllarca negatif enerjili insanlara katlandığım yeter.. 

Sonra duymadım, bilmiyordum yok.. 

Önemli konular listesi: https://destek.10tl.net/showthread.php?tid=99072
Android 10tl programı: https://destek.10tl.net/showthread.php?tid=98074
Görevli kuralları: https://destek.10tl.net/showthread.php?tid=99597
10tl.net Geneli (Forum açma v.b.) Kurallar: https://destek.10tl.net/showthread.php?tid=25433

twitter.png https://twitter.com/10tlnet
discord.png https://discord.gg/fUC7A2W
email.png  info (at.) 10tl.net
Ara
Cevapla PGM
Teşekkür verenler: ASİ DADAŞ
#3
Harika
-ARCH
Lütfen "Rep Verbutonuna tıklayarak bizi değerlendirin.
Forum Organizatörü
Ara
Cevapla PGM
Teşekkür verenler: ASİ DADAŞ
#4
jQuery ihtiyaç duymadan;
PHP Kod:
    const bbCodeQuoteExpandHtml '<div class="quote__expand"><span>Devamını görmek için tıklayın...</span></div>';
    const 
bbCodeQuotes document.querySelectorAll('.mycode_quote');
    
    
bbCodeQuotes.forEach(function(el) {
        if (
el.parentElement.classList.contains("mycode_quote")) {
        return 
el.style.cssText "max-height:initial";
    }

        if (
el.scrollHeight el.clientHeight) {
        return [
el.style.cssText "overflow:hidden",
            
el.insertAdjacentHTML('beforeend'bbCodeQuoteExpandHtml)]
    }
});
    
    const 
bbCodeQuoteExpand document.querySelectorAll('.quote__expand');
    
bbCodeQuotes.forEach(function(el) {
        
el.addEventListener('click', function(a){
            var 
ele a.target.closest('.quote__expand');
            
ele.parentNode.removeChild(ele);
            const 
bbCodeQuote this.closest('.mycode_quote');
            
bbCodeQuote.style.cssText += 'max-height:'el.scrollHeight 'px';
        })
        }); 
Ara
Cevapla PGM
Teşekkür verenler: admin
#5
oh sonunda bütün konuyu alıntılayan aptallara uğraşmıcaz
Ara
Cevapla PGM
Teşekkür verenler:


Hızlı Menü:


Şu anda bu konuyu okuyanlar: 1 Ziyaretçi



Reklam yaziniz bostur. ayarlardan duzenleyiniz:medi -

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping