Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Kaynak ikonu

XF 2.2 Eklenti Code to identify all content within the bbcode of your forum

Bu eklenti, add-ons XenForo 2.2.X ile uyumlu ve stabil olarak çalışmaktadır.
Uyumlu XF 2 Sürümleri
  1. 2.2.X
  2. 2.0.X
  3. 2.1.X
1- Before installation (you must mislead the entire code in order to be able to copy it)
1687517548650.png


2- After installation (you see after clicking the mouse on the code, it is fully selected)
1687517607029.png


3- Explanation of installation
1- From Control Panel >> Appearance >> Search Templates and search for bb_code_tag_code
2- Replace the entire code with the attached file


4- If you want to manually modify the original template, do the following

1- Open the bb_code_tag_code template and search for the following

- find below
Kod:
<code>{$content}</code>

Replace it with this

Kod:
<code onclick="getData(this)">{$content}</code>

2- Add the following code at the end of the template

Kod:
<script>
function getData(element)
{
if (document.body.createTextRange) {
var range = document.body.createTextRange();
range.moveToElementText(element);
range.select();
} else if (window.getSelection) {
var selection = window.getSelection();
var range = document.createRange();
range.selectNodeContents(element);
selection.removeAllRanges();
selection.addRange(range);
}

}

thank you
  • Beğen
Tepkiler: eTiKeT™
Yazar
Binkaddas
İndirilme
0
Görüntüleme
654
İlk yayınlama
Son güncelleme
Değerlendirme
0.00 yıldız 0 değerlendirme

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.