Skip to content

Instantly share code, notes, and snippets.

Avatar

Damian timersys

View GitHub Profile
@timersys
timersys / readme.txt
Last active Aug 29, 2015
Wordpress Social Invitations Readme file
View readme.txt
=== Wordpress Social Invitations ===
Author: Damian Logghe
Website: http://www.timersys.com
Contributors: Timersys
Tags: Social Invitations, twitter, facebook, linkedin, hotmail, yahoo
License: http://codecanyon.net/licenses/regular
Stable Tag: 2.4.2
Tested on: 4.0.1
== Description ==
@timersys
timersys / wordpress-social-invitations.css
Last active Aug 29, 2015
Wordpress Social Invitations Style
View wordpress-social-invitations.css
/* CSS TO MAKE ICONS A BIT SMALLER */
.service-filter-content .service-filters .divprovider {
height: 48px; /*height of the icon box*/
color: #000; /*color of the icons*/
background-color: #FFF !important; /*use important to use same background color for all boxes*/
}
.service-filters .divprovider a {
width: 59px; /*desired width of the box*/
@timersys
timersys / wsi.css
Created May 26, 2014
Change wordpress social invitations icons
View wsi.css
//These are the default CSS rules that you can change with yours
[class^="wsiicon-"], [class*=" wsiicon-"] {
font-family: 'wsi-social'; //Use your own font
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
background: none !important;
@timersys
timersys / server
Created May 29, 2014
Wordpress social invitations icons problem in nginx
View server
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
@timersys
timersys / cubepoints.php
Created Jun 11, 2014
Cubepoints in Wordpress Social Invitations
View cubepoints.php
<?php
//full file located in functions/cubepoints.php
/* Hook WSI Invitations sent */
add_action( 'wsi_invitation_sent', 'wsi_points', 10 );
function wsi_points( $user_id ) {
//this is not a registered user
if( empty($user_id)) return;
@timersys
timersys / functions.php
Created Aug 1, 2014
disable load of javascript for Facebook, Twitter and Goggle in Popups plugin
View functions.php
<?php
// disable load of javascript for Facebook, Twitter and Goggle in Popups plugin http://wordpress.org/plugins/popups/
define( 'SPU_UNLOAD_FB_JS', true );
define( 'SPU_UNLOAD_TW_JS', true );
define( 'SPU_UNLOAD_GO_JS', true );
@timersys
timersys / functions.php
Created Aug 1, 2014
show uncompressed javascript in popups plugin
View functions.php
<?php
// show uncompressed javascript in popups plugin http://wordpress.org/plugins/popups/
define( 'SPU_DEBUG_MODE', true );
@timersys
timersys / class-social-popup.php
Created Aug 5, 2014
WSI facebook register script
View class-social-popup.php
wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_locale().'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);
@timersys
timersys / functions.php
Created Aug 18, 2014
My Creed multiple points wiht WSI
View functions.php
add_filter( 'wsi_cred_type', 'mycreed_points_types', 10, 2);
function mycreed_points_types( $cred_type, $wsi_obj_id ){
// default mycreed type
$cred_type = 'mycred_default';
// invitations sent on page with id 2
if( '2' == $wsi_obj_id ) {
$cred_type = 'my_points_type';
}
@timersys
timersys / class.Wsi_Mycreed.php
Created Aug 18, 2014
My Creed Wsi integration
View class.Wsi_Mycreed.php
<?php
/**
* MyCred Hook
* @since v2
* @version 1.1
*/
class Wsi_MyCreed extends myCRED_Hook {
/**
* Construct