Requirement:
XThreads
Latest Edit: 12 December 2012
We will create a product
review forum with XThreads.
Here is a simple example to do that:
1. Textbox for Product Name:
Create a Custom Thread Fields with this settings:
- Title: Product Name
- Key: pfname
- Applicable Forums: 'select a forum that we will apply the product review forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfname']}.
2. Textbox for Developer:
Create a Custom Thread Fields with this settings:
- Title: Developer
- Key: pfdev
- Applicable Forums: 'select the product review forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Display Order: 2
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfdev']}.
3. Textbox for Developer Website:
Create a Custom Thread Fields with this settings:
- Title: Developer Website
- Key: pfdevurl
- Applicable Forums: 'select the product review forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Display Order: 3
- Text Mask Filter: URL (HTTP/S)
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfdevurl']}.
4. Textbox for Product Version:
Create a Custom Thread Fields with this settings:
- Title: Version
- Key: pfversion
- Applicable Forums: 'select the product review forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone
- Display Order: 4
- Blank Replacement Value: -
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfversion']}.
5. Textbox for Release (Year):
Create a Custom Thread Fields with this settings:
6. Multiline Textbox for Product Description:
Create a Custom Thread Fields with this settings:
- Title: Product Description
- Key: pfdesc
- Description: Give a short description (Max 250 characters) about this product - Required
- Applicable Forums: 'select the product review forum'
- Input Field Type: Multiline Textbox
- Maximum Text Length: 250
Modify it as our needs.
- Editable by / Required Field?: Everyone (required)
- Display Order: 6
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfdesc']}.
7. File Input for Product Picture:
Create a Custom Thread Fields with this settings:
- Title: Product Picture
- Key: pfpic
- Description: Upload a picture related to this product - Required
- Applicable Forums: 'select the product review forum'
- Input Field Type: File
- Valid File Extensions: gif|png|jpg|jpeg
Modify it as our needs. It is the extensions of image that can be uploaded.
- Maximum File Size: 1048576
Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded. In this example, 1 Mb.
- Editable by / Required Field?: Everyone (required)
- Display Order: 7
- Only accept uploaded images: Yes
- Image Thumbnail Generation:
Modify it as our needs. It is thumbnail sizes that we can use for this image.
Only the 320x240 thumbnails will be watermarked. Modify the images/mylogo.png to the image to be copied as watermark, and the 120,90 in the scale 'function' as needed (it is the max size of the watermark).
8. Listbox for Categories:
Create a Custom Thread Fields with this settings:
Optional step: We can create another File input for Additional Product Images. Just use another
key for that. Example:
Opt 1. File input for Additional Product Images.
Create a Custom Thread Fields with this settings:
- Title: Additional Picture 1
- Key: pfapic1
- Description: Upload an additional picture - Not required
- Applicable Forums: 'select the product review forum'
- Input Field Type: File
- Valid File Extensions: gif|png|jpg|jpeg
Modify it as our needs. It is the extensions of image that can be uploaded.
- Maximum File Size: 1048576
Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded. In this example, 1 Mb.
- Editable by / Required Field?: Everyone
- Display Order: 9
- Only accept uploaded images: Yes
- Image Thumbnail Generation: 160x120
Modify it as our needs. It is thumbnail sizes that we can use for this image.
- Blank Replacement Value:
- Display Format:
Opt 2. Multiline Textbox for Additional Picture Description:
Create a Custom Thread Fields with this settings:
- Title: Additional Picture Description 1
- Key: pfapdesc1
- Description: Description for the additional picture - Not Required
- Applicable Forums: 'select the product review forum'
- Input Field Type: Multiline Textbox
- Maximum Text Length: 250
Modify it as our needs.
- Editable by / Required Field?: Everyone
- Display Order: 10
Repeat two steps above depend on max images that user can upload. And use different
key.
9. Now, XThreads Options in Forum settings (the Product
Review Forum):
- Template Prefix: pf_
- Show first post on every showthread page: Yes
- Enable XThreads' Inline Forum Search: Yes
- Override Threads Per Page: 5
Modify it as our needs.
- Settings Overrides:
- Setting: Showthread Options -> Post Layout
Value: horizontal
10. Create new templates in Global Template:
- Template Name: pf_forumdisplay_threadlist
- Template Content:
- Template Name: pf_forumdisplay_threadlist_rating
- Template Content:
- Template Name: pf_forumdisplay_thread
- Template Content:
- Template Name: pf_forumdisplay_thread_rating
- Template Content:
- Template Name: pf_showthread
- Template Content:
- Template Name: pf_showthread_ratethread
- Template Content:
- Template Name: pf_showthread_search
- Template Content:
- Template Name: pf_postbit_first
- Template Content:
- Template Name: pf_postbit
- Template Content:
- Template Name: pf_forumdisplay_threads_sep
- Template Content:
- Template Name: pf_forumdisplay_sticky_sep
- Template Content:
Logs:
09 November 2010 -
23 October 2011 -
7 October 2012
Screenshots:
1. User create a product
review thread:
2. User view the post:
3. Thread List:
I'm sorry for my English
Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=4