SimpleForum theme
SimpleForum theme script is just a simple theme example to show you, how you can use ItemManager framework to create a small flat-file Forum.
SimpleForum theme consists of only 2 .php files and includes very minimal CSS, just to keeping the layout together.
SimpleForum theme is deliberately kept very simple (procedural code, especially for developers with procedural experience) in order to give you a better overview.
To start using SimpleForum theme on your GetSimple website just needs a number of things:
Demo Forum: http://im.ehret-studio.com/forum/
Detailed instruction on how to install the SimpleForum you can see here:
1. First of, create following page structure in admin:
1. Login
2. Signup
3. Accounts
4. Logout
5. Recovery
6. Activate
7. Forum
-1. Edit (child page of the Forum)
-2. Post (child page of the Forum)
-3. Phones (child page of the Forum)
-4. Readers (child page of the Forum)
-5. Tablets (child page of the Forum)
Categories: Phones, Readers and Tablets are temporary names, you can change them again at any time later.
Please make sure that the resulting page slugs are exactly the same as page names: login, signup, accounts, etc.
2. Install / activate latest version ItemManager (v. 2.3 I’ve fixed a small cache bug, you'll need it to cache your forum pages)
3. Install / activate Frontainer v. 1.0 from GitHub or Extend
4. Install / activate SimpleForum theme from GitHub or Extend
5. Go to Plugins > Frontainer settings and put there your eMail data:
(Site name, email from, email to, etc. These parameters are used for user registration and authentification email)
6. Let’s go to ItemManager's tab > Categories and create following categories there:
1. Users
2. Threads
3. Postings
7. Join to all three created categories and make a note of those category ID's, these ID's will be assigned to constants in the functions.php file - but more of that later.
8. After that go to ItemManager's Fields menu, select Users category first and click Reload, then create these fields for it:
1. Name: email,
Label: eMail (or your choice),
Type: Text field
2. Name: password,
Label: Password (or your choice),
Type: Password
3. Name: recovery,
Label: Recovery password (or your choice),
Type: Hidden field
9. Now, select Threads category > click Reload. Create fields:
1. Name: category,
Label: Category (or your choice),
Value: Tablet computer
E-Book readers
Smartphones
Type: Dropdown
2. Name: content,
Label: Content (or your choice),
Type: Long text field
3. Name: user_id,
Label: can be left blank,
Type: Hidden field
10. Select Postings category > click reload button, create fields:
1. Name: thread_id,
Label: can be left blank,
Type: Hidden field
2. Name: user_id,
Label: can be left blank,
Type: Hidden field
3. Name: content,
Label: Content (or your choice),
Type: Long text field
11. Go to /theme/SimpleForum/ then edit this file functions.php There u’ll see following lines:
Change any ID values which differ from those that you created (as you noted earlier) you can also change $categories array there at a later time, but let's keep the values as they are right now, just for test.
SimpleForum theme script is just a simple theme example to show you, how you can use ItemManager framework to create a small flat-file Forum.
SimpleForum theme consists of only 2 .php files and includes very minimal CSS, just to keeping the layout together.
SimpleForum theme is deliberately kept very simple (procedural code, especially for developers with procedural experience) in order to give you a better overview.
To start using SimpleForum theme on your GetSimple website just needs a number of things:
- ItemManager 2.3+ plugin must be installed and configured
- Frontainer 1.0 plugin or or similar 'user management plugin' (for creating an unique user ID) must be installed and configured.
- The fancy url checkbox should be activated in admin settings
Demo Forum: http://im.ehret-studio.com/forum/
Detailed instruction on how to install the SimpleForum you can see here:
1. First of, create following page structure in admin:
1. Login
2. Signup
3. Accounts
4. Logout
5. Recovery
6. Activate
7. Forum
-1. Edit (child page of the Forum)
-2. Post (child page of the Forum)
-3. Phones (child page of the Forum)
-4. Readers (child page of the Forum)
-5. Tablets (child page of the Forum)
Categories: Phones, Readers and Tablets are temporary names, you can change them again at any time later.
Please make sure that the resulting page slugs are exactly the same as page names: login, signup, accounts, etc.
2. Install / activate latest version ItemManager (v. 2.3 I’ve fixed a small cache bug, you'll need it to cache your forum pages)
3. Install / activate Frontainer v. 1.0 from GitHub or Extend
4. Install / activate SimpleForum theme from GitHub or Extend
5. Go to Plugins > Frontainer settings and put there your eMail data:
(Site name, email from, email to, etc. These parameters are used for user registration and authentification email)
6. Let’s go to ItemManager's tab > Categories and create following categories there:
1. Users
2. Threads
3. Postings
7. Join to all three created categories and make a note of those category ID's, these ID's will be assigned to constants in the functions.php file - but more of that later.
8. After that go to ItemManager's Fields menu, select Users category first and click Reload, then create these fields for it:
1. Name: email,
Label: eMail (or your choice),
Type: Text field
2. Name: password,
Label: Password (or your choice),
Type: Password
3. Name: recovery,
Label: Recovery password (or your choice),
Type: Hidden field
9. Now, select Threads category > click Reload. Create fields:
1. Name: category,
Label: Category (or your choice),
Value: Tablet computer
E-Book readers
Smartphones
Type: Dropdown
2. Name: content,
Label: Content (or your choice),
Type: Long text field
3. Name: user_id,
Label: can be left blank,
Type: Hidden field
10. Select Postings category > click reload button, create fields:
1. Name: thread_id,
Label: can be left blank,
Type: Hidden field
2. Name: user_id,
Label: can be left blank,
Type: Hidden field
3. Name: content,
Label: Content (or your choice),
Type: Long text field
11. Go to /theme/SimpleForum/ then edit this file functions.php There u’ll see following lines:
Code:
define('USERS_CAT_ID', 19);
define('THREADS_CAT_ID', 20);
define('POSTINGS_CAT_ID', 21);
Change any ID values which differ from those that you created (as you noted earlier) you can also change $categories array there at a later time, but let's keep the values as they are right now, just for test.