Skip to content

Instantly share code, notes, and snippets.

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

Collins Agbonghama w3guy

✍️
Typing...
View GitHub Profile
<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 / 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"]
@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"]
<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: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()
@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

<?php if(isset($pageoptions["tb_webpaint_sidebar"]) && $pageoptions["tb_webpaint_sidebar"]!="nosidebar"):?>
</section>
<aside class="sidebar">
<!-- Begin Sidebar -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($pageoptions["tb_webpaint_sidebar"]) ) : ?>
<div class="sidebox">
<h3>Sidebar Widget</h3>
Please configure this Widget Area in the Admin Panel under Appearance -> Widgets
</div>
/*
Plugin Name: Site specific plugin for ProfilePress
Plugin URI: http://w3guy.com
Description: Dummy / site specific plugin
Author: Agbonghama Collins
Version: 1.0
Author URI: http://w3guy.com
*/
@w3guy
w3guy / backup.sh
Last active August 29, 2015 14:12 — forked from codeablehq/backup.sh
#!/bin/bash
# For this script to work, save it somewhere in the executable path, like /usr/local/sbin/backup.sh
# make it executable: chmod +x /usr/local/sbin/backup.sh
# then add it to cron: crontab -e
# and add the line below, which will run backup 3am each day, then upload to Dropbox
# 0 3 * * * /usr/local/sbin/backup.sh > /dev/null 2>&1
# You also need WP CLI installed: http://wp-cli.org/
<?php
/**
* Plugin Name: Multiple Roles per User
* Description: Allows anyone who can edit users to set multiple roles per user. In a default WordPress environment that wouldn't have much of an effect, since the user would have the privileges of the top-privileged role that you assign to him. But if you have custom roles with custom privileges, this might be helpful.
* Version: 1
* Author: nikolov.tmw
* Author URI: http://paiyakdev.com/
* License: GPL2
*/
/*