2009/3/30 Kiran Bellare <[email protected]>:
> Hi,
>
> I just installed 7.2.1.  Couple of questions
>  - How do i change the menus and the navigation and layout, if i want to
> simplify the functionality, to showing fewer tabs?  Which php files contain
> the presentation templates?
>
>  - Is there any customization documentaion/tips?

<snip>

Hi Kiran (and everyone),

I've been playing around with an installation of Laconica for a corp
client - I wanted to simplify our user's experience by removing
'unnecessary' stuff like OpenID links, and the disclaimers for content
being Creative Commons (it's behind a corp firewall, so doesn't really
make sense for our use).

I'm *not* a developer, so I just trial'd and error'd and found some
fixes (cf. IE6 fixes) from the web.

I've attached the notes on the edits I made - I have no idea if this
is the proper approach to customise Laconica or not, and I may have
inadvertently removed some elements needed for secure installation
etc, so follow these edits at your own risk.

Btw, if you're use TaskPaper on the Mac, use it open this text file,
as it will format into tasks/subtasks nicely.

Very interested to hear from others how they're using Laconica inside
organisations - we've had some great early adopter interest, and I
think it's brilliantly suited to bringing open, visible
'micro-messaging' into workgroups etc.

cheers,

Guy.
/lib/accountsettingsaction.php:
        remove OpenID navbar link:
                - removed lines 115-117
                                'openidsettings' =>
                                array(_('OpenID'),
                              _('Add or remove OpenIDs')),
        remove OpenID navbar link:
                - removed lines 115-117
                        'othersettings' =>
                        array(_('Other'),
                      _('Other options')));
        fixed array:
                - edited line 114, adding final bracket:
                 _('Change email handling')));
/lib/action.php:

                Connect navbar link:
                - removed lines 334-335 (0.7.2 = 387-388)
                                $this->menuItem(common_local_url('smssettings'),
                                    _('Connect'), _('Connect to SMS, Twitter'), 
false, 'nav_connect');

                OpenID navbar link:
                - removed lines 345-346 (0.7.2 = 397 - 398
                                $this->menuItem(common_local_url('openidlogin'),
                                  _('OpenID'), _('Login with OpenID'), false, 
'nav_openid');
        
                Privacy and Source footer links:
                - removed lines 578-581 (0.7.2 = 642-645)
                                $this->menuItem(common_local_url('doc', 
array('title' => 'privacy')),
                        _('Privacy'));
                                $this->menuItem(common_local_url('doc', 
array('title' => 'source')),
                        _('Source'));

                Creative Commons disclaimer and CC image:
                - removed lines 631-645 (0.7.2 694-708)
                        $this->element('dt', array('id' => 
'site_content_license'), _('Laconica software license'));
                        $this->elementStart('dd', array('id' => 
'site_content_license_cc'));
                        $this->elementStart('p');
                        $this->element('img', array('id' => 'license_cc',
                                                    'src' => 
common_config('license', 'image'),
                                                    'alt' => 
common_config('license', 'title')));
                        //TODO: This is dirty: i18n
                        $this->text(_('All '.common_config('site', 'name').' 
content and data are available under the '));
                        $this->element('a', array('class' => 'license',
                                                  'rel' => 'external license',
                                                  'href' => 
common_config('license', 'url')),
                                       common_config('license', 'title'));
                        $this->text(_('license.'));
                        $this->elementEnd('p');
                        $this->elementEnd('dd');

                Amended timeline navlinks:
                - edited lines 375 to read:
                      _('Your timeline'), _('Personal profile and friends 
timeline'), false, 'nav_home');

                - added lines 377-378:
                                        
$this->menuItem(common_local_url('public'),
                            _('Everyone\'s timeline'), _('Search for people or 
text'), false, 'nav_search');

                Force mobile css display (used in a duplicate installation):
                - edited lines 172 to read:
                        'media' => 'screen, projection, tv'));
                - removed lines 180-193:
                                         if (Event::handle('StartShowUAStyles', 
array($this))) {
                                $this->comment('[if IE]><link rel="stylesheet" 
type="text/css" '.
                                               
'href="'.theme_path('css/ie.css', 'base').'?version='.LACONICA_VERSION.'" 
/><![endif]');
                                foreach (array(6,7) as $ver) {
                                    if 
(file_exists(theme_file('css/ie'.$ver.'.css', 'base'))) {
                                        // Yes, IE people should be put in jail.
                                        $this->comment('[if lte IE 
'.$ver.']><link rel="stylesheet" type="text/css" '.
                                                       
'href="'.theme_path('css/ie'.$ver.'.css', 
'base').'?version='.LACONICA_VERSION.'" /><![endif]');
                                    }
                                }
                                $this->comment('[if IE]><link rel="stylesheet" 
type="text/css" '.
                                               
'href="'.theme_path('css/ie.css', null).'?version='.LACONICA_VERSION.'" 
/><![endif]');
                                Event::handle('EndShowUAStyles', array($this));
                            }
/lib/logingroupnav.php:

        Remove OpenID links on login/reg top navbar:
        - Removed lines 80-82
                         'openidlogin' =>
                      array(_('OpenID'),
                      _('Login or register with OpenID')));
        - changed line 79
                new account')));
/lib/util.php:
        Added .tmo to domain list so that it autolinks in msgs:
        - Added to line 455
                         'tmo',

/actions/register.php:

        Remove OpenID mention in registration text intro:
        - removed lines 289 - 292
                         'link up to friends and colleagues. '.
                    '(Have an [OpenID](http://openid.net/)? ' .
                    'Try our [OpenID registration]'.
                    '(%%action.openidlogin%%)!)'));
        - (new) line 289, added at end
                        colleagues. ' ));

        Remove Homepage field on reg screen:
        - removed lines 392-397
                        $this->elementStart('li');
                      $this->input('homepage', _('Homepage'),
                   $this->trimmed('homepage'),
                   _('URL of your homepage, blog, '.
                   'or profile on another site'));
                      $this->elementEnd('li');
                
        Edit the Commons licence agreement on registration:
        
        - removed lines 421-431
                          $this->text(_('My text and files are available under 
'));
                        $this->element('a', array('href' => 
common_config('license', 'url')),
                                       common_config('license', 'title'), 
_("Creative Commons Attribution 3.0"));
                        $this->text(_(' except this private data: password, '.
                                      'email address, IM address, and phone 
number.'));
                        $this->elementEnd('label');
                        $this->elementEnd('li');
                        $this->elementEnd('ul');
                        $this->submit('submit', _('Register'));
                        $this->elementEnd('fieldset');
                        $this->elementEnd('form');
        - replaced with lines 421-427
                          $this->text(_('I understand that this is a prototype 
service '));
                        $this->elementEnd('label');
                        $this->elementEnd('li');
                        $this->elementEnd('ul');
                        $this->submit('submit', _('Register'));
                        $this->elementEnd('fieldset');
                        $this->elementEnd('form');
/actions/login.php:

        Remove OpenID mention in registration text intro:
        - removed lines 252 (in 0.7.2 = 254)
                         'try [OpenID](%%action.openidlogin%%). ');
        - changed line 251 (in 0.7.2 = 253)
                        a new account' );


/actions/public.php:

        Edit welcome panel:
        - Remove line 224 (0.7.2 = 211)
                        'based on the Free Software 
[Laconica](http://laconi.ca/) tool. ' .
        - edited (new) line 224 (0.7.2 = 211)
                        share notices about yourself with colleagues! )');

/theme/identica/display.css:
        - Edited line 210 onwards, as per  http://laconi.ca/trac/ticket/1230  : 
                        width:16px;
                        height:16px;

/theme/identica/ie6.css:
        New file:
        - as per  http://laconi.ca/trac/ticket/1230  :
                .notice-options a {
                font-size: 0px;
                display:block;
                line-height: 0px;
                }
                
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to