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
UPDATE`wp_postmeta`SET`meta_key`= 'views_temp' WHERE`meta_key`= 'views' | |
UPDATE`wp_postmeta`SET`meta_key`= 'tie_views_temp' WHERE`meta_key`= 'tie_views' | |
UPDATE`wp_postmeta`SET`meta_key`= 'tie_views' WHERE`meta_key`= 'views_temp' | |
UPDATE`wp_postmeta`SET`meta_key`= 'views' WHERE`meta_key`= 'tie_views_temp' |
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
<script> | |
jQuery( document ).ready(function() { | |
jQuery('input[name=log]').val(''); | |
jQuery('input[name=pwd]').val(''); | |
jQuery('#log') | |
.on('blur', function(){ | |
var jQuerythis = jQuery(this); | |
if(jQuerythis.val() == 'Username'){ | |
jQuerythis.val(''); | |
} |
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 | |
$UA_list = array("GT-I9300","SM-N900T"); //list all user agents you want to block here "using any keyword" | |
$current_UA = $_SERVER['HTTP_USER_AGENT']; //getting the current user agent | |
$matchFound = preg_match_all("/\b(" . implode($UA_list,"|") . ")\b/i",$current_UA,$matches); //check if the current user agent is in the block list | |
if($matchFound){ | |
//do nothing! | |
}else{ //print the script | |
?> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; |
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
// ==UserScript== | |
// @name Hi-Automatic! | |
// @namespace http://alaasalama.com/ | |
// @version 1.0 | |
// @description Adding Hi+Name automatic for Themify support forums | |
// @author Alaa.Salama | |
// @include https://themify.me/forum/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-2.2.4.min.js | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name parallel-support-check | |
// @namespace http://alaasalama.com/ | |
// @version 1.0 | |
// @description check if this support thread got a reply or not | |
// @author Alaa.Salama | |
// @match https://themify.me/forum/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-2.2.4.min.js | |
// ==/UserScript== |
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 | |
/** | |
* Events Calendar PRO: Change default coordinates and zoom level for Map View's | |
* start location (for when there are no event results found, to avoid African coast). | |
* | |
* Change the coordinates to your liking. See the link below for a helpful tool. | |
* Updated 2018-08-06 because PRO v4.4.30 removed one of the parameters. | |
* | |
* @link https://gist.github.com/cliffordp/52d0bfb6d1537a19d158deb351dd9fa7 |
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
function show_recurrence_description() { | |
if (is_event()) { | |
?> | |
<script type="text/javascript"> | |
// your javscript code goes here | |
jQuery( document ).ready(function() { | |
jQuery('.tribe-events-event-body').clone().insertAfter('.recurringinfo') | |
}); | |
</script> | |
<?php |
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 echo str_replace('Gratis – ', '', tribe_get_cost( null, true )) ; ?> |
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
function hide_free_from_rsvp() { | |
?> | |
<script type="text/javascript"> | |
// your javscript code goes here | |
jQuery( document ).ready(function() { | |
jQuery('.tribe-events-event-cost, .tribe-events-cost').each(function() { | |
jQuery(".tribe-events-event-cost").text().replace("Gratis – ", "") | |
var text = jQuery(this).text(); | |
text = text.replace("Gratis – ", ""); | |
jQuery(this).text(text); |
OlderNewer