Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Product Review
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #1
Product Review
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:
  • 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 Code
    Software{|}<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: &nbsp;
  • 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


10. Create new templates in Global Template:
  • Template Name: pf_forumdisplay_threadlist
  • Template Content:

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    <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}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} | <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']} | <a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']} | <a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']} {$ratingcol} | <a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong>
    			</span>
    			<span class="float_right">
    				<strong><a href="misc.php?action=markread&amp;fid={$fid}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <a href="{$sorturl}&amp;sortby=rating&amp;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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    <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>&nbsp;</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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    <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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    <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&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;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>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</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&amp;tid={$tid}&amp;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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    <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']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
    								<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
    								<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
    								<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
    								<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    <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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    {$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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    {$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
    1
    2
    3
    4
    5
    6
    7
    8
    <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
    1
    2
    3
    4
    5
    6
    7
    8
    <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:

[Image: bleog.jpg]

2. User view the post:

[Image: 6oog1z.jpg]

3. Thread List:

[Image: 2ryn9xf.jpg]

I'm sorry for my English Smile
Live Demo: http://www.14.mynie.co.cc/forumdisplay.php?fid=4

(This post was last modified: 12-12-2012 06:22 AM by RateU.)
05-15-2010 02:16 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #2
RE: Product Review
Looks great, thanks a lot !
05-15-2010 04:34 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #3
RE: Product Review
Wow - I mean just wow. This is perfect.


[Image: leelink.gif]
MYBB1.6 & XThreads
05-15-2010 07:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #4
RE: Product Review
You never cease to amaze with your creativity Smile

My Blog
05-15-2010 10:01 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #5
RE: Product Review
(05-15-2010 04:34 AM)Pirata Nervo Wrote:  Looks great, thanks a lot !

(05-15-2010 07:52 AM)leefish Wrote:  Wow - I mean just wow. This is perfect.

Thanks. I'm really sorry for my English Biggrin

(05-15-2010 10:01 AM)ZiNgA BuRgA Wrote:  You never cease to amaze with your creativity Smile

Biggrin I really love how XThreads works with template prefix and various thread fields, Yumi Smile

05-16-2010 02:55 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #6
RE: Product Review
I'm using this on my forum and made a small modification to the code so that my x thread attachments would work as a mini slideshow in my Sims Finds Area.
I have a lightbox mod from the mybb mods database, lightbox2 (link: http://mods.mybboard.net/view/lightbox-2)

In the additional pictures (pfapic1 etc) in the display format I changed the values as below:

Code:
<a href="{URL}" rel="lightbox[find]"><img src="{URL}/thumb160x120" alt="{$thread['subject']} Screenshot" title="{$GLOBALS['threadfields']['pfapdesc1']}" style="border: 1px solid #C1C1C1; padding: 3px; margin: 3px;"  /></a>


I also changed the size of the thumbnails in the Image Thumbnail Generation

Code:
160x120|320x240|640x480



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 05-28-2010 08:23 AM by leefish.)
05-27-2010 09:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #7
RE: Product Review
Great. Thanks, Lee Smile

05-27-2010 10:33 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #8
RE: Product Review
I have just uploaded the new version of X threads and updated my templates and custom thread fields to match the new settings. I have this Product Review layout setup on my forum, and now there is something a little strange.

The post thread button is now only visible to certain user groups on my forum (those with moderator privileges who show on the show team page). This ONLY happens after one thread has been posted in the forum. When the forum is empty a standard user can view the post thread button and post a thread. Then thats it - the post thread button is no longer visible to them.

I did not realise there was an issue before I updated so it may have been like that for a while as of course my finder is also a moderator. The no post thread was reported by a user and so I did some digging and came up with this info so far.

I don't think its the X threads update - I think its more to do with the first post showing on the showthread. I have a members downloads forum and a gallery - in both of these forums standard users can post.


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-11-2010 03:36 AM by leefish.)
06-01-2010 10:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #9
RE: Product Review
Do you have Hide Button or whatever its name (I forgot) plugin installed?

06-01-2010 10:37 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*******
Posts: 1,009
Joined: Apr 2010
Post: #10
RE: Product Review
HEADDESK.................gah....remember to check the plugins (4 hours of redoing templates Erf)

Yup, that was the "problem"

Thanks RateU


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-02-2010 05:03 AM by leefish.)
06-02-2010 05:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: