Skip to content

Instantly share code, notes, and snippets.

View imarklee's full-sized avatar

Mark Lee imarklee

View GitHub Profile
<?php
echo "Hello world";
@imarklee
imarklee / gist:9481889
Created March 11, 2014 08:52
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining ess…
// Dispatch emails if necessary
if( $config->get( 'email.pageload' ) )
{
$cron = Foundry::cron();
$cron->dispatchEmails();
}
// Process cron service here.
if( JRequest::getBool( 'cron' ) == true )
{
@imarklee
imarklee / gist:9988529
Last active August 29, 2015 13:58
EasySocial Access Example
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
// Retrieve current logged in user.
$my = Foundry::user();
// Retrieve @SocialAccess object
$access = $my->getAccess();
@imarklee
imarklee / gist:9994892
Created April 5, 2014 17:18
User permalink
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
// Assuming that you already have the user's id
$user = Foundry::user($id);
// Generate the permalink of a user
// If you want the & to be replaced to &amp;
@imarklee
imarklee / gist:9994920
Created April 5, 2014 17:21
Retrieving registration permalink
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
?>
<a href="<?php echo FRoute::registration();?>"><?php echo JText::_("Register Now!");?></a>
@imarklee
imarklee / gist:10022055
Created April 7, 2014 15:04
Retrieving EasySocial configuration
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
$config = Foundry::config();
if ($config->get('conversations.enabled')) {
// Do something wonderful here
}
@imarklee
imarklee / gist:11181619
Created April 22, 2014 14:36
EasyBlog Caption Responsive
#eblog-wrap .easyblog-image-caption {
width: auto !important;
}
@imarklee
imarklee / gist:11262837
Created April 24, 2014 17:33
Fix discuss search bar
div#discuss-wrapper .discuss-searchbar .discuss-searchbar--right a {
margin-top: 0px !important;
}
@imarklee
imarklee / gist:11329236
Created April 26, 2014 19:48
EasyBlog search responsive textbox
body .w320 #ezblog-menu .blog-navi #ezblog-search {
width: 100% !important;
}
@imarklee
imarklee / gist:11352461
Created April 27, 2014 18:35
CSS Fix for Facebook like buttons in French
body #eblog-wrapper .social-button.social-button-small.facebook-like span,
body #eblog-wrapper .social-button.social-button-small.facebook-like iframe {
width: 150px !important;
}