Skip to content

Instantly share code, notes, and snippets.

View beckyresler's full-sized avatar

Becky Resler beckyresler

View GitHub Profile
@beckyresler
beckyresler / test.php
Created March 29, 2019 14:47
Getting channel entry data from specified ID
$channelId = ee('Model')->get('Channel')->filter('channel_name', 'our_team')->first()->channel_id;
$entryId = (array_key_exists('id', $_GET)) ? $_GET['id'] : null;
$teamMember = ee('Model')->get('ChannelEntry')->filter('channel_id', $channelId)->filter('entry_id', $entryId)->filter('status', 'open')->first();
// how do I get the channel field values for the team member ChannelEntry object???
@beckyresler
beckyresler / signdoc.js
Created January 9, 2019 19:41
WP eSignature Plugin - Fix for line breaks in textareas
(function ($) {
$(document).ready(function () {
makeSignatureKeyboardAccessible();
});
function makeSignatureKeyboardAccessible() {
var signaturePopup = $('.signature-wrapper-displayonly');
@beckyresler
beckyresler / gist:e14487de87df62e473c62de95e2ede10
Created May 28, 2018 21:10
Homestead Apache VirtualHost Changes
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@beckyresler
beckyresler / homestead-apache-status.txt
Created March 30, 2018 14:23
Homestead Apache Status Info
vagrant@homestead:~$ sudo service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2018-03-30 12:23:01 UTC; 2min 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 1481 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Mar 30 12:23:01 homestead apache2[1481]: AH00112: Warning: DocumentRoot [/home/vagrant/projects/testinggrounds/public] does not exist