Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View imarklee's full-sized avatar

Mark Lee imarklee

View GitHub Profile
@imarklee
imarklee / gist:11366925
Created April 28, 2014 09:41
EasyBlog columns layout
.category-wrapper-3 .blog-post .blog-image {
float: none !important;
}
.category-wrapper-3 .blog-post .blog-image img{
width: 100%;
}
.category-wrapper-3 .blog-post {
width: 40% !important;
@imarklee
imarklee / EasyBlog.php
Created April 28, 2014 16:37
RokSprocket hack
<?php
// Comment the line below
//$itemId = EasyBlogRouter::getItemIdByCategories( $raw_item->category_id );
// Replace it with
$itemId = EasyBlogRouter::getItemId();
@imarklee
imarklee / gist:85ef7d810afab59304f1
Created May 1, 2014 02:55
Remove avatar from EasyDiscuss search bar
<div class="discuss-tablecell discuss-searchbar--left discuss-searchbar--avatar">
<?php if( $system->config->get( 'layout_avatar' ) ){ ?>
<div class="discuss-avatar avatar-medium avatar-circle pull-left">
<a href="<?php echo $system->profile->getLink();?>"><img src="<?php echo $system->profile->getAvatar();?>" alt="<?php echo $this->escape( $system->profile->getName() );?>" /></a>
</div>
<?php } ?>
</div>
@imarklee
imarklee / gist:19dd5e0587c0bb689040
Created May 1, 2014 09:09
Yoo_nano3 conflict with EasyBlog comments
#frmComment .form-row.prm {
padding-right: 0 !important;
margin-right: 0 !important;
}
#frmComment textarea#comment{
border-radius: 0;
background: #fff !important;
}
@imarklee
imarklee / gist:5266c133f2cef30ebe32
Created May 13, 2014 19:40
Retrieve EasyBlog Category title
<?php
require_once(JPATH_ROOT.'/components/com_easyblog/helpers/helper.php');
$id = JRequest::getInt('id');
$view = JRequest::getWord('view');
if ($view == 'categories' && $id) {
$category = EasyBlogHelper::getTable('Category', 'EasyBlogTable');
$category->load($id);
@imarklee
imarklee / gist:49c07340f22122b384e1
Created May 24, 2014 05:29
API for rendering popbox
<?php
// Include EasySocial's engine
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
if (JFactory::getDocument()->getType() == 'html') {
// We also need to render the styling from EasySocial.
$doc = Foundry::document();
$doc->init();
$page = Foundry::page();
@imarklee
imarklee / gist:d970cb17dcdd2b3318f0
Created May 24, 2014 06:17
EasyBlog 3.9 category title retrieval
<?php
$id = JRequest::getInt('id');
$blog = EasyBlogHelper::getTable('Blog');
$blog->load($id);
$category = EasyBlogHelper::getTable('Category');
$category->load($blog->category_id);
@imarklee
imarklee / gist:34a1e1506c31033be2ca
Created May 24, 2014 06:32
EasySocial: Retrieving user field data
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
$db = Foundry::db();
$query = array();
$query[] = 'select b.`data`, b.`raw` from `#__social_fields` as a';
$query[] = 'inner joins #__social_fields_data as b';
$query[] = 'on a.id = b.field_id';
@imarklee
imarklee / test
Created February 6, 2015 18:40
test
<?php
echo "Hello"
@imarklee
imarklee / asdasd
Created February 6, 2015 18:41
asdasd
<?php
echo "Hello"