Skip to content

Instantly share code, notes, and snippets.

Scott Bolinger scottopolis

Block or report user

Report or block scottopolis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
scottopolis / apppresser-admob-interstitial.js
Last active Aug 29, 2019
Sample Javascript to show an interstitial ad in an AppPresser app
View apppresser-admob-interstitial.js
(function() {
// show an interstitial when an element with an id of showAd is clicked. For example, add this to your app:
// <button ion-item id="showAd" (click)="pushPage( pages.tab_menu.items[1] )"><ion-icon name="cog" item-left></ion-icon>Show ad and navigate</button>
// you can use any element with the id of showAd, it doesn't have to be a button
// you can also load the interstitial when the app loads by moving it outside the ready function
ready("#showAd", function(element) {
var el = document.getElementById("showAd");
scottopolis / givewp-apppresser-custom-page.html
Created Mar 19, 2019
GiveWP Custom Page Code for AppPresser
View givewp-apppresser-custom-page.html
<div padding align="center">
<h2 class="red-text">Online Giving</h2>
<p style="font-size:1.6rem;line-height:1.4;margin-bottom:0">Donate today and help us to further our cause in your commmunity.</p>
<ap-form url="" amount="true"></ap-form>
<div padding>
<p>You can also text your donation to (555) 867-5309</p>
scottopolis / events-calendar-api-apppresser.php
Created Feb 6, 2019
Events Calendar to WP-API for AppPresser apps
View events-calendar-api-apppresser.php
Plugin Name: Add Events Calendar to AppPresser
Description: This plugin adds the Events Calendar CPT and some post meta data to the WP-API.
Version: 0.1
Author: Scott Bolinger
Author URI:
License: GPLv2
scottopolis / media-image.php
Created Feb 4, 2019
Add media image to posts that have a media url
View media-image.php
// add this code to a plugin, it only needs to run once so remove it when you're done
add_action('admin_init', function() {
$the_query = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => 999 ) );
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
scottopolis / appcommunity-user-profile-data.php
Last active Mar 25, 2019
Add User Profile Data in AppCommunity
View appcommunity-user-profile-data.php
// add this code to a custom plugin
add_filter('appcommunity_prepare_user', function( $data, $request ) {
// $data['id'] is the user_id. With that, you can look up user meta like this
$data['appp']['below_content'] = '<div padding>Welcome back ' . get_user_meta( $data['id'], 'nickname', 1 ) . '!</div>';
// you can also show xprofile fields like this
$data['appp']['user_actions'] = '<div padding class="custom-profile-fields"><p><strong>' . xprofile_get_field( 1, $data['id'] )->name . '</strong><br/>' . xprofile_get_field_data( 1, $data['id'] ) . '</p><p><strong>' . xprofile_get_field( 2, $data['id'] )->name . '</strong><br/>' . xprofile_get_field_data( 2, $data['id'] ) . '</p></div>';
scottopolis / apppresser-iap-memberpress.php
Created Jan 18, 2019
Add user to MemberPress after in app purchase, and cancel for AppPresser
View apppresser-iap-memberpress.php
Plugin Name: In App Purchases for MemberPress
Plugin URI:
Description: This plugin listens for in app purchases or cancellations and adds/removes members from a membership level.
Version: 1.0.0
Author: Scott Bolinger
Author URI:
License: GPLv2
scottopolis / events-calendar-pro-wp-api.php
Last active Jan 17, 2019
Events Calendar Pro to WP-API Post Format
View events-calendar-pro-wp-api.php
* Plugin Name: ECP to WP-API (Posts Controller)
* Plugin URI:
* Description: Add tribe_events post type to WP-API using the posts controller.
* Version: 0.1
* Author: Scott Bolinger
* Author URI:
* @author Scott Bolinger
scottopolis / apppresser-iap.html
Created Jan 7, 2019
AppPresser In App Purchase Page
View apppresser-iap.html
<!-- add this code to a custom HTML page to create a form that allows your users to purchase -->
<div padding>
<p>For just $.99 per month, get access to premium content. Your subscription will automatically renew, cancel any time.</p>
<p>Enter your information below and click subscribe. By subscribing, you agree to the <a href="" target="_blank">terms of service.</a></p>
<p>Existing users, enter your username and password. New users, make up a username and password you will use to login.</p>
scottopolis / apppresser-event-detail.html
Created Dec 15, 2018
AppPresser Event Detail HTML Markup
View apppresser-event-detail.html
<ion-col col-12>
<img src=""/>
scottopolis / apppresser-image-cards.html
Created Dec 15, 2018
AppPresser Image Cards Sample HTML Markup
View apppresser-image-cards.html
<ion-content class="card-background-page">
<ion-card (click)="pushPage('destinations-1')">
<img src=""/>
<div class="card-title">San Francisco</div>
<div class="card-subtitle">22 Spots</div>
<div class="card-desc">Diam tibique accommodare vis te.</div>
<ion-card (click)="pushPage('destinations-2')">
You can’t perform that action at this time.