05-15-2010, 02:16 AM
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:
2. Textbox for Developer:
Create a Custom Thread Fields with this settings:
3. Textbox for Developer Website:
Create a Custom Thread Fields with this settings:
4. Textbox for Product Version:
Create a Custom Thread Fields with this settings:
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:
7. File Input for Product Picture:
Create a Custom Thread Fields with this settings:
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:
Opt 2. Multiline Textbox for Additional Picture Description:
Create a Custom Thread Fields with this settings:
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):
10. Create new templates in Global Template:
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
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:
- Title: Release (Year)
- Key: pfrelease
- Applicable Forums: 'select the product review forum'
- Input Field Type: Textbox
- Editable by / Required Field?: Everyone (required)
- Maximum Text Length: 4
- Field Input Width: 5
- Display Order: 5
- Text Mask Filter:
Code:
^(19|20)\d\d$
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfrelease']}.
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:
Code:88x66|160x120|320x240=scale_max(320,240)->copy(newXTImg()->loadimage('images/mylogo.png')->scale(120,90),-2,-2)
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:
- Title: Category
- Key: pfcat
- Applicable Forums: 'select the product review forum'
- Input Field Type: Listbox
- Field Input Height: 1
- Values List:
Code:
Software Hardware Other
Modify it as our needs.
- Editable by / Required Field?: Everyone (Required)
- Display Order: 8
- Allow Filtering: Yes
- Formatting Map List:
EDIT: We will use {$forumurl?} variable for this. It will detect the forum id automatically.
HTML CodeSoftware{|}<a href="{$forumurl?}filtertf_pfcat=Software"><span style="color: green;">Software</span></a> Hardware{|}<a href="{$forumurl?}filtertf_pfcat=Hardware"><span style="color: blue;">Hardware</span></a> Other{|}<a href="{$forumurl?}filtertf_pfcat=Other"><span style="color: red;">Other</span></a>
Variable in template for displaying this field is: {$GLOBALS['threadfields']['pfcat']}.
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:
HTML Code
<a href="{URL}" target="_blank"><img src="{URL}/thumb160x120" alt="{$thread['subject']} Screenshot" title="{$GLOBALS['threadfields']['pfapdesc1']}" style="border: 1px solid #C1C1C1; padding: 3px; margin: 3px;" /></a>
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
Code:postlayout=horizontal
- Setting: Showthread Options -> Post Layout
10. Create new templates in Global Template:
- Template Name: pf_forumdisplay_threadlist
- Template Content:
HTML Code
<div class="float_left"> {$multipage} </div> <div class="float_right"> {$newthread} </div> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" colspan="{$colspan}"> <div align="center"> <strong>{$foruminfo['name']}</strong> </div> </td> </tr> <tr> <td class="tcat smalltext" width="100%" colspan="2"> <span class="float_left"> <strong>Sort By: <a href="{$sorturl}&sortby=subject&order=asc">{$lang->thread}</a> {$orderarrow['subject']} | <a href="{$sorturl}&sortby=starter&order=asc">{$lang->author}</a> {$orderarrow['starter']} | <a href="{$sorturl}&sortby=replies&order=desc">{$lang->replies}</a> {$orderarrow['replies']} | <a href="{$sorturl}&sortby=views&order=desc">{$lang->views}</a> {$orderarrow['views']} {$ratingcol} | <a href="{$sorturl}&sortby=lastpost&order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong> </span> <span class="float_right"> <strong><a href="misc.php?action=markread&fid={$fid}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&type=forum&fid={$fid}&my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong> </span> </td> {$inlinemodcol} </tr> </table> <br class="clear" /> {$threads}{$nullthreads} <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="tcat" colspan="{$colspan}"> <span class="float_left"> <form action="forumdisplay.php" method="get"> <input type="hidden" name="fid" value="{$fid}" /> <select name="sortby"> <option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option> <option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option> <option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option> <option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option> {$ratingsort} <option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option> <option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option> </select> <select name="order"> <option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option> <option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option> </select> <select name="datecut"> <option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option> <option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option> <option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option> <option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option> <option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option> <option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option> <option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option> <option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option> <option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option> </select> {$gobutton} </form> </span> <span class="float_right"> {$forumjump} </span> </td> </tr> <tr> <td class="tfoot" align="center" colspan="{$colspan}"> <strong><a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a></strong> </td> </tr> </table> <div class="float_left"> {$multipage} </div> <div class="float_right" style="margin-top: 4px;"> {$newthread} </div> <br style="clear: both;" /> <br /> <div class="float_left"> <div class="float_left"> <dl class="thread_legend smalltext"> <dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}" title="{$lang->new_thread}" /> {$lang->new_thread}</dd> <dd><img src="{$theme['imgdir']}/newhotfolder.gif" alt="{$lang->new_hot_thread}" title="{$lang->new_hot_thread}" /> {$lang->new_hot_thread}</dd> <dd><img src="{$theme['imgdir']}/hotfolder.gif" alt="{$lang->hot_thread}" title="{$lang->hot_thread}" /> {$lang->hot_thread}</dd> </dl> </div> <div class="float_left"> <dl class="thread_legend smalltext"> <dd><img src="{$theme['imgdir']}/folder.gif" alt="{$lang->no_new_thread}" title="{$lang->no_new_thread}" /> {$lang->no_new_thread}</dd> <dd><img src="{$theme['imgdir']}/dot_folder.gif" alt="{$lang->posts_by_you}" title="{$lang->posts_by_you}" /> {$lang->posts_by_you}</dd> <dd><img src="{$theme['imgdir']}/lockfolder.gif" alt="{$lang->locked_thread}" title="{$lang->locked_thread}" /> {$lang->locked_thread}</dd> </dl> </div> <br style="clear: both" /> </div> <div class="float_right" style="text-align: right;"> {$searchforum} {$inlinemod} </div> <br style="clear: both" /> {$inline_edit_js}
- Template Name: pf_forumdisplay_threadlist_rating
- Template Content:
HTML Code
<a href="{$sorturl}&sortby=rating&order=desc">| {$lang->rating}</a> {$orderarrow['rating']} <script type="text/javascript" src="jscripts/rating.js?ver=1400"></script> <script type="text/javascript"> <!-- lang.stars = new Array(); lang.stars[1] = "{$lang->one_star}"; lang.stars[2] = "{$lang->two_stars}"; lang.stars[3] = "{$lang->three_stars}"; lang.stars[4] = "{$lang->four_stars}"; lang.stars[5] = "{$lang->five_stars}"; // --> </script>
- Template Name: pf_forumdisplay_thread
- Template Content:
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%"> <tr> <td> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" align="center" colspan="{$colspan}"> <div><strong><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong></div> </td> </tr> <tr> <td class="{$bgcolor}" width="1"> <div align="center"> <img src="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['url']}" alt="{$thread['subject']} Screenshot" title="{$thread['subject']} Screenshot" width="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['w']}" height="{$GLOBALS['threadfields']['pfpic']['thumbs']['320x240']['h']}" /> </div> </td> <td class="{$bgcolor}" width="100%"> <table border="0" width="100%"> <tr> <td valign="top" width="120">Product Name</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfname']}</td> </tr> <tr> <td valign="top">Developer</td> <td width="1" valign="top">:</td> <td valign="top"><a href="{$GLOBALS['threadfields']['pfdevurl']}">{$GLOBALS['threadfields']['pfdev']}</a></td> </tr> <tr> <td valign="top">Version</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfversion']}</td> </tr> <tr> <td valign="top">Release (Year)</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfrelease']}</td> </tr> <tr> <td valign="top">Category</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfcat']}</td> </tr> {$rating} <tr> <td valign="top">{$lang->author}</td> <td width="1" valign="top">:</td> <td valign="top">{$thread['profilelink']}</td> </tr> <tr> <td valign="top">{$lang->views}</td> <td width="1" valign="top">:</td> <td valign="top">{$thread['views']}</td> </tr> <tr> <td valign="top">{$lang->replies}</td> <td width="1" valign="top">:</td> <td valign="top"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td> </tr> </table> </td> {$modbit} </tr> </table> </td> <td> </td> <td valign="top" width="30%"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" align="center" colspan="{$colspan}"> <div><strong>Description</strong></div> </td> </tr> <tr> <td valign="top" class="{$bgcolor}" width="300"> <div style="text-align: justify; padding: 3px;"> <span class="float_left" style="margin: 5px 5px 0px 0px;"> <img src="{$GLOBALS['threadfields']['pfpic']['thumbs']['88x66']['url']}" alt="{$thread['subject']} Screenshot" title="{$thread['subject']} Screenshot" width="{$GLOBALS['threadfields']['pfpic']['thumbs']['88x66']['w']}" height="{$GLOBALS['threadfields']['pfpic']['thumbs']['88x66']['h']}" /> </span> {$GLOBALS['threadfields']['pfdesc']} </div> <br class="clear" /> <span class="float_right smalltext"> <em><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}, {$lastpostdate} {$lastposttime}</em> </span> <br class="clear" /> <span class="float_right smalltext"> <img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /> {$icon}{$prefix}{$gotounread} </span> </td> </tr> </table> </td> </tr> </table> <br />
- Template Name: pf_forumdisplay_thread_rating
- Template Content:
HTML Code
<tr> <td>Average Rating</td> <td>:</td> <td> <div class="float_left" id="rating_table_{$thread['tid']}"> <ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}"> <li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li> </ul> <script type="text/javascript"> <!-- Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' }); // --> </script> </div> </td> </tr> <tr> <td>Total Votes</td> <td>:</td> <td> {$thread['numratings']} </td> </tr>
- Template Name: pf_showthread
- Template Content:
HTML Code
<html> <head> <title>{$thread['subject']}</title> {$headerinclude} <script type="text/javascript"> <!-- var quickdelete_confirm = "{$lang->quickdelete_confirm}"; // --> </script> <script type="text/javascript" src="jscripts/thread.js?ver=1400"></script> </head> <body> {$header} {$pollbox} <div class="float_right"> {$newreply} </div> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="clear: both; border-bottom-width: 0;"> <tr> <td width="60%" valign="top"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;"> <tr> <td class="thead" colspan="2"> <div style="float: right;"> <span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span> </div> <div> <strong>{$GLOBALS['threadfields']['pfname']} Review</strong> </div> </td> </tr> {$classic_header} </table> <div> {$first_post} </div> <div align="center"> <strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong> </div> <div><strong>Comments</strong></div> <div id="posts"> {$posts} </div> <div> {$multipage} </div> </td> <td valign="top"> {$ratethread} <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <div><strong>{$GLOBALS['threadfields']['pfname']} Pictures</strong></div> </td> </tr> <tr> <td class="trow1" align="center"> {$GLOBALS['threadfields']['pfapic1']['value']} {$GLOBALS['threadfields']['pfapic2']['value']} {$GLOBALS['threadfields']['pfapic3']['value']} {$GLOBALS['threadfields']['pfapic4']['value']} {$GLOBALS['threadfields']['pfapic5']['value']} {$GLOBALS['threadfields']['pfapic6']['value']} </td> </tr> </table> {$search_thread} </td> </tr> </table> <br style="clear: both;" /> {$threadexbox} {$similarthreads} {$quickreply} <br /> <div class="float_left"> <ul class="thread_tools"> <li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li> <li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li> <li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&tid={$tid}&my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li> </ul> </div> <div class="float_right" style="text-align: right;"> {$moderationoptions} {$forumjump} </div> <br style="clear: both;" /> {$footer} </body> </html>
- Template Name: pf_showthread_ratethread
- Template Content:
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <div><strong>{$GLOBALS['threadfields']['pfname']} Rating</strong></div> </td> </tr> <tr> <td class="trow1" align="center"> <table width="100%" border="0"> <tr> <td width="150">Average Rating</td> <td width="1">:</td> <td> <script type="text/javascript" src="jscripts/rating.js?ver=1400"></script> <div class="inline_rating"> <ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}"> <li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li> <li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li> <li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li> <li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li> <li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li> <li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li> </ul> </div> </td> </tr> <tr> <td>Total Votes</td> <td width="1">:</td> <td>{$thread['numratings']}</td> </tr> </table> </td> </tr> </table> <br class="clear" />
- Template Name: pf_showthread_search
- Template Content:
HTML Code
<br class="clear" /> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <div><strong>Search</strong></div> </td> </tr> <tr> <td class="trow1" align="center"> <form action="search.php" method="post"> <input type="hidden" name="action" value="thread" /> <input type="hidden" name="tid" value="{$thread['tid']}" /> <input type="text" name="keywords" value="{$lang->enter_keywords}" onfocus="if(this.value == '{$lang->enter_keywords}') { this.value = ''; }" onblur="if(this.value=='') { this.value='{$lang->enter_keywords}'; }" class="textbox" size="25" /> <input type="submit" class="button" value="{$lang->search_thread}" /> </form> </td> </tr> </table>
- Template Name: pf_postbit_first
- Template Content:
HTML Code
{$ignore_bit} <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}"> <tbody> <tr> <td class="tcat"> <div class="float_left smalltext"> {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span> </div> {$post['posturl']} </td> </tr> <tr> <td class="trow1 {$unapproved_shade}"> <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;"> <tr> <td class="post_avatar" width="1" style="{$post['avatar_padding']}"> <img src="{$GLOBALS['threadfields']['pfpic']['thumbs']['160x120']['url']}" alt="" title="{$GLOBALS['threadfields']['pfname']}" /> </td> <td class="post_author"> <table border="0" width="100%" class="smalltext"> <tr> <td valign="top">Product Name</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfname']}</td> </tr> <tr> <td valign="top">Developer</td> <td width="1" valign="top">:</td> <td valign="top"><a href="{$GLOBALS['threadfields']['pfdevurl']}">{$GLOBALS['threadfields']['pfdev']}</a></td> </tr> <tr> <td valign="top">Version</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfversion']}</td> </tr> <tr> <td valign="top">Release (Year)</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfrelease']}</td> </tr> <tr> <td valign="top">Category</td> <td width="1" valign="top">:</td> <td valign="top">{$GLOBALS['threadfields']['pfcat']}</td> </tr> <tr> <td valign="top">Posted By</td> <td width="1" valign="top">:</td> <td valign="top">{$post['profilelink']}</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="trow2 post_content {$unapproved_shade}"> <div class="largetext" align="center"><strong>{$post['subject']}</strong></div> <div class="post_body" id="pid_{$post['pid']}"> {$post['message']} </div> {$post['attachments']} {$post['signature']} <div class="post_meta" id="post_meta_{$post['pid']}"> {$post['iplogged']} </div> </td> </tr> <tr> <td class="trow1 post_buttons {$unapproved_shade}"> <div class="author_buttons float_left"> {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']} </div> <div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']} </div> </td> </tr> </tbody> </table>
- Template Name: pf_postbit
- Template Content:
HTML Code
{$ignore_bit} <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}"> <tbody> <tr> <td class="tcat"> <div class="float_left smalltext"> {$post['onlinestatus']} <strong><span class="smalltext">{$post['profilelink']}</span></strong> - {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}"></span> </div> {$post['posturl']} </td> </tr> <tr> <td class="trow2 post_content {$unapproved_shade}"> <div class="post_body" id="pid_{$post['pid']}"> {$post['message']} </div> <div class="post_meta" id="post_meta_{$post['pid']}"> {$post['iplogged']} </div> <div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']} </div> </td> </tr> </tbody> </table>
- Template Name: pf_forumdisplay_threads_sep
- Template Content:
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" align="center"> <div><strong>Normal Products</strong></div> </td> </tr> </table> <br />
- Template Name: pf_forumdisplay_sticky_sep
- Template Content:
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;"> <tr> <td class="thead" align="center"> <div><strong>Important Products</strong></div> </td> </tr> </table> <br />
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