Global Vars

Global Vars

In addition to managing language translations for multilingual websites, the Translator tool also manages global variables.

Open the translator section of the application inside Media Factory and open the var section:


The following table describes each of these variables, and identifies which ones MUST be changed:

variablechange requiredvaluesnotes
allowedFiletypesCommentno['1','2','3','4']Sets the type of comments that will be allowed: 1=image, 2=video, 3=audio, 4=text
allowedFiletypesEnterno['1','2','3','4']Sets the type of files that can be selected by the uploader: 1=image, 2=video, 3=audio, 4=text
anonymousCommentsno'true' or 'false'Select whether your contest will allow anonymous comments
appNameyesFilemobile ContestUsed by Facebook dialogue boxes
appUrlyeshttps://photovideocontest.projects.fmThe secure project canvas URL. Used by Open graph to fetch images via secure URLs
canvasUrlyesphotovideocontestThe App Namespace used by the contest. This can be found in the Basic Settings of your App on the Facebook Developers website.
channelCommentsyesId of the 'Comments' channel you createdSets the base channel for the comments. If this value isn't changed, the site will break
channelEntriesyesId of the 'Entries' channel you createdSets the base channel for the entries. If this value isn't changed, the site will break
collectionEditorsPickyesId of the 'Editors Choice' collection you createdSets the channel the featured entry. If this value isn't changed, the site will break
enterDescriptionno'true' or 'false'Turn on or turn off the maximum character length and display on /enter.
enterDescriptionCountdownno'true' or 'false'Display the characters remaining ('true'), or show 'current/maximum' ('false')
enterDescriptionLengthnoint > 0Maximum number of characters allowed in the description on /enter
facebookCommentsno'true' or 'false'Setting this to 'true' will swap the traditional comments box with the Facebook comment box on the 'entry' page.
fbAppUrlyeshttps://apps.facebook.com/photovideocontestThis is the Facebook Canvas URL of your app. You can find this URL in the Basic Settings of your App on the Facebook Developers website.
fblangnoen_USUsed to tell Facebook the language of our site
file_size_limitnoint > 0 in MB (default 500)The maximum file size accepted by the uploader. Can be up to 1000MB, but very large files can negatively impact user experience.
file_upload_limitnointegerThe maximum number of files that can be uploaded at once
imageResizeUrlLivenohttp://cimg.filemobile.comThe address of the service to fetch resized images. FM support only, do not change.
imageResizeUrlStagingnohttp://mf.staging.filemobile.comThe address of the service to fetch resized images. FM support only, do not change.
langno'en', 'fr', etc...Language code used to tell our application how to render multilingual content
locationnoUSUsed to specify whether states or provinces are shown.
mapModerationno'approved' or 'notdenied''approved' will only show approved content, 'notdenied' will show approved and unmoderated content on maps
medialistCommentFiletypeno1,2,3,4Sets the type of comments that will be displayed: 1=image, 2=video, 3=audio, 4=text
moderationCommentsno'approved' or 'notdenied''approved' will only show approved comments, 'notdenied' will show approved and unmoderated comments
moderationMediano'approved' or 'notdenied''approved' will only show approved media, 'notdenied' will show approved and unmoderated media
multimediaCommentsno'true' or 'false'Select whether your contest will allow multimedia comments
multimediaUploadsno'true' or 'false'Select whether your contest will allow multimedia entries
noResultsTagsnoNo tags availableUsed to specify what text should show if an entry does not have any tags associated with it
shareEmailyesno-reply@yourdomain.comWhen people send email to each other from within the contest, this is the "from" address
singleMapEntryno'true' or 'false'Setting this to 'true' will display only the current entry on the map of the entry page. Setting it to 'false' will display the current entry along with all the entries located geographically close-by.
siteTitleyesContest 3Your website's name goes here. This is the text that is displayed in the title bar of the browser.
subChannelUploadno'true' or 'false'If you have entry sub channels you'll want to set this to 'true' so users can choose what category their entries belong to. If you don't have sub channels, leave it set to 'false' so the 'Entries' channel will be automatically chosen.
tagCloudModerationMediano1Sets the moderation filter for tag clouds.
transcoderSDnoint > 0This is the transcoder profile ID for videos. The default is 22, but you can also set up custom transcoder profiles.
transcoderThumbnoint > 0 (default 15)This is the transcoder profile ID for video thumbnails. Change this if you have created a custom transcoder profile for watermarks or other effects.
voteSinceno'midnight, -1 hour'You must change this var to reflect the voting rules. If your contest is daily voting, choose 'midnight'. If it's hourly, enter '-1 hour'.
webcamCommentno'true' or 'false'Anything other then 'true' will hide the webcam in the comments
webcamUpload*nowidget id or 'false''false' is hide the webcam and tab on the enter page.

* Note: Webcam upload is beta only.

0 comments

Be the first to comment on Global Vars.

Add a Comment

  • captcha