cchost
[ class tree: cchost ] [ index: cchost ] [ all elements ]
Prev
Reference: Commands
Next
ccHost - Developer Cookbook

This documenation refers to ccHost 4.5. There are serious changes coming in 5.0 Make sure to keep tabs at the ccHost Wiki

Reference: Upload Record

Reference: Upload Record

This is raw dump of an upload record as seen by the template at page render time. You can use this as a reference when creating template macros, however keep the following things in mind:

  • This record is constructed during runtime and includes information stored in the database but that information is munged significantly on the way to becoming this record.
  • The actual fields in this record depend very much on what action(s) the user has taken and the configuration as set up by the admin.
  • Some of these fields are ccMixter.org specific put their by custom code that is only running on that site.
  • This record pushes the envelope in several ways: it has both remix parents and children, it is a editorial pick, it has been rated and reviewed, it has multiple files in it (an MP3 and a ZIP), not only does have a full local menu (not typical) but the current user is both the owner of the record AND an admin so the local uplaod menu is stuffed with all kinds of goodies.
  • The data was truncated on the right side so it would fit reasonably fit on this web page.
  • [upload_id] => 6374
    [upload_user] => 9
    [upload_contest] => 0
    [upload_name] => Desaprendere (Treatment)
    [upload_license] => noncommercial
    [upload_config] => media
    [upload_extra] => Array
      (
        [usertags] => downtempo,guitar,chill
        [ccud] => media,remix,sample,editorial_pick,bpm_090_095
        [systags] => non_commercial,editorial_pick,audio,mp3,48k,stereo,VBR,archive,zip
        [relative_dir] => people/victor
        [bpm] => 90
        [nsfw] => 
        [num_reviews] => 8
        [edpicks] => Array
          (
            [cdk] => Array
              (
                [reviewer] => cdk
                [review] => smooth hip hop style with sexy vocals, this mix is sure to 
                [edited] => 2006-07-03 19:09:29
                [review_html] => smooth hip hop style with sexy vocals, this mix is sur
                [review_short] => smooth hip hop style with...
                [review_url] => http://cchost.org/media/editorial/picks/6374
                [review_text] => smooth hip hop style with sexy vocals, this mix is sur
              )
    
          )
    
        [featuring] => Wukaniu (aka MalyWu)
      )
    
    [upload_tags] => media,remix,sample,editorial_pick,bpm_090_095,non_commercial,audio
    [upload_date] => 2006-07-03 16:44:08
    [upload_description] => That's maly's beat used pretty much "as is" with 
    
    I'm including guitar samples for the adventurous.
    [upload_published] => 1
    [upload_banned] => 0
    [upload_topic_id] => 0
    [old_topic] => 0
    [old_dtitle] => 0
    [old_fname] => 
    [upload_num_remixes] => 1
    [upload_num_pool_remixes] => 
    [upload_num_sources] => 3
    [upload_num_pool_sources] => 0
    [upload_score] => 487
    [upload_num_scores] => 8
    [upload_rank] => 467
    [user_id] => 9
    [user_name] => victor
    [user_real_name] => fourstones
    [user_password] => 1927f9fb6296d312c3e706fb7bd91484
    [user_email] => fourstones.net@geeeeeeeeeeeemail.com
    [user_image] => victor.gif
    [user_description] => "[i]Don't belong. Never Join. Think for yourself. [green
    [user_homepage] => http://fourstones.net
    [user_registered] => 2004-10-08 17:30:00
    [user_favorites] => clayne,djperegrine,beatgorilla,lisadb,minuskelvin,teru,djlang59
    [user_whatilike] => soul,bop,post_bop,ambient,Elvis_Costello,Roy_Budd,DJ_Krush,Cold
    [user_whatido] => ACID_Pro,Ableton_Live,Fruity_Loops,Waves_plugins,Sound_Forge,sfz
    [user_lookinfor] => singers,rappers,poker_game
    [user_extra] => Array
      (
        [relicense] => Array
          (
            [done] => 1
          )
    
        [user_info] => Array
          (
            [fortminor] => Array
              (
                [ux_name] => victor stone
                [ux_phone] => 999
                [ux_country] => USA
                [ux_birthdate] => 1991-03-29
              )
    
            [crammed] => Array
              (
                [ux_name] => vston
                [ux_phone] => eifje
                [ux_country] => eifjeif
                [ux_birthdate] => 1980-04-26
              )
    
          )
    
        [last_email_send] => 1157076525
      )
    
    [user_last_known_ip] => 7f00000120060905142431
    [user_num_remixes] => 55
    [user_num_remixed] => 35
    [user_num_uploads] => 63
    [user_score] => 478
    [user_num_scores] => 348
    [user_rank] => 477
    [user_num_reviews] => 711
    [user_num_reviewed] => 325
    [user_num_posts] => 555
    [user_language] => default
    [license_id] => noncommercial
    [license_url] => http://creativecommons.org/licenses/by-nc/2.5/
    [license_name] => Attribution Noncommercial
    [license_jurisdiction] => 
    [license_permits] => DerivativeWorks,Reproduction,Distribution
    [license_required] => Attribution,Notice
    [license_prohibits] => CommercialUse
    [license_logo] => by-nc.gif
    [license_tag] => non_commercial
    [license_strict] => 20
    [license_text] => <strong>Attribution Noncommercial</strong>: People ca
    [contest_id] => 
    [contest_user] => 
    [contest_short_name] => 
    [contest_friendly_name] => 
    [contest_rules_file] => 
    [contest_template] => 
    [contest_bitmap] => 
    [contest_description] => 
    [contest_open] => 
    [contest_deadline] => 
    [contest_created] => 
    [contest_auto_publish] => 
    [contest_publish] => 
    [contest_vote_online] => 
    [contest_vote_deadline] => 
    [upload_date_format] => Monday, July 3, 2006 @ 4:44 PM
    [user_date_format] => Friday, October 8, 2004 @ 5:30 PM
    [works_page] => 1
    [skip_remixes] => 0
    [ratings_score] => 4.87/8
    [reviews_link] => Array
      (
        [url] => http://cchost.org/media/reviews/victor/6374
        [text] => Reviews (8)
      )
    
    [upload_description_html] => That&#8217;s maly&#8217;s beat used pretty muc
    <br />
    I&#8217;m including guitar samples for the adventurous.
    [upload_short_name] => Desaprendere (Tr...
    [files] => Array
      (
        [0] => Array
          (
            [file_id] => 5741
            [file_upload] => 6374
            [file_name] => victor_-_Desaprendere_(Treatment).mp3
            [file_nicname] => mp3
            [file_format_info] => Array
              (
                [media-type] => audio
                [format-name] => audio-mp3-mp3
                [default-ext] => mp3
                [mime_type] => audio/mpeg
                [sr] => 48k
                [ch] => stereo
                [ps] => 3:31
                [br] => VBR
              )
    
            [file_extra] => Array
              (
                [sha1] => 6EVH2OKOQWKQMQRX2TJ5KNB3NUM6AFGU
              )
    
            [file_filesize] => (4.48MB)
            [file_order] => 0
            [file_is_remote] => 0
            [file_rawsize] => 4692384
            [download_url] => http://cchost.org/people/victor/victor_-_Desaprendere_(Tr
            [local_path] => C:\cchost/people/victor/victor_-_Desaprendere_(Treatment).m
          )
    
        [1] => Array
          (
            [file_id] => 5742
            [file_upload] => 6374
            [file_name] => victor_-_Desaprendere_(Treatment).zip
            [file_nicname] => Guitar Parts
            [file_format_info] => Array
              (
                [media-type] => archive
                [format-name] => archive-zip-
                [default-ext] => zip
                [mime_type] => application/zip
                [zipdir] => Array
                  (
                    [files] => Array
                      (
                        [0] => /tremelo1-gtr.mp3 (736.64KB)
                        [1] => /tremelo2-gtr.mp3 (3.42MB)
                        [2] => /knofler-gtr.mp3 (2.45MB)
                        [3] => /space-gtr.mp3 (2.16MB)
                      )
    
                  )
    
              )
    
            [file_extra] => Array
              (
                [sha1] => FHAEKAA7JBUS6M7I2SD6LH5U5N4DJTSG
              )
    
            [file_filesize] => (8.64MB)
            [file_order] => 1
            [file_is_remote] => 0
            [file_rawsize] => 9056414
            [download_url] => http://cchost.org/people/victor/victor_-_Desaprendere_(Tr
            [local_path] => C:\cchost/people/victor/victor_-_Desaprendere_(Treatment).z
          )
    
      )
    
    [upload_taglinks] => Array
      (
        [0] => Array
          (
            [tagurl] => http://cchost.org/media/tags/media
            [tag] => media
          )
    
        [1] => Array
          (
            [tagurl] => http://cchost.org/media/tags/remix
            [tag] => remix
          )
    
        [2] => Array
          (
            [tagurl] => http://cchost.org/media/tags/sample
            [tag] => sample
          )
    
        [3] => Array
          (
            [tagurl] => http://cchost.org/media/tags/editorial_pick
            [tag] => editorial_pick
          )
    
        [4] => Array
          (
            [tagurl] => http://cchost.org/media/tags/bpm_090_095
            [tag] => bpm_090_095
          )
    
        [5] => Array
          (
            [tagurl] => http://cchost.org/media/tags/non_commercial
            [tag] => non_commercial
          )
    
        [6] => Array
          (
            [tagurl] => http://cchost.org/media/tags/audio
            [tag] => audio
          )
    
        [7] => Array
          (
            [tagurl] => http://cchost.org/media/tags/mp3
            [tag] => mp3
          )
    
        [8] => Array
          (
            [tagurl] => http://cchost.org/media/tags/48k
            [tag] => 48k
          )
    
        [9] => Array
          (
            [tagurl] => http://cchost.org/media/tags/stereo
            [tag] => stereo
          )
    
        [10] => Array
          (
            [tagurl] => http://cchost.org/media/tags/VBR
            [tag] => VBR
          )
    
        [11] => Array
          (
            [tagurl] => http://cchost.org/media/tags/archive
            [tag] => archive
          )
    
        [12] => Array
          (
            [tagurl] => http://cchost.org/media/tags/zip
            [tag] => zip
          )
    
        [13] => Array
          (
            [tagurl] => http://cchost.org/media/tags/downtempo
            [tag] => downtempo
          )
    
        [14] => Array
          (
            [tagurl] => http://cchost.org/media/tags/guitar
            [tag] => guitar
          )
    
        [15] => Array
          (
            [tagurl] => http://cchost.org/media/tags/chill
            [tag] => chill
          )
    
      )
    
    [usertag_links] => Array
      (
        [0] => Array
          (
            [tagurl] => http://cchost.org/media/tags/media
            [tag] => media
          )
    
        [1] => Array
          (
            [tagurl] => http://cchost.org/media/tags/remix
            [tag] => remix
          )
    
        [2] => Array
          (
            [tagurl] => http://cchost.org/media/tags/sample
            [tag] => sample
          )
    
        [3] => Array
          (
            [tagurl] => http://cchost.org/media/tags/editorial_pick
            [tag] => editorial_pick
          )
    
        [4] => Array
          (
            [tagurl] => http://cchost.org/media/tags/bpm_090_095
            [tag] => bpm_090_095
          )
    
        [5] => Array
          (
            [tagurl] => http://cchost.org/media/tags/downtempo
            [tag] => downtempo
          )
    
        [6] => Array
          (
            [tagurl] => http://cchost.org/media/tags/guitar
            [tag] => guitar
          )
    
        [7] => Array
          (
            [tagurl] => http://cchost.org/media/tags/chill
            [tag] => chill
          )
    
      )
    
    [artist_page_url] => http://cchost.org/media/people/victor
    [user_emailurl] => http://cchost.org/media/people/contact/victor
    [user_is_admin] => 1
    [user_avatar_url] => http://cchost.org/avatars/victor.gif
    [user_homepage_html] => <a href="http://fourstones.net">http://four
    [user_fields] => Array
      (
        [0] => Array
          (
            [label] => Home Page
            [value] => <a href="http://fourstones.net">http://fourstone
            [id] => user_homepage_html
          )
    
        [1] => Array
          (
            [label] => About Me
            [value] => "[i]Don't belong. Never Join. Think for yourself. [green]Pe
            [id] => user_description
          )
    
        [2] => Array
          (
            [label] => 
            [value] => <a href="http://cchost.org/media/admin/user/9" clas
          )
    
      )
    
    [year] => 2006
    [start_comm] => <!--
    [end_comm] => -->
    [file_macros] => Array
      (
        [0] => license_rdf
        [1] => show_zip_dir
        [2] => comment_thread
      )
    
    [relative_dir] => people/victor
    [file_page_url] => http://cchost.org/media/files/victor/6374
    [stream_link] => Array
      (
        [url] => http://cchost.org/media/files/stream/victor/6374.m3u
        [text] => Stream
      )
    
    [zipdirs] => Array
      (
        [0] => Array
          (
            [dir] => Array
              (
                [files] => Array
                  (
                    [0] => /tremelo1-gtr.mp3 (736.64KB)
                    [1] => /tremelo2-gtr.mp3 (3.42MB)
                    [2] => /knofler-gtr.mp3 (2.45MB)
                    [3] => /space-gtr.mp3 (2.16MB)
                  )
    
              )
    
            [name] => Guitar Parts
          )
    
      )
    
    [flag_url] => http://cchost.org/media/flag/upload/6374
    [upload_description_text] => That's maly's beat used pretty much "as is" 
    
    I'm including guitar samples for the adventurous.
    [comment_thread_url] => http://cchost.org/media/reviews/thread/6374
    [upload_name_cls] => 
    [local_menu] => Array
      (
        [play] => Array
          (
            [stream] => Array
              (
                [menu_text] => Stream
                [weight] => -1
                [group_name] => play
                [id] => cc_streamfile
                [access] => 4
                [action] => http://cchost.org/media/files/stream/victor/6374.m3u
                [type] => 
              )
    
          )
    
        [download] => Array
          (
            [0] => Array
              (
                [action] => http://cchost.org/people/victor/victor_-_Desaprendere_(Trea
                [menu_text] => mp3 (4.48MB)
                [group_name] => download
                [type] => audio/mpeg
                [weight] => 1
                [tip] => victor_-_Desaprendere_(Treatment).mp3
                [access] => 4
                [id] => cc_downloadbutton
              )
    
            [1] => Array
              (
                [action] => http://cchost.org/people/victor/victor_-_Desaprendere_(Trea
                [menu_text] => Guitar Parts (8.64MB)
                [group_name] => download
                [type] => application/zip
                [weight] => 2
                [tip] => victor_-_Desaprendere_(Treatment).zip
                [access] => 4
                [id] => cc_downloadbutton
              )
    
          )
    
        [owner] => Array
          (
            [editupload] => Array
              (
                [menu_text] => Edit
                [weight] => 100
                [group_name] => owner
                [id] => editcommand
                [access] => 1
                [action] => http://cchost.org/media/files/edit/victor/6374
                [type] => 
              )
    
            [managefiles] => Array
              (
                [menu_text] => Manage Files
                [weight] => 101
                [group_name] => owner
                [id] => managecommand
                [access] => 1
                [action] => http://cchost.org/media/file/manage/6374
                [type] => 
              )
    
            [manageremixes] => Array
              (
                [menu_text] => Manage Remixes
                [weight] => 102
                [group_name] => owner
                [id] => manageremixcommand
                [access] => 1
                [action] => http://cchost.org/media/file/remixes/6374
                [type] => 
              )
    
            [howididit] => Array
              (
                [menu_text] => Edit "How I Did It"
                [weight] => 110
                [group_name] => owner
                [id] => editcommand
                [access] => 1
                [action] => http://cchost.org/media/edithowididit/6374
                [type] => 
              )
    
          )
    
        [admin] => Array
          (
            [publish] => Array
              (
                [menu_text] => Unpublish
                [group_name] => admin
                [id] => unpublishcommand
                [weight] => 103
                [access] => 65
                [action] => http://cchost.org/media/files/publish/victor/6374
                [type] => 
              )
    
            [deleteupload] => Array
              (
                [menu_text] => Delete
                [weight] => 104
                [group_name] => admin
                [id] => deletecommand
                [access] => 1
                [action] => http://cchost.org/media/files/delete/6374
                [type] => 
              )
    
            [editorial] => Array
              (
                [menu_text] => Editorial
                [weight] => 300
                [group_name] => admin
                [id] => editorialcommand
                [access] => 65
                [action] => http://cchost.org/media/editorial/submit/6374
                [type] => 
              )
    
            [ban] => Array
              (
                [menu_text] => Ban
                [weight] => 1001
                [group_name] => admin
                [id] => bancommand
                [access] => 8
                [action] => http://cchost.org/media/admin/ban/6374
                [type] => 
              )
    
            [uploadadmin] => Array
              (
                [menu_text] => Admin
                [weight] => 1010
                [group_name] => admin
                [id] => admincommand
                [access] => 8
                [action] => http://cchost.org/media/admin/upload/6374
                [type] => 
              )
    
          )
    
      )
    
    [has_parents] => 1
    [remix_parents] => Array
      (
        [0] => Array
          (
            [upload_name] => Beat 24
            [user_real_name] => Wukaniu
            [file_page_url] => http://cchost.org/media/files/malywu/6306
            [artist_page_url] => http://cchost.org/media/people/malywu
          )
    
        [1] => Array
          (
            [upload_name] => Desaprendere
            [user_real_name] => SilviaO
            [file_page_url] => http://cchost.org/media/files/silviao/6225
            [artist_page_url] => http://cchost.org/media/people/silviao
          )
    
        [2] => Array
          (
            [upload_name] => cello_and_washing_machine.zip
            [user_real_name] => Rev. Ken Cabal
            [file_page_url] => http://cchost.org/media/files/revken/3610
            [artist_page_url] => http://cchost.org/media/people/revken
          )
    
      )
    
    [has_children] => 1
    [remix_children] => Array
      (
        [0] => Array
          (
            [upload_name] => Ophelia's Song
            [user_real_name] => teru
            [file_page_url] => http://cchost.org/media/files/teru/6395
            [artist_page_url] => http://cchost.org/media/people/teru
          )
    
      )
    
    [ok_to_rate] => 
    [ratings] => Array
      (
        [0] => full
        [1] => full
        [2] => full
        [3] => full
        [4] => half
      )
    Prev Up Next
    Reference: Commands Reference ccHost - Developer Cookbook

    Documentation generated on Sat, 17 Nov 2007 01:03:02 +0000 by phpDocumentor 1.3.0RC4