ClipBucket Constants

100 views October 18, 2016 Saqib Razzaq 0

If you are not a web developer, you can ignore this guide.

ClipBucket constants allow you to access numerous crucial values such as root paths, ClipBucket version, configurations and more.

Version

VERSION : Version of currently installed ClipBucket e.g 2.8
STATE : State of currently installed ClipBucket e.g Beta
REV : GitHub revision of currently installed ClipBucket e.g 4,470
RELEASED : Release date of ClipBucket installation
AUTHORS : The Ninjas that put their heart & soul into making ClipBucket awesome

General

THIS_PAGE : Name of currently active page e.g videos
BASEDIR : Returns full directory path to ClipBucket installation
CB_SSL : Stores if ClipBucket is running on secure server or not
BASEURL : URL of ClipBucket installation
CB_VERSION : Version of ClipBucket installed
TITLE : Tite of currently installed ClipBucket
SLOGAN : Slogan of currently installed ClipBucket
SEO : Stores wheather SEO urls are enabled or not
EMAIL_VERIFICATION : Stores wheather email verification of new signups is enabled or not
ALLOW_REG : New registrations are allowed or not
WEBSITE_EMAIL : Main email address of website
SUPPORT_EMAIL : Email address of support department
WELCOME_EMAIL : Email to send welcome email as
VIDEO_REQUIRE_LOGIN : Require user to login to watch videos or not
ACTIVATION : If video activation is enabled or not
VIDEO_COMMENT : If video comments are allowed or not
VIDEO_RATING : If video rating is allowed or not
COMMENT_RATING : If comments rating is allowed or not
VIDEO_DOWNLOAD : If video downloads are allowed or not
VIDEO_EMBED : If video embeds are allowed or not
TEMPLATEFOLDER : Folder where templates are stored
STYLES_DIR : Full path to folder of currently active theme
ALLOW_LANG_SELECT : Wheather front end language change is allowed or not
ALLOW_STYLE_SELECT : Wheather front end style change is allowed or not
SUBTITLE : Subtitle of currently active page
ADMINBASEDIR : Full path to admin directory
ADMIN_BASEURL : Complete baseurl for admins
FILES_DIR : Full path to /files directory where all media is sotred
VIDEOS_DIR : Full path to /files/videos directory which stores everything regarding videos
THUMBS_DIR : Full path to /files/thumbs which stores all of thumbs
ORIGINAL_DIR : Full path to directory where original files are placed
TEMP_DIR : Full path to /files/temp directory where data is stored temporarily
CON_DIR : Full path to /files/conversion_qeue directory which holds files that are waiting for conversion to start
MASS_UPLOAD_DIR : Full path to /files/mass_uploads directory where mass uploads are stored
LOGS_DIR : Full path to /files/logs where all logs are stored
IMAGES_DIR : Full path to images directory
IMAGES_URL : URL to images direcotry to access them via browser
USER_THUMBS_DIR : Path to directory where thumbs of user are stored
USER_BG_DIR : Not used anymore
ICONS_URL : Not used anymore
JS_DIR : Not used anymore
JS_URL : URL of /js folder where javascript is stored
FILES_URL : URL of /files to access file via browser
VIDEOS_URL : URL of /files/videos to access video files via browser
THUMBS_URL : URL of /files/thumbs to access thumbs via browser
TEMP_URL : URL /temp which stores temporary files
PLAYER_DIR : Full path to /player directory which holds players
PLAYER_URL : Full URL to /player to access file via browser
KEEP_ORIGINAL : Stores wheather to keep original files or not
MAX_UPLOAD_SIZE : Maximu filesize to be allowed for uploading
THUMB_HEIGHT : Maximum allowed height for thumbs
THUMB_WIDTH : Maxiumum allowed width for thumbs
PHP_PATH : Full path of PHP installed on server
PLUG_DIR : Full path to /plugins directory
PLUG_URL : URL to /plugins to access files via browser
MAX_COMMENT_CHR : Maximum allowed characters to be entered as comment
USER_COMMENT_OWN : If user can comment on his own content or not
COLLECT_THUMBS_DIR : Full path to directory for storing collection thumbs
COLLECT_THUMBS_URL : URL of collection thumbs directory
PHOTOS_DIR : Full path to /files/photos directory which stores photos
PHOTOS_URL : URL to /files/photos for accessing files via browser
CACHE_DIR : Full path to /cache directory which is used for sotring smarty cache files
COMM_CACHE_DIR : Full path to /cache/comments directory which is used for storing comments cache
COMM_CACHE_TIME : Time to store comments cache for
USER_FEEDS_DIR : Full path to /cache/userfeed directory which is used for storing user cache
YOUTUBE_ENABLED : If grab from YouTube is enabled or not
EMBED_VDO_WIDTH : Maximum allowed width of embeded videos
EMBED_VDO_HEIGHT : Maximum allowed height of embedded videos
ALLOWED_VDO_CATS : If video categories are allowed or not
ALLOWED_CATEGORIES : If categories are allowed or not
SEND_COMMENT_NOTIFICATION : Wheather to send comment notifications or not
SEND_VID_APPROVE_EMAIL : Wheather to send approval notifications or not

Configurations

FRONT_END : If user is on frontend or not
BACK_END : If user is on backend or not
PARENT_PAGE : Parent page of currently loaded page
TEMPLATEDIR : Path to folder that holds templates
TEMPLATEURL : URL to folder that holds templates
LAYOUT : Full path to currently active template’s layout folder
ADMINLAYOUT : Full path to currently active admin template’s layout folder

Was this helpful?