Fix Concrete5 Cannical URLS

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);         
        }
?>

Moved Servers

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

T1 Update

February 9th, 2010

Smartjack was finally installed today after being delayed friday due to card programming and fiber routing issue (at the copper->fiber connection 7 miles away)… Watched installer do the burn in test from my end on the circuit, 0 errors.. Next step.. Wait for Covad installer.. as you can see from the pictures they installed a completely new NID for the main telephone lines and ran completely new drop to the telephone pole on the street… I believe the box the card is in can handle up to 4 connections (Bonded T1? and/or ADSL).. The telco’s card is actually in the door of the box
wpid-T1_smartjack_1.nITUmoxZtM4a.jpgwpid-T1_smartjack_2.vGfmLM5b2Wqh.jpgwpid-T1_smartjack_3.LQuCTZllbuSg.jpgwpid-T1_smartjack_4.gOQwExXZOy3n.jpg

Page Permissions Programatical

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

T1 Update

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

addHeaderItems Tip

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….

T1 Update

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……

Concrete5 Attribute Land

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…

T1 Coming

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…

Render a block view (and only that view! ala AJax)

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