[Clipart] [PATCH] cchost user

Jon Phillips jon at rejon.org
Sun Feb 12 22:41:29 PST 2006


On Sat, 2006-02-11 at 15:21 -0800, Bryce Harrington wrote:
> Modifies some of the user viewing text, to generalize 'remixes'.
> 
> Bryce

I applied and changed a few wordings.

One of my goals from our contributions to ccHost is to generalize it for
all file-types first, and then allow for customization by us for our
project 2nd.

The idea of ccHost is for it to be for all file types. However, when
editing the codebase, there are several places where the language of
musicians overrides. It will be great to generalize as much as possible
and figure out how to have some generic terms/language/lexicon that can
be plugged into the admin interface to customize the entire ccHost
system.

I'm cc'ing the cctools-cchost mailing list to hopefully get some
cross-pollination between these developments.

For all you cchost people out there, the Open Clip Art Library
(www.openclipart.org) is migrating to using cchost...the patches are
already coming in.

Also, for Open Clip Art Library developers, any patches that are
specific to cchost, please submit through the
http://sf.net/projects/cctools patch tracker, or email to get dev.
access on the cctools project (CVS access policy is to submit one patch
and then get unlimited commit access to CVS).

Jon


> --- cchost-1.0.3/cclib/cc-user.php	2005-10-22 11:20:32.000000000 -0700
> +++ cchost-bwh/cclib/cc-user.php	2006-02-11 15:18:58.000000000 -0800
> @@ -229,21 +229,21 @@
>                                 'flags'      => CCFF_POPULATE ),
>  
>                      'user_whatido' =>
> -                        array( 'label'      => cct('What I Pound On'),
> -                               'form_tip'   => cct('(e.g. vinyl, guitar, ACID Pro, vocals, beat slicer)'),
> +                        array( 'label'      => cct('What I Do'),
> +                               'form_tip'   => cct('(e.g. symbols, people, flags, coding...)'),
>                                 'formatter'  => 'tagsedit',
>                                 'flags'      => CCFF_POPULATE ),
>  
>                      'user_whatilike' =>
>                          array( 'label'      => cct('What I Like:'),
> -                               'form_tip'   => cct('(e.g. Django, Old Skool, Miles Davis, Acid House)'),
> +                               'form_tip'   => cct('(e.g. vehicles, electronics, icons...)'),
>                                 'formatter'  => 'tagsedit',
>                                 'flags'      => CCFF_POPULATE ),
>  
>                      'user_lookinfor' =>
>                          array( 'label'      => cct("What I'm Looking For:"),
> -                               'form_tip'   => cct("List attributes of musicians you'd like to hook up with ".
> -                                               '(e.g. Producer, singer, drummer)'),
> +                               'form_tip'   => cct("List attributes of clipart you'd like to see".
> +                                               '(e.g. technical symbols, pets, woodworking plans...)'),
>                                 'formatter'  => 'tagsedit',
>                                 'flags'      => CCFF_POPULATE ),
>  
> @@ -626,9 +626,9 @@
>                      else
>                      {
>                          $msg =<<<END
> -You've registered an account and logged in, but you haven't uploaded any remixes yet.
> +You've registered an account and logged in, but you haven't uploaded anything yet.
>  
> -Use the 'Submit Files' menu items on the left to start uploading your sampled tracks and sample libraries.
> +Use the 'Submit Files' menu items on the left to start uploading your work.
>  END;
>  
>                           $R['user_fields'][] = array( 'label' => '', 
> @@ -638,7 +638,8 @@
>                  }
>                  else
>                  {
> -                        $msg = $name . cct(' has not uploaded any remixes yet.');                         $R['user_fields'][] = array( 'label' => '', 
> +                        $msg = $name . cct(' has not uploaded anything yet.');
> +                        $R['user_fields'][] = array( 'label' => '', 
>                                                        'value' => $msg );
>                  }
>              }
> @@ -650,8 +651,10 @@
>  
>              CCPage::PageArg('artist_page',$username);
>              CCFeeds::AddFeedLinks($username,'',cct('Uploads by ').$username);
> -            CCFeeds::AddFeedLinks('','remixesof=' .$username,cct('Remixes of ').$username);
> -            CCFeeds::AddFeedLinks('','remixedby=' .$username,cct('Remixed by ').$username);
> +/* TODO:  Make remixes configurable so we can turn them off for ocal
> + *            CCFeeds::AddFeedLinks('','remixesof=' .$username,cct('Remixes of ').$username);
> + *            CCFeeds::AddFeedLinks('','remixedby=' .$username,cct('Remixed by ').$username);
> + */
>  
>              if( CCUser::IsAdmin() && !empty($_REQUEST['dump_rec']) )
>                  CCDebug::PrintVar($records);
> @@ -715,7 +718,7 @@
>      * Event handler for getting renaming/id3 tagging macros
>      *
>      * @param array $record Record we're getting macros for (if null returns documentation)
> -    * @param array $patterns Substituion pattern to be used when renaming/tagging
> +    * @param array $patterns Substitution pattern to be used when renaming/tagging
>      * @param array $mask Actual mask to use (based on admin specifications)
>      */
>      function OnGetMacros(&$record,&$file,&$patterns,&$mask)
> 
-- 
Jon Phillips

San Francisco, CA
USA PH 510.499.0894
jon at rejon.org
http://www.rejon.org

MSN, AIM, Yahoo Chat: kidproto
Jabber Chat: rejon at gristle.org
IRC: rejon at irc.freenode.net

Inkscape (http://inkscape.org)
Open Clip Art Library (www.openclipart.org)
Creative Commons (www.creativecommons.org)
San Francisco Art Institute (www.sfai.edu)




More information about the clipart mailing list