Requirement:
XThreads
With XThreads, we can create profile forum. The basic idea is, our member can create a profile thread, which is contains their character in a game. They can upload their screenshots from the game, and fill various info about their character. And they can edit it whenever they want.
Unfortunately, it is hard to give an example for each game, so, we will take The Sims game in this example. If we want to apply it for another game, we need to modify the info / XThreads thread fields to make it suitable with that game.
Possibility for another usage: we can use it as another profile page for our member. With XThreads
Viewable by Usergroups settings, we can create "private" info for the profile thread. And, because XThreads has an ability to choose in which forum id(s) a XThreads thread field can be used, it will make us easier to choose which usegroup can create a profile thread. We can combine it with forum permission.
We can use the forum permission for this example too: if we have a RPG forum which has more than one usergroup as clan, we can set the forum permission for each usergroup / clan. And then, we can set the forum related to a clan with custom XThreads thread field. So, each usergroup / clan will has different info / stats. Plus, if we want to create some "private" info / stats (viewable by that clan member only), we can use XThreads
Viewable by Usergroups feature. Great, huh? A lot of "magic" can be done by XThreads!
Here is a simple example to create a Profile Forum (based on The Sims Game):
1. Textbox for Sim's Name:
Create a Custom Thread Fields with this settings:
- Title: Your Sim's Name
- Key: profname
- Applicable Forums: 'select a forum that we will apply the profile forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
Variable in template for displaying this field is: {$GLOBALS['threadfields']['profname']}.
2. Listbox for Sim's Gender:
Create a Custom Thread Fields with this settings:
- Title: Your Sim's Gender
- Key: profgender
- Applicable Forums: 'select the profile forum'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Do we need to modify it?
- Editable by / Required Field?: Everyone (required)
- Display Order: 2
Variable in template for displaying this field is: {$GLOBALS['threadfields']['profgender']}.
3. Listbox for Sim's Status:
Create a Custom Thread Fields with this settings:
- Title: Your Sim's Status
- Key: profstatus
- Applicable Forums: 'select the profile forum'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Modify it as our need.
- Editable by / Required Field?: Everyone (required)
- Display Order: 3
Variable in template for displaying this field is: {$GLOBALS['threadfields']['profstatus']}.
4. Listbox for Sim's Main Career:
Create a Custom Thread Fields with this settings:
- Title: Your Sim's Main Career
- Key: profcareer
- Applicable Forums: 'select the profile forum'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Modify it as our need.
- Editable by / Required Field?: Everyone (required)
- Display Order: 4
Variable in template for displaying this field is: {$GLOBALS['threadfields']['profcareer']}.
5. Textbox for Family Friends:
Create a Custom Thread Fields with this settings:
6. Textbox for Sim's Age:
Create a Custom Thread Fields with this settings:
7. File Input for Sim's Picture:
Create a Custom Thread Fields with this settings:
8. Listbox for Sim's Skill:
Repeat this step as our needs. Just remember to use a different
Title and
Key. And modify the
Blank Replacement Value and the
Display Format too, especially for the word
Cooking Level.
Create a Custom Thread Fields with this settings:
Optional step: We can create another File input for Additional Sim's Pictures. Just use another
Key for that. Example:
Opt 1. File input for Additional Sim's Pictures.
Create a Custom Thread Fields with this settings:
Opt 2. Textbox for Additional Picture Description:
Create a Custom Thread Fields with this settings:
- Title: Additional Picture Description 1
- Key: profdesc1
- Description: Description for the additional picture - Not Required
- Applicable Forums: 'select the profile forum'
- Input Field Type: Textbox
I think 255 chars is enough.
- Editable by / Required Field?: Everyone
- Display Order: 10
Modify it as our needs.
Repeat two steps above depend on max images that user can upload. And use different
Key.
9. Now, XThreads Options in Forum settings (the Profile Forum):
- Template Prefix: prof_
- Thread Grouping: 2
- Show first post on every showthread page: Yes
- Enable XThreads' Inline Forum Search: Yes
- Force Postbit Layout: Force horizontal postbit layout
Optional setting: Set forum permission for which usergroup can create thread in this forum.
10. Create new templates in Global Template:
- Template Name: prof_forumdisplay_group_sep
- Template Content:
- Template Name: prof_forumdisplay_nothreads
- Template Content:
- Template Name: prof_forumdisplay_thread
- Template Content:
- Template Name: prof_forumdisplay_threadlist
- Template Content:
- Template Name: prof_forumdisplay_threadlist_rating
- Template Content:
- Template Name: prof_forumdisplay_thread_null
- Template Content:
- Template Name: prof_forumdisplay_thread_rating
- Template Content:
- Template Name: prof_postbit
- Template Content:
- Template Name: prof_postbit_first
- Template Content:
- Template Name: prof_showthread
- Template Content:
- Template Name: prof_showthread_noreplies
- Template Content:
- Template Name: prof_showthread_ratethread
- Template Content:
Please let me know if I missed somethings
Screenshots:
1. User create a product review thread:
2. User view the post:
3. Thread List:
I have created a live demo for this:
http://www.14.mynie.co.cc/forumdisplay.php?fid=6