Pligg Database Tables

Register an Account
Pligg Chat Room
 
 
LinkBack Article Tools Display Modes
  #1 (permalink)  
Old 02-16-2009, 12:44 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Reserved for future media.

Now Available: Facebook Connect Module !
Reply With Quote
  #2  

Pligg Database Tables

A MySQL database is used to store data for your Pligg site. Within that database are several tables which group the data into easy to understand fields. Stories, for example, are all stored in the same database table.

This wiki article will outline all of the MySQL database tables that Pligg uses to store data.

 

Contents

Database Prefix


When installing Pligg you have the option to change the default prefix used in your table names. By default pligg uses the prefix pligg_, but you could change this value to anything you want. Because of this I will be referring to the table name that comes after that prefix in the table outline below.

Table categories


This table is used to store the categories on your Pligg site. It stores the following data:
  • Category name
  • Category description
  • Keywords associated with the category
  • Author levels allowed to submit to the category
  • Groups allowed to submit to the category
  • Data that determines how it should be ordered

Table comments


This table contains details about:
  • What story the comment belongs to
  • The comment content.
  • Who was the author
  • Whether it was a reply to another comment or an original comment
  • How many positive or negative votes the comment received

Table config


This table holds the data that is used for Pligg's "Configure" admin page. It contains a variety of information that changes your site's settings.

Table groups


This table is used to store data about groups that belong to your Pligg site. Some of the fields found in this MySQL table are:
  • Group ID (auto incrementing number assigned to each group)
  • Group Creator (who created the group)
  • Group Status (enable/disable)
  • Group Members
  • Group Date (last updated the group settings)
  • Group Name
  • Group Description
  • Group Privacy (determines who can join the group, who can see the users/content)
  • Group Avatar
  • Group Votes to Publish (how many votes make the Group's published homepage)
Attached Thumbnails
Pligg Database Tables-database-tables.png  


Contributors: Yankidank
Created by Yankidank, 02-16-2009 at 12:44 PM
Last edited by Yankidank, 02-18-2009 at 01:47 PM
1 Comments , 1658 Views
 

Article Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg 1.0.0 RC3 Yankidank Current Version 2 04-02-2009 11:21 AM
Pligg integration with SMF Forum autoinc Questions and Comments 64 05-19-2008 02:22 AM
siChunk Series of Templates for pligg Adaman Templates for Sale 1 10-02-2007 10:17 PM
old database new pligg soulja90 Questions and Comments 0 07-28-2007 08:40 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development