admin – Kerem ER
22 Ekim 2022, 15:51

How to change URL query parameter with Javascript

1dk okuma süresi
859 görüntüleme
URL query parameters can be easily modified using URLSearchParams and History interfaces: // Construct URLSearchParams object instance from current URL querystring. var queryParams = new URLSearchParams(window.location.search); Set new or modify existing parameter value. queryParams.set("myParam", "myValue"); // Replace current querystring with the new one. history.replaceState(null, null, "?"+queryParams.toString()); Alternatively instead of modifying current history entry using replaceState() we can use pushState() method to create a new one: history.pushState(null, null, "?"+queryParams.toString()); Devamını Oku
28 Mart 2022, 23:34

WordPress Code List

6dk okuma süresi
1560 görüntüleme
I collected the parameters I used while creating a WordPress theme on one page. This content contains codes suitable for general use and includes all the necessary general codes when creating a theme. To help others as a WordPress lover… Title parameter <?php global $page, $paged; bloginfo( 'name' ); wp_title( '»', true, 'left' ); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " » $site_description"; if ( $paged -->= 2 || $page >= 2 ) echo ' » ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );... Devamını Oku
18 Nisan 2019, 08:20

MyBB Değişkenleri

1dk okuma süresi
308 görüntüleme
<?php define("IN_MYBB", 1); require_once "./global.php"; if($mybb->user['uid'] == KULLANICI_ID) { echo '<pre>'; var_dump($mybb); echo '</pre>'; } ?> KULLANICI_ID bölümüne sadece sizin görebilmeniz için int şeklinde kullanıcı idsi girilmesi gerekmekte. Devamını Oku
22 Şubat 2018, 16:41

Add gag query to BaseChat

1dk okuma süresi
367 görüntüleme
By default, sending a message to the authorities via chat, which is set to the "@" tag, sends it without checking if the sender has found an active gag penalty. This issue can cause the player to still annoy the authorities from the authorized chat, even though the player has received a gag penalty. First step Put it on top line #include <basecomm> Second step Add this instead of "if (IsClientInGame(i) && (from == i || Ch..." in void "SendChatToAdmins" (Line: 363 in version 1.8.0.6015) if (!BaseComm_IsClientGagged(i)) { CPrintToChat(i, "[SM] %s%N: %s", fromAdmin ? "(Admin) " : "(Player) ", from, message); }... Devamını Oku
14 Ocak 2018, 21:31

WordPress Login sayfasına CSS

2dk okuma süresi
292 görüntüleme
Aşağıda ki kodları functions.php içerisine eklemeniz yeterli. function my_login_stylesheet() { echo ' <style type="text/css"> body {background: #FFF !important;max-width: 400px;width: 95%;margin: 0 auto !important} #login {width: 100% !important;padding-top:30%} #login_error #login_error {display: none !important} #login form {box-shadow: none;margin-top:0;background:none} .login .button.wp-hide-pw .dashicons {top: 1.25rem !important;} #login form input {transition:.3s;} #login form input[type="text"]:focus, #login input[type="password"]:focus {outline:2px auto #2076D8;} #login input[type="text"], #login input[type="password"] {transition: .2s;padding: 10px;border: 1px solid #eaecef;background: #FFF !important;box-shadow: none !important;border-radius: 3px;box-sizing: border-box;font-size: 16px;margin-top:15px;box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;} #login input[type="submit"] {padding: 20px;display: block;background-color: #2076D8;font-weight: 600;color: #FFF;margin-top: 5px;border: none;line-height: 0;width: 100%;margin: 15px 0;box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;} #login... Devamını Oku
22 Ekim 2017, 12:04

Programlama için en iyi 5 yazım editörü

3dk okuma süresi
220 görüntüleme
1. Atom.io (atom.io) Atom.io GitHub tarafından geliştirilen açık kaynak kodlu ve genel anlamda ortalama 2 yıllık deneyimlerime göre hem Windows hemde Mac üzerinde gayet stabil çalışan bir yazım editörü. Atom'un Artıları Ücretsiz ve Açık Kaynak Kullanımı Kolay Zengin Eklenti ve Tema Marketi Kişiselleştirmeye Müsait Git Kontrolü Atom'un Eksileri Büyük Dosyaları Okuyamıyor 2. Visual Studio Code (code.visualstudio.com) VS Code Windows tarafından geliştirilen açık kaynak kodlu, kendi içerisinde terminali bulunan ve Git yönetimini çok daha güzel hale getiren eklentilerle dolu bir yazım editörü. Özellikle kullandığı fontlar Mac'lerde harika gözüküyor. Visual Studio Code'un Artıları Ücretsiz ve Açık Kaynak Kullanımı Kolay Geniş Dil Desteği... Devamını Oku