[Clipart] [PATCH] cchost user
Jon Phillips
jon at rejon.org
Sun Feb 12 23:39:00 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
Hey Victor and Others on Open Clip Art Library and cctools-cchost list,
I'm wondering what the best way is to generalize this type of label and
form_tip to make it media-indepedent.
Bryce is an Open Clip Art Library and Inkscape developer who submitted
this patch for our new migratory install on www.openclipart.org/cchost
(in-progress). I started to change the fields of this to make it even
more general, but I don't want to jar too much the fields for
ccmixter.org (ccmixter.org uses pretty much up-to-date copy of CVS
version of cchost, so need to think how our changes effect ccmixter.)
What do is the best way to move forward on generalization of media type
in this situation, in general for the codebase and this patch?
The goal is for media independence, so hopefully a good strategy can be
developed to push towards this.
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