This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Credits go to https://github.com/rockerbacon/modorganizer2-linux-installer | |
Install 'protontricks' | |
$ sudo flatpak install com.github.Matoking.protontricks | |
Download Mod Organizer for Linux | |
$ cd ~/Downloads/ | |
$ mkdir mo2 | |
$ cd mo2 | |
$ wget https://github.com/rockerbacon/modorganizer2-linux-installer/releases/download/4.3.0/mo2installer-4_3_0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code | Key | |
---|---|---|
0 | KEY_NONE | |
1 | KEY_ESCAPE | |
2 | KEY_1 | |
3 | KEY_2 | |
4 | KEY_3 | |
5 | KEY_4 | |
6 | KEY_5 | |
7 | KEY_6 | |
8 | KEY_7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display a Stats counter at the top of every post, with a "Views:" heading. | |
* @see https://wordpress.org/support/topic/page-views-off/ | |
* | |
* @param string $content Post content. | |
*/ | |
function jeherve_custom_display_post_views( $content ) { | |
$post_views = sprintf( | |
'<div class="stats_counter sd-content"><h3 class="sd-title">%1$s</h3><div class="sd-content">%2$s</div></div>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sites into bedrock or normal WordPress | |
# Version 2.0 | |
# Copyright (c) Kenny Eliason | |
set -a | |
source .env | |
set +a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('init', function(){ | |
global $wp; | |
$wp->add_query_var( 'search_query' ); | |
$wp->remove_query_var( 's' ); | |
} ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Make Buddyboss Global Search Supports Youzer Posts. | |
*/ | |
function yzc_buddyboss_global_search_integration( $sql) { | |
// Post Types. | |
$post_types = "'activity_update', 'activity_link', 'activity_file', 'activity_file', 'activity_audio', 'activity_photo', 'activity_video', 'activity_quote', 'activity_status','activity_slideshow'"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unit CountLoadedRefs; | |
Var | |
giTemporaryCount: Integer; | |
giPersistentCount: Integer; | |
giPluginTemporaryCount: Integer; | |
giPluginPersistentCount: Integer; | |
Const | |
gtPersistent = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add Activity New Allowed Actions. | |
*/ | |
function yzc_add_show_everything_filter_actions( $actions ) { | |
$actions[] = 'wpforo_like'; | |
$actions[] = 'wpforo_post'; | |
$actions[] = 'wpforo_topic'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scriptname _RC_QuestScript extends Quest | |
Keyword Property ActorTypeNPC Auto | |
Actor Property PlayerRef Auto | |
GlobalVariable Property _RC_GlobalToggleMessages Auto | |
GlobalVariable Property _RC_GlobalCapacityBase Auto | |
GlobalVariable Property _RC_GlobalCuirassBase Auto | |
GlobalVariable Property _RC_GlobalCuirassPerc Auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( "wplr_add_media", 'myapp_update_media_meta', 10, 2 ); | |
add_action( "wplr_update_media", 'myapp_update_media_meta', 10, 2 ); | |
function myapp_update_media_meta( $mediaId, $galleryID ) { | |
global $wplr; | |
$image = wp_get_attachment_url( $mediaId ); | |
$size = getimagesize($image, $info); | |
if ( isset( $info['APP13'] ) ) { | |
$iptc = iptcparse( $info['APP13'] ); | |
if ( isset( $iptc["2#090"][0] ) ) |
NewerOlder