May 27th, 2010
According to a recent google webmaster blog post. Google likes to see a domain.com/page/ redirect to domain.com/page with a 301.. Unfortunately Concrete5 treats these the same. So a fix I implemented is in config/site_process.php . Should Appease them
<?php
if ($_SERVER['REQUEST_URI'] != ‘/’ && preg_match(‘#/$#’,$_SERVER['REQUEST_URI']))
{
$newuri = preg_replace(‘#/$#’,”,$_SERVER['REQUEST_URI']);
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: “. BASE_URL. $newuri);
}
?>
Posted in Uncategorized | No Comments »
March 20th, 2010
I recently moved my server from my vps to my super-micro here on my T1 at home.. Unfortunately I was hasty and forgot to download the sql database so I had to reupload entries from Mac Journal.. I hope to update this theme soon too
Posted in Uncategorized | No Comments »
February 9th, 2010
Posted in Uncategorized | No Comments »
February 2nd, 2010
$myPage = Page::getById(123); //The Page
$args = array();
$args['cInheritPermissionsFrom'] = ‘OVERRIDE’;
$args['cOverrideTemplatePermissions'] = 1;
$args['collectionRead'][] = ‘uID:1′;
$args['collectionRead'][] = ‘uID:’.$ui->getUserID();
$page->updatePermissions($args);
theres CollectionRead CollectionWrite CollectionAdmin and more . view source of concrete 5 permissions editor to get more specifiics
Posted in Uncategorized | No Comments »
February 1st, 2010
HighCap line was dropped and tested by installers as of 1/29. Awaiting Certification and installation of smartjack then final provider install (config). Hopefully up by the end of this week
Posted in Uncategorized | No Comments »
January 21st, 2010
My friend jereme noticed the other day that addHeaderItem calls within BlockController __construct over-rides were causing mulitple css/javascript loads. Through some experimenting he discovered that on_page_view() is the proper function to load the header items from….
Very Useful….
Posted in Uncategorized | No Comments »
January 5th, 2010
So today I recevied an email and a couple phone calls from my provider.
The first one informing me that there will be a $300 install charge for AT&T to bring they’re network up to par for the T1.
The second one informing me there will be no $300 fee but instead At&T needs to make major infastructure changes at their NOC and the install date is being delayed to Feb 4.
No big news here I didn’t actually think getting a T1 out here in the sticks was going to be that easy..
I’m supposed to be notified on Jan 15th as to the status confirmation of the additional construction required.
So we wait……
Posted in Uncategorized | No Comments »
December 31st, 2009
Fun With Attributes, We’re going to create a attribute storage mechanism using the API to store and retrieve External Form Data!
http://www.concrete5.org/help/building_with_concrete5/developers/attributes/terminology/
States that Categories are the type of object to which an attribute applies. SO First we must add a new Category…
Posted in Uncategorized | No Comments »
December 30th, 2009
So today I completed paperwork for ordering a T1 line from reallinux (whom is brokering Covad at a lower rate). All in all everything was straightforward and the Saleman explained everything. My install time is about 4 weeks out and I’ve been informed I may need to hire a contractor to install a drop board for the line.
The decision to upgrade to a T1 line was based on the fact that I live in a very rural area now and DSL or Cable internet is not available. I currently have a very up/down WiMax Conection through Sierra Advantange/Cal.net to which I am not very happy with.
Stay tuned for updates and pics…
Posted in Uncategorized | No Comments »
December 21st, 2009
This code will render a block view with an appropriate blockview object
$bv = new BlockView();
$bv->setController($this); //$this = BlockController
$bv->render($this->getBlockObject(),’cc’); //second param is name of view.. leave blank for view.php
Posted in Uncategorized | No Comments »