Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to format 'Product Review' text box font ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #30
RE: How to format 'Product Review' text box font ?
(01-10-2012 12:31 PM)ZiNgA BuRgA Wrote:  Make sure you've got HTML comments enabled (it is by default).  View source of one of your pages and see if you can find:

HTML Code
<!-- start: headerinclude -->

The above indicates the start of the headerinclude template (obviously).

I'm not sure what you mean by 'creating template prefix', since you don't create one, but assign one.  Maybe I'm just being pedantic with terminology here, but I'm not sure exactly where you're looking at.

I'll try to explain what the template prefix does exactly, if it's confusing you.  Basically, it's to allow you to use different templates in different forums (in other words, have unique templates for some forums). To do this, we need some way to separate normal templates with ones we only want to apply for a specific forum - this is done by assigning a unique prefix to the name of the template.
So if forum X has a prefix of "cr_", when MyBB tries to load the showthread template, it will first look to see if it can find cr_showthread, and if not found, will fall back to showthread.  Note that cr_showthread effectively replaces showthread in this case.


Thank you for the followup !

Think am getting the  <!-- start: template --> and <!-- end: template --> thing/s, but in the example in last post, the code source from the thread display appears to be after <!-- end: template --> and before <!-- start: template -->.

Also, have created prefix_templates (eg prefix_postbit_edit, comment omitted) which show under ACP/ManageTemplates/UngroupedTemplates, and those modifications have been displayed (or not as per example case) in the one forum selected under ACP/Config/ThreadPrefixes.

The custom field is displayed for new threads and when editing, but when click 'Post Thread' or 'Update Post', the custom field is not displayed in the thread view.

Quote:<tr>
<td class="trow2"><strong>{$lang->cr_subject}:</strong></td>
<td class="trow2">
{$prefixselect}<input type="text" class="textbox" name="subject"
size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>{$lang->cr_your_message}:</strong><br /></td>
<td class="trow2">
{$prefixselect}<input type="text" class="textbox" name="message"
size="40" maxlength="85" value="{$message}" id="message" tabindex="3" />
</td>
</tr>
{$extra_threadfields}{$posticons}
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1"

Tried all this (except not prefix_template editing) with a new installation (different server, no customization) of MyBB with XThreads, created custom thread field, it displays when create thread but not when post thread/display or when edit/update post.

Not sure what missing, where to look, what to do ?

Have been using info at http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=305&highlight=prod as a guide, but not seeing info for above question, but may be missing something ?

Thanks again for your help !
(This post was last modified: 01-11-2012 05:09 AM by akm.)
01-11-2012 05:07 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread

 Standard Tools
Forum Jump: