Skip to content

Instantly share code, notes, and snippets.

View w3guy's full-sized avatar
✍️
Typing...

Collins Agbonghama w3guy

✍️
Typing...
View GitHub Profile
@w3guy
w3guy / README.md
Last active August 29, 2015 14:22 — forked from tomazzaman/README.md

Simple Optin form example for WordPress

This is a simplified showcase of how you can easily build your own Optin form in WordPress.

It can connect to any API that supports cURL (most of them do). There is no error reporting implemented. It uses exit intent detection script called Ouibounce, which needs to be enqueued in your functions.php

@w3guy
w3guy / gist:09a4c5258f75e97f78e1
Created June 17, 2015 15:47
BBPress login, registration, password reset link integration to forum
<?php
/**
* Plugin Name: Bbpress Login Register Links On Forum Topic Pages
* Plugin URI: http://tomas.zhu.bz/bbpress-plugin-bbpress-login-register-links-on-forum-page-and-topic.html/
* Description: Add bbpress login link, register links, on forum pages or topic pages so users can use our forums more easier. Any feature request is welcome to support to our <a href='http://tomas.zhu.bz/forums/forum/bbpress-notification-plugin-support/'>Support Forum</a>, like our plugin? <a href='https://wordpress.org/support/view/plugin-reviews/bbpress-login-register-links-on-forum-topic-pages/'>Submit a review</a>
* Author: Tomas Zhu
* Author URI: http://tomas.zhu.bz
* Version: 1.1.0
*/
function bbpressLoginRegisterLinksOnForumPage()
<div class="lucidContainer">
<div class='multitab-section'>
<ul class='multitab-widget multitab-widget-content-tabs-id'>
<li class='multitab-tab'><a href='#lucidLogin'>Log In</a></li>
<li class='multitab-tab'><a href='#lucidRegistration'>Register</a></li>
<li class='multitab-tab'><a href='#lucidReset'>Reset</a></li>
</ul>
<div class='multitab-widget-content multitab-widget-content-widget-id' id='lucidLogin'>
<span class='sidebar' id='sidebartab1' preferred='yes'>
[pp-login-form]
@w3guy
w3guy / gist:49b3a4aa7289f25e535b
Created September 19, 2015 13:20
Released: ProfilePress Version 1.1.0 http://profilepress.net/version-1-1-0/
[profilepress-login id="2" redirect="http://xyz.com/welcome"]
@w3guy
w3guy / gist:fa17fd798031dfd380cd
Created September 19, 2015 13:24
ProfilePress registration redirection http://profilepress.net/version-1-1-0/
[profilepress-registration redirect="http://xyz.com/welcome"]
<div id="sc-login">
<h1>Log in</h1>
<div class="sc-container">
[login-username placeholder="Username"]
[login-password placeholder="Password"]
[login-submit value="Log In"]
</div>
</div>
@w3guy
w3guy / monochrome.html
Created December 17, 2015 08:14
monochrome profile with carousel
<div class="monochrome-profile">
<div class="monochrome-cover">
<div class="monochrome-avatar"><img src="[profile-avatar-url]"/></div>
<div class="monochrome-uname">[profile-username]</div>
</div>
<div class="monochrome-contentCont">
<div class="monochrome-content">
<div class="monochrome-sectionTitle">Profile Details</div>
<table class="monochrome-table">
<tr>
@w3guy
w3guy / gist:55d136cd19c0e1d78c3c
Created December 30, 2015 08:06 — forked from craigchristenson/gist:3841142
2Checkout Return
<?php
$hashSecretWord = 'tango'; //2Checkout Secret Word
$hashSid = 1303908; //2Checkout account number
$hashTotal = '1.00'; //Sale total to validate against
$hashOrder = $_REQUEST['order_number']; //2Checkout Order Number
$StringToHash = strtoupper(md5($hashSecretWord . $hashSid . $hashOrder . $hashTotal));
if ($StringToHash != $_REQUEST['key']) {
$result = "Fail - Hash Mismatch";
} else {
@w3guy
w3guy / gist:d717de3b12487a2c8399
Created December 30, 2015 08:06 — forked from craigchristenson/gist:2869509
Example PHP script to check fraud status on a sale.
<?php
if ($_POST['message_type'] == 'FRAUD_STATUS_CHANGED') {
$insMessage = array();
foreach ($_POST as $k => $v) {
$insMessage[$k] = $v;
}
$hashSecretWord = "tango"; # Input your secret word
@w3guy
w3guy / welcome-message-wordpress.html
Last active January 22, 2016 14:31
New users welcome message template for WordPress powered by ProfilePress plugin http://profilepress.net/send-welcome-messages-new-users-wordpress/
<!-- Brought to you by ProfilePress WordPress plugin (http://profilepress.net) -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Choose a new password for {{product_name}}</title>
<style type="text/css" rel="stylesheet" media="all">
*:not(br):not(tr):not(html) {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;