You will often need a newer version of jQuery to use a certain jQuery plugin. There are two ways to achieve this.
<?php
/**
<?php | |
define("e107_INIT", TRUE); | |
$chwd = realpath(dirname(__FILE__)); | |
$e107_config = $chwd . '/e107_config.php'; | |
include_once($e107_config); | |
$e107_version = $chwd . '/' . $ADMIN_DIRECTORY . 'ver.php'; |
<?php | |
/******************************************************************** | |
Coppermine Photo Gallery | |
e107 bridge | |
************************ | |
v1.01 | |
Coppermine version: 1.4.9 | |
$Source$ | |
$Author: v3 <v3@sonic-world.ru>$ |
Ajax-enabled forms in e107 offer dynamic form behavior with no page reloads and are easy to create and manipulate. They are a simple extension of the e107 Form API.
What is dynamic behavior? Traditional web behavior has the user fill in a form, click a button, and the entire page is rebuilt and sent back to the browser. Ajax-enabled forms update or replace part of the page or part of the form without doing a full page reload - only the part that needs to be changed is changed. It's more responsive to the user and typically faster than the traditional page reload approach.
Some facts about Ajax:
<?php | |
// Configuration ---------------------- // | |
$repo = "e107inc/e107"; | |
$branch = "master"; | |
// ------------------------------------ // | |
$git = simplexml_load_file("https://github.com/".$repo."/commits/".$branch.".atom"); |
<?php | |
/* | |
Plugin Name: Link PDF Attachment | |
Plugin URI: http://premium.wpmudev.org | |
Description: Adds a link to the top of a WordPress post to the first PDF attachment | |
Author: Chris Knowles | |
Version: 1.0 | |
Author URI: http://twitter.com/ChrisKnowles | |
*/ |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Here's a 'simple' way to get the YouTube subscriber number from Google's Youtube API v3:
<?php | |
$string1 = '<link href="/css/bs4-dynamic-fields-form-2.min.css" rel="stylesheet" media="screen">'; | |
$string2 = '<script src="/cdn-cgi/apps/head/qx0HK83qWJ5I3r2xnETN-ETfo6s.js"></script>"'; | |
$regex1 = '~<link(.*?)href="([^"]+)"(.*?)>~'; | |
$regex2 = '/src=(["\'])(.*?)\1/'; | |
$result1 = preg_match($regex1, $string1, $matches1); | |
$result2 = preg_match($regex2, $string2, $matches2); |