- Post Meta
- User Meta
- Comment Meta
- Post Points
- Comment Points
- Shares
- User Roles
- Favorites
- Feeds
- Cron Logs
Default Table Name: wp_posworld_ post_meta
- Used by pw_query posts by class
- Examples of classes:
- editorial - On posts from approved authors and editors
- community - On posts from community members
Default: standard
- Used by pw_query media by format
- Used with ng-switch on templates to change how post of various formats are displayed
- Examples of formats:
- standard - A regular post
- video - On posts which have a primary link_url which is a video
- audio - On posts which have a primary link_url which is a audio
- Used to associate a specific link URL with a post
- Used by templates for featured links, videos and audio files for embedding
- The total number of points voted to a post
- The total number of shares to the post
- The real-time rank-score of a post, based on
calculate_rank_score()
Method
Default Table Name: wp_posworld_ user_meta
- Wordpress User ID
Data : cached
- Total points which have been voted to the user's posts
- Cached data which breaks down the attribution of points by post_type
- Data : cached
- Generated by :
pw_calculate_user_posts_points()
PHP Method - Cached by :
pw_cache_user_posts_points()
PHP Method
- Generated by :
{
post_type : {
post : 242,
link : 523,
blog : 123,
event : 12
}
}
Data : cached
- Total points which have been voted to the user's comments
Data : cached
- Total number of share points of the user's shares ( incoming + outgoing )
-
Cached JSON Object which breaks down the user's share points by:
- incoming : Number of share points to my posts
- outgoing : From posts that I have shared
-
Data : cached
- Calculated by :
calculate_user_shares($user_id)
- Cached by :
cache_user_share($user_id)
- Calculated by :
{
outgoing : 312,
incoming : 512
}
{
viewed:[12,25,23,16,47,24,58,112,462,78,234,25,128],
favorites:[12,16,25],
view_later:[58,78],
}
- Outlines the recent 10 votes the user has cast to posts
- Used to calculate how often a user is voting on posts
- If the user is voting on posts too often, disable comment voting temporarily
recent : {
{
post_id:242,
points:1,
time_voted:{{UNIX TIMESTAMP}}
},
{
post_id:942,
points:-1,
time_voted:{{UNIX TIMESTAMP}}
},
}
- Outlines the recent 10 votes the user has cast to comments
- Used to calculate how often a user is voting on comments
- If the user is voting on comments too often, disable comment voting temporarily
Anatomy:
{
has_voted:{
recent : {
{
comment_id:24152,
points:1,
time_voted:{{UNIX TIMESTAMP}}
},
{
comment_id:43532,
points:-1,
time_voted:{{UNIX TIMESTAMP}}
},
}
}
}
- Used to display and query a user by city
- Used to display and query a user by region (province/state/territory)
- Used to display and query a user by country
Default Table Name: wp_posworld_ comment_meta
- Used to cache data for comments
Default Table Name: wp_posworld_ post_points
- Used to store a record of all points cast to all posts
- The post ID of the post being voted on
- The user ID of the author who created the post
- The user ID of the user who is casting a vote
- The number of points cast in the vote
- The time which the vote was cast
Default Table Name: wp_posworld_ comment_points
- Used to store a record of all points cast to all comments
- The post ID of the post that the comment is on
- The user ID of the author who created the post which the comment is on
- The comment ID of the comment
- The user ID of the author of the comment
- The user ID of the user who is casting the vote
- The number of points being voted to the comment
- The time that the vote was cast
Default Table Name: wp_posworld_ shares
- Used to store a record of all posts shared by users
- The user ID of the user sharing
- Tracked when a link like this is loaded :
- _http://realitysandwich.com/?p=2453&u=24
p = page ID
u = user ID
- _http://realitysandwich.com/?p=2453&u=24
- The post ID of the post which is being shared
- The user ID of the user who authored the post
- A list of the most recent 100 IP addesses which have loaded the share URL
- Used to discount counting multiple hits from the same visitor
- The number of shares by that user to that post
- The most recent time the share URL was loaded by a unique IP
Default Table Name: wp_posworld_ favorites
- Used to store a record of all favorites by user ID and post ID
- Will be used to calculate 'reccomended pages' by favorites
- 'People who liked this, also liked this.'
- Will be used to reccomend friends of similar interests
- 'People who also favorited this : {{List Users}}'
- Format : UNIX Timestamp
- Time that the favorite was added
Default Table Name: wp_posworld_ feeds
- Stores registered query vars, cached feed outlines and performance data for feeds
- Used by the load-feed JS directive to load cached feeds
- Used by the following PHP Methods:
pw_register_feed()
pw_load_feed()
pw_cache_feed()
- The ID of the feed, described by
pw_register_feed()
- Format : JSON
- The registered query args for
pw_query()
which generates the feed_outline - Stored in JSON format
- Contains a list of comma deliniated integers
- Describes the post IDs in the order retured by
pw_query()
24,12,51,467,235,364,364,3453
- Format : UNIX Timestamp
- The starting time of the last run of
cache_feed()
- Format : UNIX Timestamp
- The ending time of the last run of
cache_feed()
- Format : milliseconds
- The number of miliseconds it took to generate the current feed outline
Default Table Name: wp_posworld_ cron_logs
- Stores a log of the cron tasks performed
- Method : auto-increment
- An auto-incremented ID generated by MySQL of the cron task
- The name of the function which generated the cron task
- ie.
pw_cache_feed
- ie.
- (Optional)
- The ID of the feed or post_type processed, if applicable
- Format : UNIX Timestamp
- Time that the cron task started
- Format : UNIX Timestamp
- Time that the cron task ended
- Format : milliseconds
- Time that the cron task took to process
- (Optional)
- The number of posts processed, if applicable
- Format : JSON
- (Optional)
- If there are query args associated with the function type, store them here