Metal
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search Character ProblemI understand. I appreciate you for the tablepress I used. I will make a donation when I make money from my site. Thanks TobiasBg.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search Character ProblemThis code is working:
“String.prototype.turkishToUpper = function(){
var string = this;
var letters = { “i”: “İ”, “ş”: “Ş”, “ğ”: “Ğ”, “ü”: “Ü”, “ö”: “Ö”, “ç”: “Ç”, “ı”: “I” };
string = string.replace(/(([iışğüçö]))/g, function(letter){ return letters[letter]; })
return string.toUpperCase();
”Demo: https://yokatlas.yok.gov.tr/tercih-sihirbazi-t3-tablo.php?p=ygs1
“İstanbul” and “istanbul” found.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search Character Problem/plugins/tablepress/js/jquery.datatables.min.js => _fnEscapeRegex replace it did not work 🙂
Method: http://www.bugraguney.com.tr/blog/jquery-js/jquery-datatables-turkce-karakter-sorun-cozumu/
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Search Character ProblemSolution method: _fnEscapeRegex function replace:
“function _fnEscapeRegex ( sVal ) {
var letters = { “İ”: “[İi]”, “I”: “[Iı]”, “Ş”: “[Şş]”, “Ğ”: “[Ğğ]”, “Ü”: “[Üü]”, “Ö”: “[Öö]”, “Ç”: “[Çç]”, “i”: “[İi]”, “ı”: “[Iı]”, “ş”: “[Şş]”, “ğ”: “[Ğğ]”, “ü”: “[Üü]”, “ö”: “[Öö]”, “ç”: “[Çç]” };
var acEscape = [ ‘/’, ‘.’, ‘*’, ‘+’, ‘?’, ‘|’, ‘(‘, ‘)’, ‘[‘, ‘]’, ‘{‘, ‘}’, ‘\\’, ‘$’, ‘^’, ‘-‘ ];
var reReplace = new RegExp( ‘(\\’ + acEscape.join(‘|\\’) + ‘)’, ‘g’ );
sVal=sVal.replace(reReplace, ‘\\$1’);
return sVal.replace(/(([İIŞĞÜÇÖiışğüçö]))/g, function (letter) { return letters[letter]; });
}”it did not work. Do you have any idea on this?
- This reply was modified 8 years, 3 months ago by Metal.
İmages: https://i.hizliresim.com/bLWdj8.jpg
I want to put ads.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Collapse Width Problem