SNiPTT stands for Social Networking in Pretty Tiki Trackers. This profile is intended to help with building a Social Networking website based mainly on the powerful Tiki Trackers feature.
Global Preferences
YAML
instructions: SNiPTT Setup # page where admin is redirected after applying the profile
preferences: # some mandatory prefs to make sure all will work for us (alphabetically sorted)
feature_custom_center_column_header: {if $user}{wiki}[tiki-index.php|Home] | ((User Profile|My Profile)) | [tiki-user_preferences.php|Preferences] | [tiki-logout.php|Logout]{/wiki}{if $tiki_p_admin eq "y"}{wiki}[tiki-admin.php?profile=SNiPTT&page=profiles&list=List|Re-apply this profile]{/wiki}{/if}{/if} # re-apply link only for development purpose (will be removed from final)
feature_fullscreen: y # it is useful to have Fullscreen mode available
feature_mytiki: y
feature_userPreferences: y
wikiplugin_jq: y
userTracker: y
This profile applies the following trackers:
User Profile Tracker
YAML
preferences:
feature_trackers: y
objects:
-
type: tracker
ref: user_profile_tracker
data:
name: User Profile
description: Additional information about users
default_status: open
allow: [ one_item_per_user, creator_modification ]
hide_list_empty_fields: y
show: [creation_date, modification_date, list_modification_date ]
sort_default_order: asc
General Fields (Mandatory)
YAML
objects:
-
type: tracker_field
ref: user_name
data:
name: User Login Name
tracker: $user_profile_tracker
type: user
flags: [ searchable, public, link, list, mandatory ]
options: 1
order: 10
Extra Fields
YAML
objects:
-
type: tracker_field
ref: real_name
data:
name: Real Name
tracker: $user_profile_tracker
type: preference
flags: [ searchable, public, list ]
options: realName
order: 20
-
type: tracker_field
ref: nick_name
data:
name: User Nick
tracker: $user_profile_tracker
type: text_field
flags: [searchable, public]
order: 30
-
type: tracker_field
ref: welcome_name
data:
name: Welcome Name
tracker: $user_profile_tracker
type: text_field
flags: [searchable, public]
order: 40
User Followers Tracker
YAML
objects:
-
type: tracker
ref: user_followers_tracker
data:
name: User Followers
description: Who follows whom
default_status: open
allow: [ one_item_per_user, creator_modification ]
hide_list_empty_fields: y
show: [creation_date, modification_date, list_modification_date ]
sort_default_order: asc
User Posts Tracker
YAML
preferences:
feature_trackers: y
objects:
-
type: tracker
ref: user_posts_tracker
data:
name: User Posts
description: User posts for "micro-blogging" purposes
default_status: open
allow: [comments, creator_modification]
hide_list_empty_fields: y
show: [creation_date, modification_date, list_modification_date ]
sort_default_order: asc
-
type: tracker_field
ref: user_post_username
data:
name: User Login Name
tracker: $user_posts_tracker
type: user
flags: [searchable, public, link, list, mandatory]
options: 1
order: 10
-
type: tracker_field
ref: user_post_body
data:
name: Post Body
tracker: $user_posts_tracker
type: a
flags: [searchable, public, mandatory]
options: 1,80,4,1024,1024
order: 20
First lets make sure Wiki feature is on and set up other wiki related preferences used by this profile:
YAML
preferences:
feature_wiki: y
feature_wiki_argvariable: y # we are gonna use arg variables in our wiki page templates like {{foo}} (its value will be filled from URL param &foo=bar)
After applying the profile an admin is redirected to this setup page with further instructions: